Market ticker
market_tickerRetrieve the current OKX public ticker for a specified spot or swap instrument without requiring API keys, orders, or account access.
Instructions
Get the latest OKX public ticker for one instrument (spot or swap). READ-ONLY: this tool only calls OKX public market REST. No API key, no order, no account access. Example instId: BTC-USDT or BTC-USDT-SWAP.
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": {
"instId": "<instId>"
},
"name": "market_ticker"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instId | Yes | OKX instrument ID, e.g. BTC-USDT (spot) or BTC-USDT-SWAP (perpetual). |