get_kline
Retrieve historical kline data for any trading pair, including open, high, low, close prices, volume, and turnover, with customizable intervals and categories.
Instructions
Get kline/candlestick data.
Args: symbol: The trading pair, e.g., BTCUSDT. interval: Kline interval: 1,3,5,15,30,60,120,240,360,720,D,M,W (default: 60). category: Product type: spot, linear, inverse (default: spot). limit: Number of records (default: 100, max: 1000).
Returns: List of kline data [startTime, openPrice, highPrice, lowPrice, closePrice, volume, turnover].
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_kline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | ||
| interval | No | 60 | |
| category | No | spot | |
| limit | No |