mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-27 23:47:46 +00:00
2136741eaa
Connect all Predix components into unified trading system: INTEGRATION (ALL 295 TESTS PASS): - RL Trading connected with Protection Manager - RL Trading connected with Backtesting Engine - CLI command 'rdagent rl_trading' added (train/backtest/live modes) - Graceful fallback for users without stable-baselines3 OPEN SOURCE COMPATIBILITY: - System works WITHOUT stable-baselines3 (momentum fallback) - System works WITHOUT local models/prompts (uses standard) - Clear warning messages when optional deps missing - GitHub users get FULLY WORKING system CLOSED SOURCE PROTECTION: - models/local/, prompts/local/, .env stay local only - .gitignore properly configured - Our alpha (best models/prompts) remains private DOCUMENTATION: - QWEN.md: Open/closed source strategy - QWEN.md: Development guidelines for AI assistant - QWEN.md: Open source compatibility principle - README.md: RL Trading CLI commands and examples - requirements/rl.txt: Optional RL dependencies Modified files: - rdagent/app/cli.py: Added rl_trading command - rdagent/components/backtesting/backtest_engine.py: RL backtest support - rdagent/components/coder/rl/costeer.py: Protection Manager integration - rdagent/components/coder/rl/__init__.py: Conditional imports + fallback - rdagent/components/coder/rl/fallback.py: NEW - Simple momentum fallback - requirements.txt: Optional RL deps commented - requirements/rl.txt: NEW - Full RL dependencies - test/integration/test_all_features.py: 7 new integration tests - QWEN.md: Open source strategy + development guidelines - README.md: RL Trading documentation 295 tests pass: 67 integration + 89 RL + 139 backtesting
96 lines
1.5 KiB
Plaintext
96 lines
1.5 KiB
Plaintext
# Requirements for runtime.
|
|
pydantic-settings
|
|
|
|
python-Levenshtein
|
|
scikit-learn
|
|
filelock
|
|
loguru
|
|
fire
|
|
fuzzywuzzy
|
|
openai
|
|
litellm>=1.73 # to support `from litellm import get_valid_models`
|
|
azure.identity
|
|
pyarrow
|
|
rich
|
|
tqdm
|
|
typer
|
|
|
|
numpy # we use numpy as default data format. So we have to install numpy
|
|
pandas # we use pandas as default data format. So we have to install pandas
|
|
pandarallel # parallelize pandas
|
|
matplotlib
|
|
langchain
|
|
langchain-community
|
|
tiktoken
|
|
pymupdf # Extract shotsreens from pdf
|
|
|
|
# PDF related
|
|
pypdf
|
|
azure-ai-formrecognizer
|
|
|
|
# factor implementations
|
|
tables
|
|
|
|
# CI Fix Tool
|
|
tree-sitter-python
|
|
tree-sitter
|
|
|
|
python-dotenv
|
|
|
|
# infrastructure related.
|
|
docker
|
|
|
|
# crawler related
|
|
webdriver-manager
|
|
|
|
# demo related
|
|
streamlit>=1.47 # to support input_c.text_area(..., height="content", ...)
|
|
plotly
|
|
st-theme
|
|
randomname
|
|
flask
|
|
flask-cors
|
|
networkx
|
|
|
|
# kaggle crawler
|
|
selenium
|
|
kaggle
|
|
nbformat # also used for notebook conversion
|
|
|
|
# tool
|
|
setuptools-scm
|
|
seaborn
|
|
azure.ai.inference
|
|
|
|
# data folder desc
|
|
humanize
|
|
genson
|
|
|
|
# mlflow
|
|
mlflow
|
|
azureml-mlflow
|
|
types-pytz
|
|
|
|
# Agent
|
|
pydantic-ai-slim[mcp,openai,prefect]
|
|
nest-asyncio
|
|
|
|
# visualize SFT train
|
|
tensorboard # tensorboard --logdir git_ignore_folder/RD-Agent_workspace
|
|
prefect
|
|
|
|
# HuggingFace datasets
|
|
datasets
|
|
|
|
# DuckDuckGo search
|
|
duckduckgo-search
|
|
|
|
# Testing
|
|
pytest
|
|
pytest-cov
|
|
|
|
# RL Trading (optional - system works without these)
|
|
# Install for full RL training: pip install stable-baselines3[extra] gymnasium
|
|
# Without these, RL trading uses simple momentum fallback
|
|
# stable-baselines3[extra]>=2.0.0
|
|
# gymnasium>=0.29.0 |