kline
Get historical daily K-line (candlestick/OHLCV) bars for one stock.
Returns daily bars only — this tool never returns intraday ticks; for the latest available price use stock_quote. A-share and HK bars come from the Tencent public feed (forward-adjusted where the feed provides it, which is not guaranteed for HK); US bars come from yfinance. Newer dates last. No authentication required.
Use this when the request is about history: trends, ranges, chart data over days-to-a-year. For the latest price alone use stock_quote (much faster); for market-wide indices use market_summary. Read-only.
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": "kline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | Lookback window ending today: "1mo", "3mo", "6mo", or "1y". Defaults to "3mo". For A-share and HK symbols any other value returns an error. Each bar has date, open, close, high, low, volume. | 3mo |
| symbol | Yes | Stock symbol in CODE.MARKET format — SH, SZ, HK, or US (e.g. "600519.SH", "0700.HK", "AAPL.US"). HK codes may omit leading zeros. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |