get_kline
Retrieve candlestick (OHLCV) data for stock or cryptocurrency symbols. Supports intervals from 1 minute to yearly for price trend analysis.
Instructions
Get candlestick / K-line (OHLCV) data for given symbols. Supports multiple intervals: 1m, 5m, 15m, 30m, 1h, 2h, 4h, daily, weekly, monthly, quarterly, yearly.
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": {
"codes": "<codes>"
},
"name": "get_kline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| codes | Yes | Comma-separated symbol codes. | |
| market_type | No | Market type to query. | stock |
| kline_type | No | K-line interval: 1=1min, 2=5min, 3=15min, 4=30min, 5=1hour, 6=2hour, 7=4hour, 8=daily, 9=weekly, 10=monthly, 11=quarterly, 12=yearly. | |
| count | No | Number of candles to return (max varies by interval). |