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

Uploaded Source

File details

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

File metadata

  • Download URL: odyssey_exchange_api-0.0.6.tar.gz
  • Upload date:
  • Size: 27.6 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.6.tar.gz
Algorithm Hash digest
SHA256 ab8f06e90110b81d872b3e8cbe152792327ca364fbfac0e7eeca34f97e28e15c
MD5 c861f5cdf92f98ca5e428988a9a31b84
BLAKE2b-256 35b29750de69f28d318631637eaecacb4ca75ff7c83f0ca1fccf1bd17f1cbd00

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