Skip to content
cwhel2026Public

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

134 Commits

Folders and files

Repository files navigation

PROP EDGE AI

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.

Deploy on Railway (24/7 runner)

Start here: docs/RAILWAY_EASY.md — Postgres + Redis + one backend + one frontend (step-by-step).

Advanced (separate worker service): docs/DEPLOY_RAILWAY.md.

Quick start (Docker)

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 (default admin@propedge.local)
  • Password: value of INITIAL_ADMIN_PASSWORD in .env

Local development (without full Docker)

Database & Redis

docker compose up postgres redis -d
cp .env.example .env

Backend

cd backend
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
alembic upgrade head
uvicorn app.main:app --reload

In another terminal:

cd backend && source .venv/bin/activate
celery -A app.worker.celery_app worker --loglevel=info

Frontend

cd frontend
npm install
NEXT_PUBLIC_API_URL=http://localhost:8000 npm run dev

Tests

cd backend && source .venv/bin/activate && pytest

Market data

Free 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.

Project status

See PROGRESS.md for completed work and next steps.

Architecture (Phase 1)

frontend (Next.js) ──HTTP/JWT──► backend (FastAPI)
                                      │
                    ┌─────────────────┼─────────────────┐
                    ▼                 ▼                 ▼
              PostgreSQL          Redis            Celery worker

Backtest workflow

  1. Import OHLCV CSV on Market Data (see docs/sample_ohlcv_template.csv for columns).
  2. Open Backtest Laboratory, pick a library strategy and your dataset, queue a run.
  3. Ensure the Celery worker is running (docker compose includes worker).
  4. 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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages