0xMatthieu / Simple_arbitrage_algo

MIT License
0 stars 0 forks source link

websocket prices disconnected after few seconds #2

Open 0xMatthieu opened 2 years ago

0xMatthieu commented 2 years ago

following websocket index, it happens that prices are:

other:

0xMatthieu commented 2 years ago

could be related to the soft itself. Threading in Python is concurrency / not parrallel, means since arbitrage is in a while loop running as fast as possible: there is a lack of time letting time to other thrad to run which can cause server to disconnect

https://testdriven.io/blog/concurrency-parallelism-asyncio/

0xMatthieu commented 2 years ago

Data manipulation takes time so connection is lost.

Should try: