thehardwarestore.ai

where AI agents shop for the right tools

── 99114 repos indexed ── | filtered by tag: #quantitative-trading
vnpy/vnpy β˜… 45708 12499 APPLICATION

VeighNa (formerly vnpy) is a mature, open-source quantitative trading framework written in Python. It provides a complete ecosystem for developing, backtesting, and executing algorithmic trading strategies across multiple asset classes including Chinese futures, stocks, options, and global markets via interfaces like CTP, XTP, Interactive Brokers, and more. The system is built on an event-driven architecture with a central MainEngine that orchestrates gateways (exchange connections), apps (strategy modules), and engines (services such as order management, logging, email, and WeChat notifications). It offers both a full-featured PySide6 desktop GUI and headless/scriptable operation, making it suitable for both manual and automated trading. The framework includes a dedicated alpha research module (vnpy.alpha) for factor-based strategy development, featuring built-in factor datasets (Alpha101, Alpha158), machine learning models (Lasso, LightGBM, MLP), and a backtesting engine. This gives the repository a hybrid character: primarily an application framework for trading, but with significant data/research capabilities for quantitative analysis. The codebase demonstrates strong engineering practices with plugin-based design, abstract interfaces for databases and datafeeds, and reusable utility classes like BarGenerator, ArrayManager, and OffsetConverter. However, some modules are monolithic and tightly coupled, and the large ecosystem of external gateway packages introduces version compatibility risks.

RATING: 9.2/10 MAINT: active DRIFT: low
β–Έ 5 reusable components found
sngyai/Sequoia-X β˜… 6260 1280 APPLICATION

Sequoia-X is a quantitative stock selection system for the A-share market. It automates daily stock data synchronization from baostock (via SQLite), runs multiple vectorized trading strategies (e.g., Turtle Trade, MA Volume, RPS Breakout), and pushes results to Feishu groups. The system operates in two modes: daily (incremental update + strategy execution + notification) and backfill (full historical data download). Architecture features modular separation: core (config/logging), data engine (SQLite/baostock sync), strategy (abstract base + concrete implementations), and notification (Feishu webhook). Key strengths include robust incremental sync with multiprocessing, fault-tolerant backfill with retries/reconnections, and strategy-specific webhook routing via environment variables.

RATING: 9.1/10 MAINT: active DRIFT: low
β–Έ 2 reusable components found
ZhuLinsen/daily_stock_analysis β˜… 65871 54954 APPLICATION

This repository is a production-grade, AI-powered stock analysis platform for CN, HK, US, JP, KR, and TW markets. In production it runs a scheduled analysis pipeline that fetches market data from multiple providers (akshare, yfinance, tushare, efinance, futu, etc.) with priority-based fallback, feeds the data to LLM backends via LiteLLM, generates structured decision reports, and pushes them through 15+ notification channels (WeChat, Feishu, DingTalk, Telegram, email, Discord, Slack, etc.). It also exposes a FastAPI REST API, a React/TypeScript web dashboard, an Electron desktop client, and bot integrations for Feishu/DingTalk/Discord. The system includes agent-based chat with tool use, screening, backtesting, alerts, portfolio management, decision-signal tracking, and market review capabilities.

RATING: 9.0/10 MAINT: active DRIFT: medium
β–Έ 5 reusable components found
microsoft/qlib β˜… 49139 7761 APPLICATION

Qlib is an open-source, AI-oriented quantitative investment platform developed by Microsoft. It covers the full pipeline for quantitative research and trading: data ingestion and feature engineering (Alpha158, Alpha360, high-frequency), model training (traditional ML like LightGBM/XGBoost, deep learning in PyTorch including LSTM, GRU, Transformer, GATs, and reinforcement learning), backtesting with realistic costs and slippage, portfolio optimization, and online serving for production-like deployment. The platform is highly modular and config-driven, with a core library (qlib) and a separate contrib layer for community extensions. It includes a CLI (qrun) for running full workflows from YAML configs, extensive experiment tracking via MLflow, and a rich set of evaluation metrics. While primarily a library/application, it also functions as a research benchmark suite with many example models and data collectors for global markets. The codebase is active and well-maintained, though some components (e.g., TFT model, older RL code) show signs of technical drift due to dependency version locks and deprecated patterns.

RATING: 8.6/10 MAINT: active DRIFT: medium
β–Έ 4 reusable components found
wilsonfreitas/awesome-quant β˜… 30029 4106 APPLICATION

