Skip to main content

cryptocom 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

Async

from crypto_com_sdk import CryptocomAsync

async def main():
    instance = CryptocomAsync({})
    order = await instance.create_order(__EXAMPLE_SYMBOL__, "limit", "buy", 1, 100000)

Sync

from crypto_com_sdk import CryptocomSync

def main():
    instance = CryptocomSync({})
    order =  instance.create_order(__EXAMPLE_SYMBOL__, "limit", "buy", 1, 100000)

Websockets

from crypto_com_sdk import CryptocomWs

async def main():
    instance = CryptocomWs({})
    while True:
        orders = await instance.watch_orders(__EXAMPLE_SYMBOL__)

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

Uploaded Source

Built Distribution

crypto_com_sdk-0.0.2-py3-none-any.whl (654.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: crypto_com_sdk-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 31930e6496476e131d6a790ddd615a534dda4cb41094c9aacb5868f29eaad13d
MD5 76276fb943f0eba4f8f6ae51d3f90d68
BLAKE2b-256 e91c7b6a3eafd1b2c6dc812fbeccdd94fca9bfe7fe2c47abdc54dcecd9d7eca6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: crypto_com_sdk-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 654.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a3d424ca39bb2b7b230badd84bc15ec4ceb37e75c0b4bbe5d6cc02e61276daae
MD5 6f3bf7bb16f5afcde551e4102a2186b1
BLAKE2b-256 18c2014a0480952dd7cdc381684422c9b02454e2087d83d7af3ad56ca11295e5

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