Get OKX live ticker
get_okx_tickerFetch live OKX spot or perpetual swap ticker data—last price, best bid/ask, spread in bps, 24h high/low, and volume—to support real-time market monitoring and trading decisions.
Instructions
Fetch live OKX spot or perpetual swap ticker including last price, best bid, best ask, spread in basis points, 24h high/low, and volume.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_okx_ticker"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inst_id | No | OKX instrument ID such as "BTC-USDT" (default), "ETH-USDT", or "BTC-USDT-SWAP". |