cex_spot_get_spot_candlesticks
Get candlestick/OHLCV data for a currency pair
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_pair": "<currency_pair>"
},
"name": "cex_spot_get_spot_candlesticks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End time of K-line in Unix timestamp (seconds). Defaults to current time if not specified | |
| from | No | Start time of K-line in Unix timestamp (seconds). Defaults to to - 100 * interval if not specified | |
| limit | No | Maximum number of data points to return. Mutually exclusive with from/to parameters | |
| interval | No | Time interval of data points. Note: 30d represents natural month, not 30 days | 30m |
| currency_pair | Yes | Currency pair |