aszerW
95c7a091f5
feat: Flask API增加asset_type参数支持类型验证
新功能:
- /api/v1/ohlcv 接口新增可选 asset_type 参数
- 用于验证code与指定类型是否匹配
- 类型不匹配时返回400错误并说明
API文档更新:
- endpoints 添加 asset_type 参数说明
- 新增 asset_types 字段说明各类型含义
使用示例:
- /api/v1/ohlcv?code=000300.SH (自动检测)
- /api/v1/ohlcv?code=000300.SH&asset_type=china_index (验证类型)
- /api/v1/ohlcv?code=513100.SH&asset_type=us_index (类型不匹配报错)
2026-05-12 23:32:08 +08:00
..
2026-05-12 21:33:19 +08:00
2026-05-12 21:33:19 +08:00
2026-05-12 23:32:08 +08:00
2026-05-12 22:14:35 +08:00
2026-05-12 22:40:35 +08:00
2026-05-12 00:47:43 +08:00
2026-05-12 21:39:07 +08:00
2026-05-12 00:03:25 +08:00