Get Pair Data
get_pair_dataA trading pair, or up to 10 compared: price, candles, trades, order flow, derivatives, tokenomics. No window = current value; since_ms/until_ms/last = history. Rows newest first, dated at the START of their bucket (first_time + i x step_s); for a total, an extreme or a change read summary, for the period covered read ranges; null + unavailable = no data; _pct = percent, _ratio = fraction; every unit: describe_fields. oi is read at the END of its bucket; price_change 1d = rolling 24 h.
EXAMPLES
State: symbol=["BTCUSDT"], fields=["klines","funding_next","oi","cvd"], timeframe=1h, limit=24
Liquidations 48 h, long/short: fields=["liquidations_cumulative"], last="48h", detail="summary"
Buyers vs sellers, last 1000 trades: fields=["trades_futures"], limit=1000, detail="summary"
FIELDS:
klines: OHLCV candles (OHLC: reference spot market; volume: spot + futures). [tf, live]
price_change: Current price (last trade) and its rolling % change, 1m to 1w. [now, 1 point]
trades_spot: Individual spot trades, most recent first. [now, N<=10000]
trades_futures: Individual perpetual futures trades, most recent first. [now, N<=10000]
trades_large: Futures trades above
min_usd, most recent first. [min_usd, now, N<=10000]trades_kline_futures_seconds: Perpetual futures trades aggregated per second. [now]
oi: Open interest per bucket, base units and USD (oi_usd). [tf]
funding_next: Next estimated funding (8h equivalent, %) and APR: what venues show as current. [now, 1 point]
funding_rate: Settled funding of each period (8h equivalent, %) and APR.
funding_cumulative: Funding summed over a rolling 24h, and APR.
basis: Futures/spot basis, % and price (positive = contango). [tf]
oi_change: Open interest change per bucket, absolute and in %. [tf]
liquidations_events: Individual liquidations: side, price, quantity, USD. [min_usd, now, N<=10000]
liquidations_cumulative: USD liquidated per bucket, long and short positions. [tf]
liquidations_big_small_ratio: Large vs small liquidations per bucket: counts, USD, ratio. [tf]
orderbook: Order book depth (bids, asks, imbalance) by distance from mid. [tf, market]
cvd: Volume delta per bucket (net, buy, sell, base units) and its running total cumulative_net_volume. [tf, market, live]
spread_interexchange: Price spread between venues, bps (the only field naming venues). [tf, live]
buy_sell_ratio: Buy share of the traded volume per bucket. [tf, market]
trades_avg_size: Average trade size per bucket (base units). [tf, market]
trades_kline: Trade candles, spot + futures: count, buy, sell, net volume. [tf, live, N<=1440]
trades_kline_spot: Trade candles, spot: count, buy, sell, net volume. [tf, live, N<=1440]
trades_kline_futures: Trade candles, futures: count, buy, sell, net volume. [tf, live, N<=1440]
tokenomics: Supply (circulating, total, max), market cap, FDV (USD).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>",
"fields": "<fields>"
},
"name": "get_pair_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| last | No | History over the last '48h' / '30d' (whole buckets). | |
| live | No | Adds the open candle (live fields). | |
| limit | No | N latest points per series (default 1). | |
| detail | No | summary: one row per series + summary; full: every column. | compact |
| fields | Yes | Fields (FIELDS below). | |
| market | No | Of cvd, buy_sell_ratio, trades_avg_size, orderbook. | |
| symbol | Yes | 1 to 10 pairs, e.g. ["BTCUSDT"]. | |
| columns | No | Columns to keep, e.g. ["close", "volume"]. | |
| context | No | Adds `context`: where each series' latest value sits in its own recent history (percentile, z, n, window). Not a signal; no quota. | |
| dry_run | No | Plans the call without making it: its quota cost, your remaining rate and quota, the checks. No data, no quota. | |
| min_usd | No | USD threshold: trades_large (default 100000), liquidations_events. | |
| since_ms | No | History start: epoch ms, ISO date or '48h' ago. | |
| until_ms | No | History end. | |
| timeframe | No | Step of tf fields (default 1h, history: ~200 points). 1w: klines. | |
| max_tokens | No | Response budget, estimated tokens (default 6000). | |
| max_quota_cost | No | Refuses the call, before any request, if it would use more quota requests than this. |