4.0.0: Split off finance/trading code to alphapy-finance#7
Conversation
BREAKING: All trading, markets, and Alfi code has moved to the private
alphapy-finance repo. See tag v3.1.1-monolith for the pre-split state.
Removed from alphapy-pro:
- alphapy/{mflow_main,system,backtest,metalabel}.py
- alphapy/{portfolio,indicators,data_sources}/
- Market-data functions in alphapy/data.py (get_market_data,
get_yahoo_data, get_polygon_data, get_alpaca_data, get_eodhd_data,
convert_data, convert_offset, assign_global_data, standardize_data,
resample_ohlcv).
- Top-level app/ (Alfi backend+frontend+agent+research) and agent/
(legacy trading agent).
- 13 trading project examples.
- scripts/{run_agent,run_research,sync_tradingagents}.py and
scripts/markets/.
- tests/{agent,app_agent,backend,integration}/ and finance tests
in tests/alphapy/.
- docs/PLAN-markets.md, docs/markets/.
- config/sources.yml.template, systems.yml, groups.yml,
indicators.yml.
- Entry points: mflow, scott, research.
- ~30 dependencies (alpaca-py, vectorbt, fastapi, langchain*,
yfinance, polygon-api-client, etc.).
Kept in alphapy-pro:
- alphapy/{alphapy_main,model,data,frame,features,transforms,
variables,globals,estimators,optimize,plots,utilities,space,
group,alias,calendrical}.py.
- 3 example projects: kaggle, pizza, time-series.
- tests/{test_imports,test_utilities,test_version}.py and
tests/conftest.py.
- 26 ML-core dependencies.
- Single entry point: alphapy.
Updated:
- alphapy/__init__.py: bumped to 4.0.0, added __all__.
- pyproject.toml: trimmed deps, dropped finance entry points and
packages, kept hatch-managed dynamic version.
- README.md, CLAUDE.md, AGENTS.md: rewritten for ML-only scope.
- CHANGELOG.md: 4.0.0 release notes.
- config/alphapy.yml: stripped mflow section.
Verification:
- pytest tests/ -> 18 passed, 1 skipped.
- alphapy --help works.
- import alphapy succeeds without finance deps installed.
- rg "yfinance|alpaca|polygon|vectorbt" alphapy/ -> zero hits.
Migration for downstream consumers:
- alphapy-finance now owns all trading code.
- alphapy-sports unaffected (already isolated).
|
Claude finished @mrconway's task —— View job PR Review: 4.0.0 Split Trading/Finance CodeReviewed this major architectural change that removes all trading/finance functionality to create a pure ML framework. Review Tasks
Overall Assessment
|
Summary
BREAKING. Removes all trading, markets, and Alfi code from alphapy-pro. That code now lives in the private `alphapy-finance` repo (initial import landed in https://github.com/ScottfreeLLC/alphapy-finance/pull/1).
See tag `v3.1.1-monolith` for the pre-split state. See full `CHANGELOG.md` 4.0.0 entry.
Removed
Kept
Test plan