{"repo":"NadirAliOfficial/ibkr-copytrade-engine","free":true,"listed":false,"github":"https://github.com/NadirAliOfficial/ibkr-copytrade-engine","clone":"git clone https://github.com/NadirAliOfficial/ibkr-copytrade-engine.git","description":"Production-ready trade replication engine for Interactive Brokers. Copies trades from a master account to multiple follower accounts with position sizing, risk controls, and execution monitoring.","language":"Python","stars":12,"topics":["algorithmic-trading","automation","copy-trading","ibkr","interactive-brokers","python","risk-management","trading-bot"],"license":"MIT","category":"trading","readme_excerpt":"⬡ Pax Americana Mirror trades from a master IBKR account to unlimited client accounts in real-time. --- How It Works --- Project Structure --- Setup 1. Master Machine (Windows RDP / VPS) The master machine runs TWS 24/7 and serves orders to all clients. Requirements: - TWS (Trader Workstation) running and logged in - API enabled in TWS: Edit → Global Config → API → Enable ActiveX and Socket Clients - Port 5000 open in Windows Firewall Open firewall (run as Administrator in CMD): Install: Run: master.py will: - Connect to TWS on 127.0.0.1:7496 - Capture all open and new orders in real-time - Start Flask API on port 5000 - Serve orders + master balance to all clients API Endpoints: Method URL Description -------- ----- ------------- GET /orders?since=N Returns new orders from index N GET /balance Returns master account balance GET /status Server status + total orders POST /clear Clear order list --- 2. Client Machine (Windows) Each client runs Pax Americana.exe on their own machine with their own TWS. Requirements: - TWS installed, running, and logged in to their IBKR account - API enabled in TWS settings Configuration (inside NeroAI CopyTrade.py before building .exe): Replace YOUR MASTER IP with the public IP of the master Windows machine. Find it at: https://whatismyip.com (run on master machine) --- Client Features TWS Connection - Live → auto-connects to port 7496 - Paper → auto-connects to port 7497 - No manual port or host entry needed Copy Mode Mode Description ------ --","default_branch":null,"files":null,"tree":[],"storefront":"/r/NadirAliOfficial","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/NadirAliOfficial/ibkr-copytrade-engine/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."}