Skip to main content

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_USDT
  • BTC_USDT
  • ETH_USDT
  • And many more...

Instrument names are automatically normalized (e.g., cro-usdt, CRO/USDT -> CRO_USDT).

License

MIT

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

cryptocom_tools_exchange-2.0.0.tar.gz (6.5 kB view details)

Uploaded Source

File details

Details for the file cryptocom_tools_exchange-2.0.0.tar.gz.

File metadata

File hashes

Hashes for cryptocom_tools_exchange-2.0.0.tar.gz
Algorithm Hash digest
SHA256 648d532668752a4d80abf7a1eb1d90a830520c68910c989974b64ce8ac07d31c
MD5 91bba7b2170a7324978a1068152493e3
BLAKE2b-256 ca9b2f8b3bca8d743a4c032d1fa10ce9ab747dc4c8e24666e78edc16cda09f55

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page