get_spot_feed_history
Retrieve historical spot price data for cryptocurrencies like ETH or BTC within specified timeframes and intervals to analyze market trends.
Instructions
Get historical spot price data for a currency
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": {
"currency": "<currency>",
"start_timestamp": "<start_timestamp>",
"end_timestamp": "<end_timestamp>",
"period": "<period>"
},
"name": "get_spot_feed_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | Yes | Currency, e.g. ETH, BTC | |
| start_timestamp | Yes | Start timestamp in seconds | |
| end_timestamp | Yes | End timestamp in seconds | |
| period | Yes | Time interval between data points in seconds |
Implementation Reference
- src/client.ts:125-127 (handler)The `getSpotFeedHistory` method, which executes the tool logic by making a POST request to `public/get_spot_feed_history`.
getSpotFeedHistory(params: GetSpotFeedHistoryParams): Promise<unknown> { return this.post('public/get_spot_feed_history', params); }