How do I query a cryptocurrency trading pair?
Find pairs with market=GLOBAL&type=crypto and read symbol and currency. BTCUSDT and ETHUSDT are documented examples. A request targets a specific trading pair, not a currency-independent coin price.
TickDB delivers live quotes, order books, trades and historical bars via REST and WebSocket, primarily for USDT pairs, with USDC, BTC and other pairs also available.
| Exchange / Category | Symbols | Data Capabilities | Frequency |
|---|---|---|---|
| USDT Pairs | 490 |
REST queries and WebSocket quotes, order book and trades; depth levels and update cadence depend on the pair. | 24/7, channel-dependent updates |
| USDC Pairs | 273 |
REST queries and WebSocket quotes, order book and trades; depth levels and update cadence depend on the pair. | 24/7, channel-dependent updates |
| BTC Pairs | 41 |
REST queries and WebSocket quotes, order book and trades; depth levels and update cadence depend on the pair. | 24/7, channel-dependent updates |
| Other Pairs | 21 |
REST queries and WebSocket quotes, order book and trades; depth levels and update cadence depend on the pair. | 24/7, channel-dependent updates |
Candlesticks are queried via REST; live subscriptions use supported channels. Endpoints, fields and historical coverage depend on the instrument, plan permissions and available data. Instrument counts do not imply full capability coverage for every instrument.
Find pairs with market=GLOBAL&type=crypto and read symbol and currency. BTCUSDT and ETHUSDT are documented examples. A request targets a specific trading pair, not a currency-independent coin price.
Use ticker for snapshots, depth for bids and asks, trade for executions and bars for periodic charts. REST depth supports up to 1,000 levels per side, depending on the product and available quotes; this is not a fixed depth guarantee for every WebSocket stream.
Bars support 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 1d, 1w and 1M: lowercase m means minutes, uppercase M means months. start_time/end_time use milliseconds; the default is 100 bars, capped at 1,000. The last bar may still be forming. Historical access depends on entitlements and availability.
Use documented symbols as examples; confirm current availability and account permissions in the catalog. Replace YOUR_API_KEY locally; never publish a real key in browser code.
curl --fail-with-body -H "X-API-Key: YOUR_API_KEY" \
"https://api.tickdb.ai/v1/symbols/available?market=GLOBAL&type=crypto&limit=100&offset=0" curl --fail-with-body -H "X-API-Key: YOUR_API_KEY" \
"https://api.tickdb.ai/v1/market/ticker?symbols=BTCUSDT&type=crypto" curl --fail-with-body -H "X-API-Key: YOUR_API_KEY" \
"https://api.tickdb.ai/v1/market/kline?symbol=BTCUSDT&type=crypto&interval=1d&limit=100" curl --fail-with-body -H "X-API-Key: YOUR_API_KEY" \
"https://api.tickdb.ai/v1/market/depth?symbol=BTCUSDT&type=crypto" Free is a 7-day trial for selected instruments, with quotes and permitted bar queries. It does not allow start_time/end_time historical ranges. Depth, trades and specified historical ranges require the appropriate entitlements; check the current plan for symbols and quotas.
# pip install websocket-client
import websocket
import json
api_key = 'your_api_key_here'
ws_url = f'wss://api.tickdb.ai/v1/realtime?api_key={api_key}'
def on_open(ws):
ws.send(json.dumps({
'cmd': 'subscribe',
'data': {
'channel': 'ticker',
'symbols': ['BTCUSDT', 'ETHUSDT', 'SOLUSDT']
}
}))
def on_message(ws, message):
data = json.loads(message)
print('Received:', data)
ws = websocket.WebSocketApp(ws_url, on_open=on_open, on_message=on_message)
ws.run_forever() Full documentation available at API Documentation
Exchange-native books, aggregated prices and cross-asset APIs serve different needs. Decide whether you need trade detail or asset metadata and market overviews.
| Provider | Live data / Depth | Scope / Data | Access / Cost model | Best fit |
|---|---|---|---|---|
| TickDB Cross-asset market data API | WebSocket quotes, depth and trades; REST candle queries. Levels and cadence vary by pair. | Crypto alongside stocks, forex, futures and indices. | API key, no trading account; REST / WebSocket / Skill / MCP / CLI. Free trial; plan-based access. | Cross-asset strategies, unified terminals and AI agents. |
| Binance API Exchange-native API | Trades, aggTrade, ticker and depth-diff streams. | Single-venue data; combine REST snapshots with incremental streams to build books. | Public market data endpoints; trading permissions are separate. | Venue-native order books and trading bots. |
| CoinGecko API Aggregated and on-chain data | REST, WebSocket and webhooks; product-based channels and access. | Coins, exchanges and on-chain data, plus MCP / Skill / CLI. | Demo and paid plans with product-specific limits. | Asset discovery, DeFi analysis and market overviews. |
| CoinMarketCap API Asset rankings and reference data | Quote, ranking and market-statistics APIs; cadence varies by endpoint. | Asset metadata, exchanges, history and market statistics. | API key; free and paid plan entitlements. | Asset profiles, rankings and market information products. |
Concurrent multi-pair subscriptions powering high-frequency strategies and grid trading with real-time data.
Unified API for crypto and traditional financial market data to build an all-asset-class market dashboard.
Detect large trades from tick-by-tick data and monitor liquidity changes using depth data.
All paid plans support monthly / quarterly / semi-annual / annual billing. Prices below are annual (20% off)
Free is a 7-day trial for selected instruments, with quotes and permitted bar queries. It does not allow start_time/end_time historical ranges. Depth, trades and specified historical ranges require the appropriate entitlements; check the current plan for symbols and quotas.
Billed annually $950
Billed annually $2870
Billed annually $8630
Cryptocurrency has no universal opening and closing schedule across all venues and trading pairs. Weekend and holiday trading, maintenance, suspensions and delistings follow the relevant venue and pair announcements. TickDB updates depend on pair coverage, upstream data and connection status; updates are not guaranteed for every pair at every moment.
Over 50 major coins including BTC and ETH, plus 825 trading pairs.
Consider Binance for venue-native trading data and CoinGecko / CoinMarketCap for asset discovery and rankings. TickDB combines crypto depth and trades with stocks, forex and indices in one application.
Yes. Depth levels and update cadence depend on the pair and plan. Binance REST order-book snapshots and WebSocket incremental streams are different interfaces; a snapshot limit is not the streaming depth.
Find pairs with market=GLOBAL&type=crypto and read symbol and currency. BTCUSDT and ETHUSDT are documented examples. A request targets a specific trading pair, not a currency-independent coin price.
Use ticker for snapshots, depth for bids and asks, trade for executions and bars for periodic charts. REST depth supports up to 1,000 levels per side, depending on the product and available quotes; this is not a fixed depth guarantee for every WebSocket stream.
Bars support 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 1d, 1w and 1M: lowercase m means minutes, uppercase M means months. start_time/end_time use milliseconds; the default is 100 bars, capped at 1,000. The last bar may still be forming. Historical access depends on entitlements and availability.
Free is a 7-day trial for selected instruments, with quotes and permitted bar queries. It does not allow start_time/end_time historical ranges. Depth, trades and specified historical ranges require the appropriate entitlements; check the current plan for symbols and quotas.
Sign up for a free API Key. WebSocket real-time streaming. Get started in minutes.