Klines
klinesRetrieve OHLCV candlestick data for any symbol on futures or spot markets, using configurable interval, price type, and limit to analyze price trends.
Instructions
Klines (OHLCV). price_type last|mark|index selects fapi klines/markPriceKlines/indexPriceKlines; spot goes to sapi /api/v3/klines (price_type ignored). intervals 1m..1M; limit snapped to a priced tier (max 1000). Example: klines(symbol="BTCUSDT", interval="4h", limit=50)
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": "klines"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| market | No | futures | |
| symbol | Yes | ||
| interval | No | 1h | |
| price_type | No | last |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||