Market snapshot
get_market_snapshotReturns the most recent 4h candles for one scanned symbol, a summary of those inside the last 24h, and the scanner's status. Use it when you need the candle series or data freshness (data_age_seconds); for just the price and window statistics, get_ticker is lighter. limit counts candles back from the newest (100 is about 16 days); the summary covers only returned candles within 24h, so a small limit narrows it. Read from the scanner's in-memory buffer, not a live exchange call: a symbol outside the scanned universe returns an error, and one whose candles are not loaded yet (e.g. just after a restart) returns an error saying to retry after the next scan. No key needed.
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": {
"symbol": "<symbol>"
},
"name": "get_market_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Most recent candles returned. | |
| symbol | Yes | Pair to read, e.g. ETHUSDT. Must be in the scanned universe. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Set only on a failed call (isError true): what went wrong. | |
| symbol | No | Pair. | |
| candles | No | The most recent limit candles. | |
| scanner | No | Scanner state behind the buffer. | |
| summary | No | Returned candles inside the last 24h. | |
| interval | No | Candle interval (4h). | |
| timestamp | No | Response time (RFC 3339). | |
| data_source | No | Always the scanner buffer. | |
| candle_count | No | Candles returned. | |
| data_age_seconds | No | Seconds since the newest candle opened. |