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

Uploaded Source

File details

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

File metadata

  • Download URL: odyssey_exchange_api-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 f500dbdd379507182b9ad77b59e7a23779c0512bb9bb6edc2507f0f4e6502e47
MD5 1b9165754bea74b19d4d07a2c5c6cf67
BLAKE2b-256 c81c519154c7d598373fa4e42bbbf3091633a77f915247daa54cbe290a2e575f

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