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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: crypto_com_sdk-0.0.14.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.14.tar.gz
Algorithm Hash digest
SHA256 c5284e3c8e0f86bbea6287d3a48e2feec94eb05630201376f2a2af256a197453
MD5 36fd952be6dda2930dacf1e913e90c62
BLAKE2b-256 ccdc131908bddd6b56ed884aa53ae5176b17b868c467afef07817fd7bef20616

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for crypto_com_sdk-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 b38df54c9c8e0841509a0fd818841e76563577ee258457e894946e3318a52c18
MD5 39630b286e864d4b0c1705b7f3ab2653
BLAKE2b-256 f64a2dae6c21e47c4e713b470b5259b8226fcc6815d830c7414b62c1395d149a

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