Welcome. Read this first; it will make you 10× faster.
TradeMasterAPI — an algorithmic trading platform for individual retail traders. Vision: explore a symbol → backtest a strategy on it → paper-trade that strategy → eventually execute via the user's own broker (Fidelity, Schwab, Alpaca, etc.) with AI assisting on signal + risk + sentiment fusion.
Active epics: - #78 Exploration Platform - #79 Backtesting Lab - #80 AI-Assisted Trading - #81 SDLC + Security
backend_v2/ — active Flask API, port 5001.api/routes/*.py — Flask blueprints registered under /apiapi/services/ — integrations (Alpaca trading, Alpaca market data, chart export)db/ — SQLite + migrationsfrontend/trademaster_ui/ — React app, port 3000, proxies /api/* to backend.frontend/status-page/ — public status page deployed to status.raxx.app via
.github/workflows/deploy-status-page.yml. Contains a placeholder until the React
status app ships in #604. No CF Access gate — customer-facing../start.sh # boots backend + frontend, checks venv, waits for health
Single smoke check:
./scripts/agent-tools/run_smoke.sh
Alpaca paper credentials live in .env at repo root. Never commit .env. If a test needs credentials, use .env.test (gitignored) or mock the Alpaca calls.
api/services/alpaca_market_data_service.py). Do not introduce a random-OHLC generator, ever.backend_v2/api/feature_flags.py (#86) + the frontend useFlag hook.backend_v2/tests/), Jest for frontend (frontend/trademaster_ui/src/**/__tests__/).backend_v2/api/routes/symbols.py).security-secrets will block merge.See adding_a_feature.md. Short version:
1. Find or create an issue under an epic
2. Branch off main: feature/<kebab-case-name>
3. Build behind a flag if risky
4. Tests alongside code
5. PR with filled-in template
6. Watch CI; address security findings before review
See security_response.md.
| URL | Purpose | Access |
|---|---|---|
| https://internal-docs.raxx.app/ | Internal docs + design mockups gallery | CF Access (email: kris@moosequest.net) |
| https://raxx-mockups.pages.dev/ | Same content, origin URL (CF Access gated) | CF Access |
| https://console.raxx.app/ | Operator console | CF Access |
| https://vault.raxx.app/ | Infisical secrets vault | CF Access + service tokens |
docs/agents/ — improve these as you go