Crypto recent trades (OKX)
crypto_recent_tradesFetch recent public trades for any crypto spot or swap instrument, including price, size, side, and timestamp.
Instructions
Most recent public trades for an instrument: price, size, side, trade id, timestamp. Works for spot and swap ids. Example: { instId: "BTC-USDT", limit: 50 }
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": "crypto_recent_trades"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| instId | Yes | e.g. BTC-USDT or BTC-USDT-SWAP |