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.3.tar.gz (28.0 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: odyssey_exchange_api-0.0.3.tar.gz
  • Upload date:
  • Size: 28.0 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.3.tar.gz
Algorithm Hash digest
SHA256 9eb8f0503aa0942c87e4eecb648ea38b0a102aa198bd199d9fdcf92fdbe39e8f
MD5 23122c3e09215d8bd23e1503046eb91d
BLAKE2b-256 dbb246e0efad54568668d53e7e6462e22f258532d76d4d3fc204b37d2febd5fc

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