ai-trading-paper

AI Trading Research & Paper-Trading Platform

V0.5 — Intelligent Stock Screener

V0.5 builds on the V0.4 multi-symbol foundation and adds a configurable rule-based stock screener.

Added

Example scan

All conditions must pass for a symbol to match.

Run

pip install -r requirements.txt
python -m src.data.downloader
streamlit run app/dashboard.py
pytest -q

Scope

This release is a research screener, not an execution system. It does not place trades, claim predictive accuracy, or imply that historical technical conditions guarantee future performance.

V0.6 — Machine Learning Research

Adds a research-only ML layer with:

Important: model probabilities and historical test metrics are research diagnostics, not guarantees of future returns or profitability.

Run:

pip install -r requirements.txt
pytest -q
streamlit run app/dashboard.py

V0.7 — AI Intelligence Engine

Adds a transparent intelligence layer on top of V0.6:

Confidence is a diagnostic score, not a probability of profit or a trading guarantee.

V0.8 — Scientific Backtesting

Adds a research-only backtesting engine in src/backtesting/backtester.py:

The dashboard exposes the feature under 📈 V0.8 Scientific Backtesting. Backtests are simulations for research/paper trading only and do not imply future profitability.

V0.9 — Advanced Paper Trading

Adds src/paper_trading/engine.py with:

The dashboard exposes this under 💼 V0.9 Advanced Paper Trading. No broker connectivity or live execution is included.

V1.0 Production + Mobile API

The platform now includes a FastAPI REST service for authenticated paper trading and mobile clients. It uses SQLAlchemy persistence (SQLite by default; PostgreSQL is supported through DATABASE_URL with the appropriate PostgreSQL driver), bearer-token authentication, CORS configuration, order/position/trade/decision endpoints, and optional webhook notifications. No broker execution is implemented.

Run API locally

uvicorn src.api.app:app --reload --port 8000

OpenAPI docs are available at /docs. Copy .env.example to .env and set a strong JWT_SECRET before deployment. For PostgreSQL, set DATABASE_URL and install a compatible SQLAlchemy PostgreSQL driver.

Docker

docker compose up --build

V1.1 — Production Hardening

V1.4 — Production Infrastructure

V1.5 — Event-driven paper trading

V1.5 adds a background paper-trading monitor. It refreshes open-position quotes, updates mark-to-market prices, detects stop-loss/take-profit triggers, and exposes engine status/start/stop/run-once API endpoints. It remains paper-trading-only; risk triggers are reported to the application layer and no broker order is ever submitted.

V1.6.1 — Reliability fixes

V1.6 — Strategy Automation

V1.8.0 — Market Terminal + AI Mobile