get_adjust_factor_data
Fetch adjustment factor data for a stock code and date range to calculate adjusted prices using Baostock's price-adjustment algorithm.
Instructions
Fetches adjustment factor data for a given stock code and date range.
Uses Baostock's "涨跌幅复权算法" factors. Useful for calculating adjusted prices.
Args:
code: The stock code in Baostock format (e.g., 'sh.600000', 'sz.000001').
start_date: Start date in 'YYYY-MM-DD' format.
end_date: End date in 'YYYY-MM-DD' format.
Returns:
Adjustment factors table.
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": {
"code": "<code>",
"start_date": "<start_date>",
"end_date": "<end_date>"
},
"name": "get_adjust_factor_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| limit | No | ||
| format | No | markdown | |
| end_date | Yes | ||
| start_date | Yes |