HKUDS/Vibe-Trading

"Vibe-Trading: Your Personal Trading Agent"

What it solves

Vibe-Trading provides a comprehensive framework for creating personal trading agents. It bridges the gap between high-level AI reasoning and the technical execution of financial trading, allowing users to empower agents with market data access, backtesting, and live trading capabilities across various brokers and asset classes.

How it works

The project implements a trading agent architecture that integrates several core components:

  • Agentic Capabilities: It uses LLMs (supporting providers like Anthropic, NVIDIA NIM, and others) to drive decision-making and tool use.
  • Broker Connectors: It includes a wide array of connectors (e.g., IBKR, Alpaca, OKX, Binance, MetaTrader 5) to handle live trading and data retrieval.
  • Market Data & Analysis: It features a robust data-loading layer with fallback chains for historical data, factor analysis tools, and correlation regime detection.
  • Backtesting & Simulation: It includes a "Shadow Account" and an AST-hardened backtest sandbox to test strategies safely before live deployment.
  • Infrastructure: The system is built with a FastAPI backend and a React frontend, utilizing the Model Context Protocol (MCP) for tool discovery and execution.

Who it’s for

  • Algorithmic Traders: Those looking to automate strategies using LLM-driven agents.
  • Quantitative Analysts: Users who need tools for factor analysis, backtesting, and market regime detection.
  • Developers: People wanting to build custom trading bots with a standardized set of financial tools and broker integrations.

Highlights

  • Extensive Broker Support: Integrates with 12+ broker connectors including MetaTrader 5 and Longbridge.
  • Multi-Asset Support: Handles US/HK stocks, crypto (including USD-M perpetuals), and forex/metals.
  • Security-First Design: Features an AST-hardened sandbox for backtesting and hash-locked dependencies.
  • Advanced Analysis: Includes a "fundamental zoo" for factor analysis and causal hysteresis state machines for market correlation regimes.
  • Flexible LLM Integration: Supports a wide variety of AI providers including Kimi, SiliconFlow, and iFlytek Spark.