I want to use fyers websocket for multiple accounts , for this I am looping over the accounts and calling the fyers ws client in a python file , but it is failing and attempting to reconnect and after 5 attempts it is abandoning the connection doing nothing , this is not happening with a single account . Any solutions to use use websocket for multiple accounts ?
Hi @LeprmSn27o
Why you want to run for multiple account at single place.
If you want to run for multiple account , run in different repo.
We have 4 family accounts , we want to monitor all together , any solution for this ?
Hi @LeprmSn27o
Which data you want from 4 accounts.
Positions live as they open or close and orders as they are placed
so make 4 different repo and run in different repo with client wise.
@Z4PBvkQGyF What do you mean by different repositories , is it that same ip cannot call multiple websockets ? Or different files can run side by side on same client/computer ?
@Z4PBvkQGyF What do you mean by different repositories ? As in can we run as different files on the same client with same ip or same ip cannot call multiple websocket accounts?
Yes
My point is that
let say you want to run one file main.py which do some your work for one client
Make 4 folder
Put same file but run for different different client.
Hope you got it .
This is you want or is something else ?
Running multiple files for each account is not a solution. What if we have 1000 accounts which are coming dynamically?