fix websocket - python issue

Job ID: 36888342

Budget: $10 – $30 USD

I'm using a websocket to bet BTCUSDT data, then displaying those data on a page and also using those BTCUSDT data to generate new indicators data using a python library
- the issue to be fix is: after few minutes it's creating a delay between the data displayed and the current time, purpose is to fix the delay problem so data will appear at the same time as current time (see video capture you'll get it https://bit.ly/3OetARF)

some other information see the steps:
1) server is connecting "wss://stream.binance.com:9443/ws/btcusdt@kline_1s" websocket url
2) then decoding the websocket response means BTCUSDT response
3) then assigning "open/high/low/close/volume" values we get on the response in a variable
4) then using those data as input it'll use the "pands-ta" python lib (each indicator accepting different parameters) so we can generate other indicators data, see the list https://github.com/twopirllc/pandas-ta/tree/084dbe1c4b76082f383fa3029270ea9ac35e4dc7/pandas_ta.
5) after getting each indicator response, we are formatting the response, saving data on a db table and displaying data on tables on http://185.92.220.43:5000/
Related categories: Python Ubuntu