Skip to main content

Library for working with odyssey.trade

Project description

Odyssey Exchange API Library

A Python library for interacting with odyssey.trade API, allowing developers to easily integrate trading functionalities into their applications.

Table of Contents

Features

  • Full support of Odyssey Exchange Spot API at 01.10.2024.
  • Full support of Odyssey Exchange Futures API at 01.10.2024.
  • Full support of Odyssey Exchange WebSocket API at 01.10.2024.
  • Synchronous and asynchronous support.
  • All objects are typed and documented.

Installation

You can install the library via pip:

pip install odyssey_exchange_api

Usage

To get started with the library, import it in your Python script:

import odyssey_exchange_api

Example Initialization

Sync API

from odyssey_exchange_api import SyncOdysseyExchangeAPI

api = SyncOdysseyExchangeAPI(api_key='YOUR_API_KEY', secret_key='YOUR_API_SECRET')

Async API

from odyssey_exchange_api import AsyncOdysseyExchangeAPI

api = AsyncOdysseyExchangeAPI(api_key='YOUR_API_KEY', secret_key='YOUR_API_SECRET')

Examples

Ping

request = SpotPingRequest()
response = api.make_request(request)
print(response)

Fetching Recent Trades

request = SpotRecentTradesRequest(symbol='BTCUSDT')
response = api.make_request(request)
print(response)

Placing a New Order

request = SpotCreateOrderRequest(
    symbol="BCUSDT",
    volume=Decimal("0.01"),
    side=SpotOrderSide.BUY,
    type=SpotOrderType.LIMIT,
    price=Decimal("56000")
)
response = api.make_request(request)
print(response)

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

odyssey_exchange_api-0.0.5.tar.gz (28.2 kB view details)

Uploaded Source

File details

Details for the file odyssey_exchange_api-0.0.5.tar.gz.

File metadata

  • Download URL: odyssey_exchange_api-0.0.5.tar.gz
  • Upload date:
  • Size: 28.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.0

File hashes

Hashes for odyssey_exchange_api-0.0.5.tar.gz
Algorithm Hash digest
SHA256 107b15ae75953684c1af2102b86ba03ec57d069f22bc85b1eb5e427aeed1e405
MD5 19e8f945b35b8f17fb2d3edd122d0152
BLAKE2b-256 34882a4244ea38680e907d35be2f415cd3f1898f4aab6287e14e51523bb27647

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page