get_history_market_data
Retrieve historical market data for specified stock codes, date ranges, and periods with customizable fields using the XTQuantAI MCP server.
Instructions
获取历史行情数据
Input Schema
Name | Required | Description | Default |
---|---|---|---|
codes | Yes | 股票代码列表,用逗号分隔,例如 "000001.SZ,600519.SH" | |
end_date | No | 结束日期,格式为 "YYYYMMDD",为空表示当前日期 | |
fields | No | 字段列表,用逗号分隔,为空表示所有字段 | |
period | No | 周期,例如 "1d", "1m", "5m" 等 | 1d |
start_date | No | 开始日期,格式为 "YYYYMMDD" |
Input Schema (JSON Schema)
{
"properties": {
"codes": {
"description": "股票代码列表,用逗号分隔,例如 \"000001.SZ,600519.SH\"",
"type": "string"
},
"end_date": {
"default": "",
"description": "结束日期,格式为 \"YYYYMMDD\",为空表示当前日期",
"type": "string"
},
"fields": {
"default": "",
"description": "字段列表,用逗号分隔,为空表示所有字段",
"type": "string"
},
"period": {
"default": "1d",
"description": "周期,例如 \"1d\", \"1m\", \"5m\" 等",
"type": "string"
},
"start_date": {
"default": "",
"description": "开始日期,格式为 \"YYYYMMDD\"",
"type": "string"
}
},
"required": [
"codes"
],
"type": "object"
}