{"repo":"NadirAliOfficial/Discord-IBKR-","free":true,"listed":false,"github":"https://github.com/NadirAliOfficial/Discord-IBKR-","clone":"git clone https://github.com/NadirAliOfficial/Discord-IBKR-.git","description":"This Discord bot allows you to automate trading actions on Interactive Brokers (IBKR) based on trade alerts posted in Discord channels. The bot listens for specific keywords in messages (e.g., 'buy', 'sell') and executes corresponding trades using the IBKR API.","language":"Python","stars":12,"topics":["algorithmic-trading","automation","discord","ibkr","interactive-brokers","python","trading-bot"],"license":"BSD-3-Clause","category":"trading","readme_excerpt":"Discord IBKR Bot A Discord bot that bridges trading alerts from Discord channels directly to Interactive Brokers. Monitors specified channels for buy/sell signals, parses structured alert messages, and executes orders via ib insync — with trade journaling, position tracking, and Discord reply confirmations. --- How It Works --- Features - Channel monitoring — watches one or more Discord channels for structured trade alerts - Alert parsing — extracts symbol, direction, quantity, TP, and SL from natural-language messages - IBKR execution — places market entry + limit TP + stop SL orders via ib insync - Duplicate filter — ignores repeat signals for an already-open position in the same direction - Discord reply confirmation — bot replies to the alert message with order fill details - Trade journal — all trades logged with entry price, TP/SL levels, fill times, and exit reason - Position tracker — /positions command shows all open IBKR positions with unrealized P&L - Manual override — /close SYMBOL command to close any position directly from Discord --- Setup 1. Install dependencies 2. Configure .env 3. Start TWS or IB Gateway Enable API access in TWS: File → Global Configuration → API → Settings → Enable ActiveX and Socket Clients 4. Run --- Alert Format The bot parses alerts in this format (flexible, not strict): Supported keywords: BUY , SELL , LONG , SHORT , CLOSE , EXIT --- Discord Commands Command Description --- --- /positions List all open IBKR positions with unrealized P&","default_branch":null,"files":null,"tree":[],"storefront":"/r/NadirAliOfficial","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/NadirAliOfficial/Discord-IBKR-/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."}