get_candlesticks
Fetch OHLCV candlestick data for any asset class. Choose period, date range, and adjustment type.
Instructions
Get candlestick (OHLCV) data for any asset class.
Directly invoke with symbol. If asset_class is omitted, inferred from suffix. <critical_rules>
Symbol must be . (e.g. 000001.SZ, AAPL.US).
If both start/end and count given, start/end takes precedence. </critical_rules>
Args: symbol: Security symbol (e.g. "000001.SZ", "00700.HK", "AAPL.US", "000300.INDEX") asset_class: stock/index/fund/futures; inferred from suffix if omitted period: 1m, 5m, 15m, 30m, 60m, day, week, month (default day) start: Start date YYYY-MM-DD end: End date YYYY-MM-DD adjust: none/qfq/hfq (default none) count: Recent N bars (default 100, max 1000)
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_candlesticks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| count | No | ||
| start | No | ||
| adjust | No | none | |
| offset | No | ||
| period | No | day | |
| symbol | Yes | ||
| asset_class | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| hint | No | ||
| error | No | ||
| cached | No | ||
| source | No | ||
| status | Yes | ||
| updated_at | No |