XTQuantAI

MIT License
19
  • Apple

get_history_market_data

获取历史行情数据

Input Schema

NameRequiredDescriptionDefault
codesYes股票代码列表,用逗号分隔,例如 "000001.SZ,600519.SH"
end_dateNo结束日期,格式为 "YYYYMMDD",为空表示当前日期
fieldsNo字段列表,用逗号分隔,为空表示所有字段
periodNo周期,例如 "1d", "1m", "5m" 等1d
start_dateNo开始日期,格式为 "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" }