anti-gambling-trader-tw
무료 오픈소스 투자 사기 방지·거래 통계·자동매매 도구, 기본 PaperBroker와 14개 증권사 옵션 제공, 로컬 분석
Solo가 만든 정량 트레이딩 플랫폼으로, FastAPI·React 기반 하나의 엔진이 백테스트·모의거래·실거래를 모두 수행합니다
Solo-built quantitative trading platform (FastAPI + React) running one engine across backtesting, paper trading, and gated live execution.
금융Python · TypeScriptGitHub @TristanODonnell온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기메이커가 쓴 소개는 위의 한 줄이 전부입니다. 더 자세한 내용은 저장소 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.