cn_get_prices
Retrieve daily A-share price bars for up to 20 symbols across a date range, with selectable fields and raw or adjusted prices for market analysis.
Instructions
Daily bars for up to 20 A-share symbols between start and end (YYYY-MM-DD, inclusive; end defaults to the latest date).
fields: any of open, high, low, close, vwap, volume, amount, change, factor
(default open, high, low, close, volume, change). change is the daily return as a
fraction (0.01 = +1%). price_basis="raw" gives real traded prices and share volume;
"adjusted" gives Qlib's split- and dividend-adjusted series. Rows are capped by max_rows.
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": {
"symbols": "<symbols>",
"start": "<start>"
},
"name": "cn_get_prices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| start | Yes | ||
| fields | No | ||
| symbols | Yes | ||
| max_rows | No | ||
| price_basis | No | raw |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||