- uses mix of market_data api and websocket, as websocket gives issue with large instruments.
- uses market_data api of angelone to fetch instruments in large numbers. (can't use websocket as continous calling for large number of instruments result in blocking.)
- uses websocket for few instruments for which ltp is required each second. (can't use market_data api here, as calling it continously per second will result in getting blocked.)
- Most efficient version to date
- Optimized for handling a large number of instruments Pros
- angelone blocks as continous fetching is done to speed up find_new_instrument when conditions match
- Introduced websocket on port 5001
- Limitations:
- High-frequency API calls to port 5001 (Flask route/REST endpoint) create a bottleneck when handling numerous instruments
- Scalability issues under increased load
- Developmental stages leading to current implementation
pip install -r requirements.txt
- Run the application
- Open
http://127.0.0.1:5000in your browser
- Python 3.x
- See
requirements.txtfor package dependencies