get_candles_snapshot
Fetch historical candlestick data for cryptocurrency trading analysis by specifying coin, time interval, and date range to retrieve open, high, low, close prices and volume.
Instructions
Fetch the candlestick data snapshot for a specific coin.
Parameters:
coin_name (str): The trading symbol (e.g., 'BTC', 'ETH').
interval (str): The candlestick interval (e.g., '1m', '5m', '1h').
start_time (str): The start time for the candles in ISO 8601 format (e.g., '2025-01-01T00:00:00Z').
end_time (str): The end time for the candles in ISO 8601 format (e.g., '2025-12-31T23:59:59Z').
ctx (Context): The MCP context object for accessing server state.
Returns:
str: A JSON string containing a list of candlestick data, each with open, high, low, close, volume, and timestamp.
Returns a JSON string with an error message if the query fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin_name | Yes | ||
| interval | Yes | ||
| start_time | Yes | ||
| end_time | Yes |
Input Schema (JSON Schema)
{
"properties": {
"coin_name": {
"title": "Coin Name",
"type": "string"
},
"end_time": {
"title": "End Time",
"type": "string"
},
"interval": {
"title": "Interval",
"type": "string"
},
"start_time": {
"title": "Start Time",
"type": "string"
}
},
"required": [
"coin_name",
"interval",
"start_time",
"end_time"
],
"type": "object"
}