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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: crypto_com_sdk-0.0.12.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.12.tar.gz
Algorithm Hash digest
SHA256 cf57045b18c4649127a5858928c0b28f745377a2a289a09d6aae0e1b5dcac1f3
MD5 520fb78d4936728265e4b1d1038590a7
BLAKE2b-256 3b9b660c35e251ffe5cb076cac8bd0ee7ed703794be5bfecee6eb1aa041d14a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for crypto_com_sdk-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 c65eeaa2286badd168180afc5760d525554f5f4ffeff7241223b7d6aa0908a2d
MD5 8ce416c713c2484c43d3acabdaf6356a
BLAKE2b-256 bba389f07ce694229e19ea76f74583dd5f06bc5f6a9c023431b79951b5061d9e

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