anti-gambling-trader-tw
免費開源的投資反詐、交易統計與自動化交易程式工具:預設 PaperBroker,提供 14 種券商/交易所選項;交易紀錄分析在本機執行。
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗Built solo, backend-first, with most of the effort in the research and risk engine. One engine runs the same strategy logic across backtesting, paper trading, and live execution; live trading is gated behind several independent safety checks rather than a single on/off flag.
The backend is layered strictly, and dependencies only ever point inward:
A Signal becomes an OrderIntent, which becomes a BrokerOrder/Fill, which updates Positions and rolls up into Reports — and that same contract chain is used whether the run is a historical backtest, a paper trading cycle, or (once enabled) live. One engine, one set of data shapes, three execution contexts.
Requests flow through a fixed middleware stack: RequestID → Logging → JWT → Deprecation.
The one non-negotiable: NO_LIVE_TRADING is enforced at runtime, not just in config. Live order submission requires clearing several independent gates (below) — no single flag flip puts real capital at risk.
Safety
NO_LIVE_TRADING enforced at runtime as the final backstop.Research / Strategy / Experiment Systems
Governance & Capital Allocation
Portfolio Intelligence
Data & Storage Layer
Backtesting & Simulation Engine
Signal → OrderIntent → Fill → Position pipeline runs historically and live, so backtest results reflect how the system actually executes.Testing Suite
integration, external, alpaca, smoke, paper_runtime) so a fast unit-only pass can run separately from slower external/broker-dependent tests.Observability
Backend
| Layer | Tools |
|---|---|
| Language | Python 3.11 |
| API | FastAPI, Uvicorn |
| ORM / DB | SQLAlchemy, PostgreSQL 16, Alembic (migrations) |
| Data / Storage | PyArrow (Parquet), DuckDB |
| Market data / Broker | alpaca-py, exchange_calendars |
| Optimization | cvxpy, NumPy, SciPy |
| Orchestration | Apache Airflow |
| Observability | OpenTelemetry, Grafana |
| CLI | Typer, Rich |
| Testing | pytest, pytest-asyncio, pytest-cov |
Frontend
| Layer | Tools |
|---|---|
| Framework | React 19, Vite, TypeScript (strict) |
| Routing / Data | TanStack Router, TanStack Query, Axios |
| State | Zustand |
| Forms | React Hook Form, Zod |
| UI | Tailwind CSS, shadcn/ui (Radix primitives), Framer Motion |
| Data display | Recharts, Lightweight Charts, TanStack Table |
| Testing | Vitest, Testing Library, Playwright |
The backend is deep and functionally real: the contracts, storage, service, and API layers described above are implemented and tested, not sketched out. The frontend — Dashboard, Portfolio, Strategy Lab, Controls, Settings, and Experiment Lab — is wired to real backend endpoints, not mock data, but it was originally built around a generic SaaS-style app shell rather than the platform's actual domain model (governance, safety gates, the research pipeline). It's functional, not fake, but due for a restructuring pass rather than a wiring pass. The system currently runs in paper trading only — NO_LIVE_TRADING is enforced at runtime, so no real capital is at risk.
A full 2-year backtest validates the platform end-to-end, but that's still a controlled environment. The path from here to real deployment:
warn_only setting).This is a multi-service system — the full pipeline (Postgres, Airflow, ingestion, research, paper trading) involves several CLI steps, config decisions, and a specific run order, documented in docs/operations/runbooks/ and docs/backend/cli/. What's below just gets the code installed and the test suite passing locally — the fastest way to confirm the codebase is real and working, without needing Docker or a database running.
# Clone
git clone https://github.com/TristanODonnell/Autonomous-Trading-Platform.git
cd Autonomous-Trading-Platform
# Backend — Python 3.11, virtual environment
python -m venv .venv
.\.venv\Scripts\activate # Windows
# source .venv/bin/activate # macOS/Linux
pip install -r requirements.txt
pip install -r requirements-dev.txt
pip install -e .
# Run the test suite — SQLite in-memory, no Postgres/Docker required
python -m pytest
# Frontend
cd frontend
npm install
npm run dev
For the full local stack (Postgres, Airflow, observability) and the CLI-driven ingestion → research → paper-trading sequence, see docs/operations/runbooks/ and docs/backend/cli/.
All rights reserved. This code is shared publicly for review purposes; no license is granted to copy, modify, or redistribute it.