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
Release history Release notifications | RSS feed
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.15.tar.gz
(528.2 kB
view details)
Built Distribution
File details
Details for the file crypto_com_sdk-0.0.15.tar.gz
.
File metadata
- Download URL: crypto_com_sdk-0.0.15.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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
a2b9f4b2d0420d8e42da70d908ba2cc7ac0d010b561d9d0317c91db8389a75ea
|
|
MD5 |
88a08f22ffd396881bd34e5d0c57d70f
|
|
BLAKE2b-256 |
c85b2cd90f430e90babf09f6e64a43aba7d76e6198d329f5aa690d1b99a2459b
|
File details
Details for the file crypto_com_sdk-0.0.15-py3-none-any.whl
.
File metadata
- Download URL: crypto_com_sdk-0.0.15-py3-none-any.whl
- Upload date:
- Size: 652.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
43a055f09e410a6c54eb73fd8ff8379c2dbb04092c6869861f95fa74ad6307d4
|
|
MD5 |
6ece7d2e49fb9ee9c88e730b7f12999f
|
|
BLAKE2b-256 |
039a310e0ec00e1d1c9f9099fbf22577d09cde2556d9a6d93202434a0fdef8ae
|