feat: 支持 Tushare 代理接口配置 - #6
Open
brightgems wants to merge 2 commits into
Open
Conversation
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
在 [tushare] 配置段新增可选 http_url 字段,用于指定代理接口地址
(如 https://ts.gyzcloud.top/api)。留空时回退到 Tushare 官方接口, 向后完全兼容。