Code Refactoring + TWI API integration

Job ID: 35124223

Budget: $30 – $250 AUD

This code is for backtesting a trading strategy
- The inputs are Ticker and Entry date
- The code then finds the entry price and sell price based on some conditions

Currently there's 4 files, but needs to be broken into smaller, more organised and easier-to-understand files/functions:
- Currently 1134 + 426 + 623 + 206 lines of code

Existing code functions, however, also needs modification:
- Currently uses Polygon API. Change to TWS API
- Currently uses Finviz for sector information. Change to TWS API (all data e.g TSLA, Consumer Cyclical, Auto Manufacturers, Auto-cars/light trucks, ev)
- Auto Update results in google sheets
Related categories: Python Trading Backtesting