feat: wire Tushare fundamentals into filters#76
Merged
warren618 merged 1 commit intoMay 8, 2026
Conversation
1 task
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.
Refs #62.
What I changed
fundamental_fieldssupport in the daily backtest path, so Tushare statement snapshots can be merged into OHLCV bars after their announcement/disclosure dates.income_total_revenue,income_n_income, andfina_indicator_roe, to avoid colliding withdaily_basicfields.fundamental-filter/strategy-generateguidance and thefundamental-filterexample to show a financial-quality pre-filter using the new statement columns.How to verify
python -m pytest agent/tests/test_tushare_fundamentals_provider.py agent/tests/test_engine_robustness.py::TestSymbolIsolation::test_backtest_enriches_data_map_with_configured_fundamental_fields agent/tests/test_engine_robustness.py::TestSymbolIsolation::test_backtest_records_explicit_benchmark_metadata agent/tests/test_fundamental_filter_example.py -qpython -m ruff check agent/backtest/loaders/tushare_fundamentals.py agent/backtest/engines/base.py agent/src/skills/fundamental-filter/example_signal_engine.py agent/tests/test_tushare_fundamentals_provider.py agent/tests/test_engine_robustness.py agent/tests/test_fundamental_filter_example.pypython -m py_compile agent/backtest/loaders/tushare_fundamentals.py agent/backtest/engines/base.py agent/src/skills/fundamental-filter/example_signal_engine.py agent/tests/test_tushare_fundamentals_provider.py agent/tests/test_engine_robustness.py agent/tests/test_fundamental_filter_example.pygit diff --checkI also tried the full non-e2e pytest command. It reached 837 passed / 1 skipped, with 3 local path-handling failures outside this change area.