{"repo":"ml4t/live","free":true,"listed":false,"github":"https://github.com/ml4t/live","clone":"git clone https://github.com/ml4t/live.git","description":"Live trading runtime for ML4T strategies with broker integrations, risk checks, and shadow mode.","language":"Python","stars":17,"topics":["algorithmic-trading","alpaca","broker-api","finance","interactive-brokers","live-trading","machine-learning-for-trading","ml4t","python","quantitative-finance"],"license":"MIT","category":"trading","readme_excerpt":"ml4t-live Live trading runtime for causal ML4T strategies. Part of the ML4T Library Ecosystem This library is one of six interconnected libraries supporting the machine learning for trading workflow described in Machine Learning for Trading: Together they cover data infrastructure, feature engineering, modeling, signal evaluation, strategy backtesting, and live deployment. What This Library Does Deploying a backtested strategy to live markets requires careful handling of async broker connections, risk limits, and testing infrastructure. ml4t-live provides: - Strategy portability under the shared lifecycle version 1 contract - Two broker integrations: Interactive Brokers (TWS/Gateway) and Alpaca (stocks + crypto) - A stable-supported OKX feed plus typed bar aggregation - Explicit opt-in experimental adapters for Alpaca, IB, generic CCXT, and DataBento workflows - Shadow mode for testing without placing real orders (VirtualPortfolio tracking) - 16-parameter risk configuration: position limits, order limits, loss limits, price protection - Kill switch with crash-safe state persistence (atomic JSON writes) - Startup preflight, reconciliation, and JSONL execution journaling for operator workflows - Async architecture with thread-safe sync bridge for strategy callbacks The goal is gradual deployment: shadow mode first, then paper trading, then live with small positions. Installation Add the optional DataBento SDK only for deliberate experimental evaluation: Quick Start Broker Integ","default_branch":null,"files":null,"tree":[],"storefront":"/r/ml4t","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ml4t/live/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}