Nexus Trader is a research + execution codebase for market simulation, path generation, and trading-system evaluation.
The project spans:
- data preparation and feature fusion
- branch/path generation (including diffusion-based stacks)
- ranking, realism scoring, and regime-aware evaluation
- packaged runtime (
nexus_packaged/) for service-style execution
WORLD -> PERCEPTION -> SIMULATION -> FUTURE BRANCHING -> REVERSE COLLAPSE -> PROBABILITY CONE
nexus-trader/
config/ project paths and runtime configuration
src/ core Python source modules
scripts/ runnable jobs (train/run/evaluate/validate/sync)
evaluation/ canonical evaluation entrypoints
docs/ active documentation
nexus_old/ archived legacy docs/scripts/artifacts
nexus_packaged/ packaged runtime stack and deployment-oriented modules
data/, outputs/, models/ local artifacts (mostly ignored from git history)
- Python 3.10+ (recommended 3.11)
pip- Optional GPU runtime for training/eval acceleration (CUDA/ROCm depending on your setup)
python -m venv .venvPowerShell:
.venv\Scripts\Activate.ps1pip install -r requirements-prod.txtMain config surface:
Packaged runtime settings:
nexus_packaged/config/settings.json- optional local env file:
nexus_packaged/.env.local
python scripts/build_fused_artifacts.pyExamples:
python scripts/train_fused_tft.py --epochs 2 --batch-size 512 --sequence-len 180 --hidden-dim 192 --dropout 0.15 --sample-limit 1000000
python scripts/train_v24_diffusion_v2.py
python scripts/train_v26_regime_diffusion.py
python scripts/train_v26_multi_horizon.pyCanonical evaluation files are in scripts/evaluation/.
Examples:
python scripts/evaluate_branch_accuracy.py
python scripts/evaluate_diffusion_v2.py
python scripts/evaluate_v26_phase1.py
python scripts/evaluate_v26_phase2.py
python scripts/evaluate_v26_phase2_advanced.pyNote:
- Backward-compatible wrappers still exist at
scripts/evaluate_*.py. - Canonical implementations now live at
scripts/evaluation/evaluate_*.py.
python main.pyEquivalent direct entry:
python -m nexus_packaged.mainSee:
This repo now includes an SQLite index workflow so agents can query file locations quickly instead of recursively searching every time.
Build or refresh index:
python scripts/build_file_index.pyDefault output:
meta/file_index.sqlite
Query examples:
python scripts/query_file_index.py --name evaluate_v26
python scripts/query_file_index.py --ext .py --category evaluation
python scripts/query_file_index.py --path nexus_packaged/v30 --limit 20Details:
docs/README.mddocs/context/CONTEXT_HANDOFF.mddocs/operations/DEPLOYMENT.mddocs/planning/MODEL_QUALITY_EXECUTION_PLAN.mddocs/reports/PROJECT_MASTER_SUMMARY.mdnexus_old/README.md
- Active material stays under
src/,scripts/,docs/, andnexus_packaged/. - Legacy or one-off residue is moved to
nexus_old/. - Session dumps and old version notes are maintained in archive folders, not root.
- The repository has been history-cleaned to remove large binary artifacts from git history.
- Keep large datasets/logs/models untracked and outside commit history unless intentionally versioned in a dedicated storage strategy.