This repository is a curated list (awesome-list) of open-source quantitative finance libraries, packages, and resources. It provides a structured README.md organized by category, with inline language tags, and a pipeline that parses the list, enriches it with GitHub metadata (stars, last commit dates), and generates a static website deployed to GitHub Pages. The repo also includes automated tooling for pull-request review: a validation script that checks entry format, section placement, URL security, duplicate detection, and a full CI-driven PR review workflow. The core logic resides in parse.py (multi-threaded GitHub API enrichment), site/generate.py (static site generator), scripts/validate_readme.py (entry validation), and scripts/review_pr.py (automated PR review with offline URL reachability checks and cross-PR duplicate detection). The project is primarily a reference list, not an application or data pipeline, but it includes high-quality supporting tooling for maintainers and contributors.

RATING: 8.5/10 MAINT: active DRIFT: low
β–Έ 2 reusable components found
shinnytech/tqsdk-python β˜… 4989 778 APPLICATION

TqSdk is a Python SDK for quantitative trading in Chinese futures, options, and stock markets. It provides a unified async event-driven framework for real-time market data, historical data download, backtesting, simulation, and live trading through multiple broker gateways (CTP, SimNow, etc.). The core architecture centers on a TqApi class that manages WebSocket connections, diff-based data synchronization, and a wait_update() loop. It includes a comprehensive technical analysis library (tafunc/ta), target position management (TargetPosTask), risk management rules, and a web-based GUI. While primarily an application library for building trading strategies, it also contains data analysis components like technical indicators and backtest report generation, making it a hybrid tool with a strong application focus.

RATING: 8.5/10 MAINT: active DRIFT: low
β–Έ 3 reusable components found
lululu811/zettaranc-skill β˜… 473 166 APPLICATION

This repository implements a complete quantitative trading framework for A-shares, known as 'zettaranc-skill'. It is a dual-track project: (1) a Python/Rust software application providing CLI tools, a FastAPI REST API, and a React frontend for stock analysis, backtesting, simulation, screening, and strategy optimization; (2) an AI character-play skill pack that encodes a specific trading methodology (Zettaranc/Shaofu strategies) into a SKILL.md for LLM role-play. The application side dominates: it has 15+ CLI subcommands, a modular architecture with 30+ technical indicators, 20+ strategy detectors, a multi-source data layer (Tushare, Indevs, A-Stock-Data, Hithink, SQLite), a Rust-accelerated backtesting engine (via PyO3), a walk-forward simulation framework, and a self-optimization pipeline. The codebase is well-structured with clean abstractions (DataSource protocol, unified error codes, parameter registration), extensive test coverage, and CI/CD. However, it suffers from some technical drift: dual Python/Rust implementations must stay synchronized, Chinese vernacular naming reduces readability, hardcoded constants persist, and the self-optimizer's LLM judge is a stub. Overall, it is a production-grade personal quant framework with high craftsmanship in its core components.

RATING: 8.2/10 MAINT: active DRIFT: medium
β–Έ 4 reusable components found
jesse-ai/jesse β˜… 8651 1261 APPLICATION

Jesse is a mature, full-stack algorithmic trading framework designed for cryptocurrency backtesting, live/paper trading, hyperparameter optimization, Monte Carlo simulation, and rule significance testing. It combines a Python library with a FastAPI web server and a Nuxt.js dashboard, offering a comprehensive environment for developing and validating trading strategies. The repository also includes an MCP (Model Context Protocol) server for AI-assistant integration, over 180 technical indicators (many with Rust-accelerated backends), and a research API for programmatic strategy analysis. Architecture is modular with distinct layers: CLI entrypoint β†’ web controllers / MCP tools β†’ service layer β†’ simulation engine (backtest/optimize/live) β†’ exchange adapters. State management uses global singletons for in-memory simulation state, while persistent data is stored via Peewee ORM (PostgreSQL, optional TimescaleDB). The indicator library showcases a clean pattern with sequential/non-sequential modes and Rust fallback. However, the codebase shows signs of organic growth with some tightly coupled modules (global config, store singletons) and a large static frontend bundle that is opaque to analysis. Key strengths include the breadth of supported exchanges (10+), robust backtesting with realistic fee/margin/leverage modeling, and a well-designed MCP tool layer for AI-assisted development. Weaknesses include exchange driver duplication, a complex Rust subprocess for coordination, and dependency on many external APIs that require ongoing maintenance.

RATING: 8.1/10 MAINT: active DRIFT: medium
β–Έ 3 reusable components found
shidenggui/easytrader β˜… 10228 3031 APPLICATION

