Python IB Trading Bot Upgrade

Job ID: 39949534

Budget: $250 – $750 USD

I already have a Python bot that places trades through the Interactive Brokers API according to a set of hard-coded rules. Before I move it into live deployment I need an experienced developer to audit the code, remove the bugs that occasionally block orders, and then extend its feature set.

Current state
• Written in Python 3.x, calling the native IB API and a lightweight websocket wrapper.
• Executes trades whenever pre-set price and volume conditions are met.
• Runs headless on an Ubuntu VPS.

What I want next
1. Robust connection management so the bot automatically re-authenticates and resubscribes when the IB gateway drops.
2. A new layer of market-sentiment logic that can interpret social-media or news feeds (you may recommend APIs) and inject those signals into the existing decision tree.
3. A clean, well-commented refactor that leaves me with a functional prototype I can step through in a debugger.

Deliverables
• Reviewed and cleaned source code with explanatory comments.
• Modular sentiment-analysis component (Python class or package) wired into the trading flow.
• Connection-handling utilities that log, retry, and alert on failures.
• A short README covering setup, environment variables, and a test procedure I can reproduce.

You will have SSH access to a staging VPS and paper-trading credentials. Please be comfortable with pandas, asyncio, and the nuances of the IB API rate limits. Unit tests or notebooks that demonstrate the new logic are a plus.
Related categories: PHP JavaScript Python Software Architecture Debugging Ubuntu API Pandas