Skip to main content

cryptocom crypto 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

Sync

from crypto_com_sdk 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 crypto_com_sdk 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 crypto_com_sdk 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.8.tar.gz (528.5 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: crypto_com_sdk-0.0.8.tar.gz
  • Upload date:
  • Size: 528.5 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.8.tar.gz
Algorithm Hash digest
SHA256 d57ef13fc49f0d5fd22827b6416d3d02b426f94d7052d3b6560dca4f6bc46295
MD5 81409a47eb6ef98eef5778a74915c98d
BLAKE2b-256 57f25d5299686aaefd90112e300ba8eb336dcaf8ad9cbf0f77081de28495b9ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: crypto_com_sdk-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 1.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for crypto_com_sdk-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 d2e05bae82740ef4a2aeddc899016473ce5b31f6bedd386f3ce176a845040a78
MD5 a1a4cfd0addcba27bc48dd76f1b0388a
BLAKE2b-256 32c3a32d6c568d4bf8096149a0f718b762e2a8eeb0ed7f040d12478c6551dce4

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