Skip to content

Conversation

@cto-new
Copy link

@cto-new cto-new bot commented Oct 21, 2025

Summary

Unifies the data source implementation for BAO_STOCK to always use the AkShare (CAkShare) API throughout the project, simplifying configuration and reducing unexpected data reader selections.

Details

  • Consistently maps the BAO_STOCK data source to the CAkShare API in CChan logic and default configuration.
  • Removes CBaoStock/BaoStock references and ensures AkShare is the only stock API used for BAO_STOCK.
  • Prevents confusion and errors due to mixed or incorrect API selection, improving reliability when loading stock data.

cto-new bot added 2 commits October 21, 2025 05:47
Fixes a bug where AkShare API was used when BaoStock was explicitly requested as the data source. The change ensures that CBaoStock is loaded for DATA_SRC.BAO_STOCK.

- Corrects API selection logic in CChan.GetStockAPI to choose BaoStock, not AkShare, when needed
- Prevents CChanException '最高级别没有获得任何数据' from failing with the wrong data reader/format
- Ensures future extension for custom or other stock APIs works as intended

This fixes running failures for BAO_STOCK data source settings.
Standardizes stock API selection logic to consistently use AkShare
(CAkShare) instead of any BaoStock integration for the BAO_STOCK data
source, promoting uniformity and reducing configuration confusion. This
ensures reliable and predictable data loading behavior for all
workflow scenarios involving stock API selection.
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