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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: crypto_com_sdk-0.0.13.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.13.tar.gz
Algorithm Hash digest
SHA256 ed30e5a84b43c54ddd853448dc771d92c484eea2236c523d0187f509fd321a56
MD5 2dbaf481eb3d03be0f4cdf37063c410b
BLAKE2b-256 66bc44ec0580b3eb63ba601fd3b9ee52b7fab8f111e3caf50c0f061c04c2a86b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for crypto_com_sdk-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 c96d36b1644f4485700be4a40fb3d0e47caacc5d6d587273d940e977005b9350
MD5 a880c41f66f4caf73b45ff6c1db09793
BLAKE2b-256 4239d925c6be230ddc93402ad2f92984b751b182e2369783bbd73bd47dc0df1c

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