okx_get_ticker
Get current price, 24h change, and volume for any OKX instrument. Specify spot or perpetual futures and trading pair to receive real-time market data.
Instructions
Get current price, 24h change, and volume for any OKX instrument (BTC-USDT, ETH-USDT, SOL-USDT, OKB-USDT)
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": "okx_get_ticker"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instType | No | SWAP = perpetual futures, SPOT = spot | SWAP |
| instrument | No | Trading pair, e.g. BTC-USDT, ETH-USDT, SOL-USDT | BTC-USDT |