Exchange/market data tools for Crypto.com Developer Platform
Project description
cryptocom-tools-exchange
Exchange/market data tools for the Crypto.com Developer Platform.
Installation
pip install cryptocom-tools-exchange
Features
- GetAllTickersTool: Get all available exchange tickers
- GetTickersTool: Get ticker information for a specific trading instrument
All tools are read-only and require no signer/wallet.
Usage
import os
from cryptocom_tools_exchange import GetAllTickersTool, GetTickersTool
# Set your CDP API key
os.environ["CRYPTOCOM_DEVELOPER_PLATFORM_API_KEY"] = "your-api-key"
# Get all tickers
all_tickers_tool = GetAllTickersTool()
result = all_tickers_tool.invoke({})
print(result)
# Get a specific ticker
ticker_tool = GetTickersTool()
result = ticker_tool.invoke({"symbol": "CRO_USDT"})
print(result)
How it works
These tools call the Crypto.com Developer Platform Exchange API via the
crypto_com_developer_platform_client.Exchange client. Authentication uses the
CRYPTOCOM_DEVELOPER_PLATFORM_API_KEY environment variable (handled by
cryptocom-tools-core), and there is no on-chain RPC or ethers/web3 usage.
Supported Instruments
The tools support various trading pairs including:
CRO_USDTBTC_USDTETH_USDT- And many more...
Instrument names are automatically normalized (e.g., cro-usdt, CRO/USDT -> CRO_USDT).
License
MIT
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
File details
Details for the file cryptocom_tools_exchange-2.0.0.tar.gz.
File metadata
- Download URL: cryptocom_tools_exchange-2.0.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
648d532668752a4d80abf7a1eb1d90a830520c68910c989974b64ce8ac07d31c
|
|
| MD5 |
91bba7b2170a7324978a1068152493e3
|
|
| BLAKE2b-256 |
ca9b2f8b3bca8d743a4c032d1fa10ce9ab747dc4c8e24666e78edc16cda09f55
|