Autonomous AI futures strategy research, backtesting, tracking and prop-firm trading platform (private).
This repository implements Phase 1–2: foundation plus event-driven backtesting, CSV OHLCV import, strategy DSL, trade ledger, and the Backtest Laboratory. No fabricated market data or backtest results are shown unless you import CSV or connect a licensed provider.
Start here: docs/RAILWAY_EASY.md — Postgres + Redis + one backend + one frontend (step-by-step).
Advanced (separate worker service): docs/DEPLOY_RAILWAY.md.
Requirements: Docker and Docker Compose.
cp .env.example .env
# Edit .env — at minimum change SECRET_KEY and INITIAL_ADMIN_PASSWORD
docker compose up --build| Service | URL |
|---|---|
| Dashboard | http://localhost:3000 |
| API | http://localhost:8000 |
| API docs | http://localhost:8000/docs |
Default admin (first API boot, if no users exist):
- Email: value of
INITIAL_ADMIN_EMAIL(defaultadmin@propedge.local) - Password: value of
INITIAL_ADMIN_PASSWORDin.env
docker compose up postgres redis -d
cp .env.example .envcd backend
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
alembic upgrade head
uvicorn app.main:app --reloadIn another terminal:
cd backend && source .venv/bin/activate
celery -A app.worker.celery_app worker --loglevel=infocd frontend
npm install
NEXT_PUBLIC_API_URL=http://localhost:8000 npm run devcd backend && source .venv/bin/activate && pytestFree data: Market Data → Queue download with Yahoo Finance (free) — no API key (7-day window for 1m, up to 60 days at 5m). Delayed, not exchange-licensed; fine for building and backtesting workflows.
Licensed data (optional): set DATABENTO_API_KEY on the backend for Databento GLBX.MDP3 ingestion.
See PROGRESS.md for completed work and next steps.
frontend (Next.js) ──HTTP/JWT──► backend (FastAPI)
│
┌─────────────────┼─────────────────┐
▼ ▼ ▼
PostgreSQL Redis Celery worker
- Import OHLCV CSV on Market Data (see
docs/sample_ohlcv_template.csvfor columns). - Open Backtest Laboratory, pick a library strategy and your dataset, queue a run.
- Ensure the Celery worker is running (
docker composeincludesworker). - Inspect trades, metrics, and reproducibility ID on the run detail page.
Licensed futures data and AI research run only when you configure credentials server-side.