Spot ticker (paid, x402) — $0.002
get_spotPaid endpoint ($0.002): OKX spot ticker for any live -USDT pair: last, bid/ask, spread in bps, 24h open/high/low/change, UTC-day change and 24h volume. Unknown pairs return an error and no charge. Returns the x402 payment requirements and URL. Free sample response: https://cryptofeed402.site/samples/spot
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "BTC"
},
"name": "get_spot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Base ticker, e.g. BTC, PEPE, TON |