Skip to main content

cryptocom crypto exchange api client

Project description

cryptocom-python

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

You can check the SDK docs here: SDK You can check Cryptocom's docs here: Docs

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

Sync

from cryptocom import CryptocomSync

def main():
    instance = CryptocomSync({})
    ob =  instance.fetch_order_book("BTC/USDC")
    print(ob)
    #
    # balance = instance.fetch_balance()
    # order = instance.create_order("BTC/USDC", "limit", "buy", 1, 100000)

Async

import asyncio
from cryptocom import CryptocomAsync

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

asyncio.run(main())

Websockets

from cryptocom import CryptocomWs

async def main():
    instance = CryptocomWs({})
    while True:
        ob = await instance.watch_order_book("BTC/USDC")
        print(ob)
        # 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.11.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

crypto_com_sdk-0.0.11-py3-none-any.whl (1.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: crypto_com_sdk-0.0.11.tar.gz
  • Upload date:
  • Size: 2.9 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.11.tar.gz
Algorithm Hash digest
SHA256 26f3b3e521c042bdc2642423e0241661a3c1bccbcf5911363782ecd0c4b31961
MD5 79f04c65fe338123fa4a68711cbc4ca5
BLAKE2b-256 889da135a2f8f852bbae3a1bae4122e6f8d9b855fa263232a59f4a912f472e34

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for crypto_com_sdk-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 12954c03be1636d1f74ae1203e53a590359fa87c774262239152b4821e257d00
MD5 4840768e586194896bc63ea9badc41d2
BLAKE2b-256 b6dbc800b2e84f5cdfc0c38874c404a67d06d7aed495d5f4087f036bb99b2654

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