{"repo":"NadirAliOfficial/ibkr-auto-order-bot","free":true,"listed":false,"github":"https://github.com/NadirAliOfficial/ibkr-auto-order-bot","clone":"git clone https://github.com/NadirAliOfficial/ibkr-auto-order-bot.git","description":"Automated order execution bot for Interactive Brokers — places, tracks, and manages orders via IB Gateway","language":"Python","stars":11,"topics":["algorithmic-trading","automation","ibkr","interactive-brokers","order-execution","python","stocks","trading-bot"],"license":"MIT","category":"trading","readme_excerpt":"💹 IBKR Python Trading Bot A simple automated trading bot built using Python and IB Gateway via the ib insync library. The bot connects to your Interactive Brokers Paper Account and places a sample market order every 5 minutes . --- ⚙️ Features - Connects automatically to IB Gateway - Places sample BUY orders every few minutes - Reconnects automatically if disconnected - Logs all activity in ib gateway bot.log - Safe exception handling and clean shutdown --- 🧩 Requirements 1. Install Dependencies 2. Install IB Gateway Download: https://www.interactivebrokers.com/en/trading/ibgateway-stable.php Log in to Paper Trading account Enable API Access: ⚙️ Configure → API → Settings ✅ Enable ActiveX and Socket Clients 🔢 Port: 7497 💻 Trusted IPs: 127.0.0.1 --- 🚀 How to Run 1. Start IB Gateway (Paper) 2. Run the bot: 3. The bot will: Connect to your gateway Place a BUY 1 AAPL order every 5 minutes Save all logs to ib gateway bot.log --- 📜 Log Example --- 🧠 Code Overview ib gateway bot.py Section Description ---------------- ---------------------------------------- Logging Setup Saves logs to file Connection Logic Connects or reconnects to IB Gateway Order Execution Places market order (BUY 1 AAPL) Error Handling Logs and retries if any exception occurs --- 📈 Future Enhancements Students can extend this project by adding: 🔁 Alternate between BUY and SELL 💰 Trade only if AAPL < certain price 📊 Save all trades to a CSV 🧮 Add simple moving average logic 📢 Send Telegram alerts on ","default_branch":null,"files":null,"tree":[],"storefront":"/r/NadirAliOfficial","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/NadirAliOfficial/ibkr-auto-order-bot/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."}