Skip to main content

cryptocom exchange api client

Project description

cryptocom-python

Python SDK (sync and async) for Cryptocom with Rest and WS capabilities.

You can check Cryptocom's docs here: Docs

You can check the SDK docs here: SDK

This package derives from CCXT and allows you to call pretty much every endpoint by either using the unified CCXT API or calling the endpoints directly

Installation

pip install crypto-com-sdk

Usage

Async

from crypto_com_sdk import CryptocomAsync

async def main():
    instance = CryptocomAsync({})
    order = await instance.create_order("BTC/USDC", "limit", "buy", 1, 100000)

Sync

from crypto_com_sdk import CryptocomSync

def main():
    instance = CryptocomSync({})
    order =  instance.create_order("BTC/USDC", "limit", "buy", 1, 100000)

Websockets

from crypto_com_sdk import CryptocomWs

async def main():
    instance = CryptocomWs({})
    while True:
        orders = await instance.watch_orders("BTC/USDC")

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

crypto_com_sdk-0.0.7.tar.gz (528.2 kB view details)

Uploaded Source

Built Distribution

crypto_com_sdk-0.0.7-py3-none-any.whl (654.9 kB view details)

Uploaded Python 3

File details

Details for the file crypto_com_sdk-0.0.7.tar.gz.

File metadata

  • Download URL: crypto_com_sdk-0.0.7.tar.gz
  • Upload date:
  • Size: 528.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for crypto_com_sdk-0.0.7.tar.gz
Algorithm Hash digest
SHA256 5700bdbc2c2b5e1e42580e22bf787ef840bde92fa0966fe0bbe65250dac86497
MD5 68e97a8767f71d1c057a20bb2bccb6aa
BLAKE2b-256 9864a36ada1957021a19d90501f0a288edf94ed9f798b876c7460f3bc2189ffe

See more details on using hashes here.

File details

Details for the file crypto_com_sdk-0.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for crypto_com_sdk-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c1403d0f0a3c80c4afe10598b1fa860fda63625097475c64fa664a18daacfb91
MD5 19891f8af4563f7b7a20ffec7ecbdd33
BLAKE2b-256 e905b7dacb522e889408d5479d62e550e01c95c440335acec125d5236c863bf9

See more details on using hashes here.

Supported by

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