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)
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 | |||