Skip to content

feat: 支持 Tushare 代理接口配置 - #6

Open
brightgems wants to merge 2 commits into
zer0quant:mainfrom
brightgems:feat/tushare-proxy-url
Open

feat: 支持 Tushare 代理接口配置#6
brightgems wants to merge 2 commits into
zer0quant:mainfrom
brightgems:feat/tushare-proxy-url

Conversation

@brightgems

Copy link
Copy Markdown

在 [tushare] 配置段新增可选 http_url 字段,用于指定代理接口地址
(如 https://ts.gyzcloud.top/api)。留空时回退到 Tushare 官方接口, 向后完全兼容。

  • zer0share/config.py: Config 新增 tushare_http_url 字段,默认空
  • zer0share/fetcher.py: TushareFetcher.init 新增 http_url 参数, 非空时设置 pro._DataApi__http_url
  • zer0share/cli.py, scheduler.py, scripts/sync_ricequant_history.py, scripts/validate_adj_factor.py: 传递 cfg.tushare_http_url
  • config/settings.example.toml, README.md: 文档新增 http_url 配置说明
  • tests/test_config.py, tests/test_fetcher.py: 新增代理 URL 配置与 fetcher 行为测试
  • 恢复 examples/ 冒烟测试误改(LocalPro 无 _DataApi__http_url 属性)
  • 移除临时测试文件 tusharepro.py

george.pan added 2 commits August 10, 2026 18:54
在 [tushare] 配置段新增可选 http_url 字段,用于指定代理接口地址
(如 https://ts.gyzcloud.top/api)。留空时回退到 Tushare 官方接口,
向后完全兼容。

- zer0share/config.py: Config 新增 tushare_http_url 字段,默认空
- zer0share/fetcher.py: TushareFetcher.__init__ 新增 http_url 参数,
  非空时设置 pro._DataApi__http_url
- zer0share/cli.py, scheduler.py, scripts/sync_ricequant_history.py,
  scripts/validate_adj_factor.py: 传递 cfg.tushare_http_url
- config/settings.example.toml, README.md: 文档新增 http_url 配置说明
- tests/test_config.py, tests/test_fetcher.py: 新增代理 URL 配置与
  fetcher 行为测试
- 恢复 examples/ 冒烟测试误改(LocalPro 无 _DataApi__http_url 属性)
- 移除临时测试文件 tusharepro.py
…urns 18 for early dates (limit_status missing)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant