Small Python Script Debugging and Optimization. Buffering data from API.

Job ID: 37687911

Budget: $30 – $250 USD

We need a developer with Python experience to help us optimize and fix a script that connects to an API then processes the pulled data.

- Script is 256 lines. File is attached.
- Understands API connections
- Can identify and fix data processing errors
- Can optimize scripts to handle high-speed data with buffering.

Currently the script fails when an API call fails to retrieve some piece of data.
Additionally, it does not seem to properly handle assigning "request ID" within the loop, leading to "duplicate request ID" errors during a session.
We think the solution is some combination of "retry" and "wait" loops with validation.

You should review the code and make the appropriate changes, so the script can run properly.

Experience with Interactive Brokers IBapi is helpful but not required.
Experience with OpenAI / GPT models is a plus; can discuss additional project opportunities.
Related categories: Python Software Architecture API ChatGPT