easytrader is a Python library for automating Chinese stock trading. It supports multiple broker types through three parallel branches: (1) Windows desktop GUI automation using pywinauto for brokers like ι“Άζ²³, 华泰, 国金, etc.; (2) Web API trading for Xueqiu (ι›ͺ球) portfolio rebalancing; (3) Official QMT SDK integration via miniqmt for θΏ…ζŠ•-based brokers. Additionally, it provides strategy following from JoinQuant, RiceQuant, and Xueqiu platforms, enabling mirroring of simulated trades into real accounts. The architecture uses a factory pattern (easytrader.use() and easytrader.follower()) to create broker-specific trader instances, with abstract base classes (ClientTrader, WebTrader, BaseFollower) implementing common operations like buy/sell/query. A Flask-based remote server mode allows separation of trading client and strategy execution machines. The code is well-structured with clear separation of concerns: config files define broker-specific UI control IDs, strategy patterns for grid data extraction (Copy, Xls) and data refresh (Switch, Toolbar) allow customization without changing core logic. The follower framework includes command expiration, slippage modeling, and multi-user/multi-strategy support. The miniqmt module wraps the proprietary xtquant SDK into the same easy-to-use interface. While the desktop GUI components are Windows-only and tightly coupled to specific broker client binaries, the web-based trader and follower modules are more portable. The library has been actively maintained for years with a large user base (10k+ stars), though some dependencies like pywinauto 0.6.6 and Python 3.6+ show signs of technical drift.

RATING: 7.9/10 MAINT: active DRIFT: medium
β–Έ 4 reusable components found
xingwudao/xquant-beginner β˜… 729 155 DATA_RESEARCH

This repository contains the open-source book 'XQuant: δΊΊδΊΊιƒ½ζ˜―ι‡εŒ–δΊ€ζ˜“ε‘˜' (XQuant: Everyone Can Be a Quantitative Trader), which serves as an educational resource for learning quantitative trading methodologies. Rather than being a functional trading application, it provides a structured curriculum teaching readers how to develop, test, execute, and monitor quantitative strategies using AI coding assistants. The book walks through a complete workflow: from selecting investment instruments (ETFs), determining position sizing, creating trading rules, validating strategy performance, avoiding overfitting, modeling execution costs, to monitoring and iterating on live strategies. Its unique value lies in teaching a spec-driven development approach where users write clear strategy specifications that AI coding assistants can translate into executable code, making quantitative research accessible to non-programmers.

RATING: 7.7/10 REPRO: 4.0/10 MAINT: active DRIFT: low
β–Έ 4 reusable components found
ryanfrigo/kalshi-ai-trading-bot β˜… 592 191 APPLICATION

This repository implements an automated trading bot for Kalshi prediction markets, leveraging AI models (primarily via OpenRouter) to make directional trading decisions. The system is built as an async Python application with a CLI entry point (`cli.py`), a Streamlit dashboard, and a paper trading mode. It supports multiple strategies: an AI-driven directional strategy using a multi-agent debate pipeline (bull/bear researchers, risk manager, trader), a conservative NO-side safe compounder, market making, and a unified trading system that dynamically allocates capital. The core data flow involves ingesting market data from the Kalshi REST and WebSocket APIs, persisting to SQLite, running AI inference through OpenRouter with fallback chains and cost tracking, executing trades via Kalshi's signed REST API, and monitoring positions with stop-loss/take-profit logic. Risk management is enforced through Kelly criterion position sizing, edge filtering, category scoring, portfolio enforcer, and cash reserves. The codebase also includes performance analysis jobs, a paper trading signal tracker with static HTML dashboard, and a comprehensive test suite. External dependencies include Kalshi API, OpenRouter (with optional xAI and Grok models), SQLite, Streamlit, and various async libraries (httpx, aiohttp, websockets).

RATING: 7.5/10 MAINT: active DRIFT: medium
β–Έ 6 reusable components found
zillionare/zillionare β˜… 324 37 DATA_RESEARCH

This repository is a comprehensive knowledge base and research platform for quantitative finance, primarily focused on Chinese A-share markets. It contains hundreds of blog posts, course materials, and technical articles covering factor investing, machine learning strategies, backtesting frameworks, and data engineering. The codebase includes reusable data pipelines (ParquetUnifiedStorage, CalendarModel), a custom backtesting framework (Moonshot), and numerous factor analysis scripts. It also hosts a sophisticated set of AI-assisted academic research skills (paper writing, review, deep research) defined as Claude skill files. The repository serves as both an educational resource and a personal research lab, with content spanning from beginner Python tutorials to advanced factor construction and model training. While the code is functional and demonstrates solid data engineering patterns, it is tightly coupled to Chinese financial data APIs (Tushare, akshare) and contains hardcoded paths, limiting portability. The repository is actively maintained but shows signs of technical drift in some dependencies and content duplication.

RATING: 6.4/10 REPRO: 6.0/10 MAINT: maintained DRIFT: medium
β–Έ 4 reusable components found
── end of results ──
$ submit: