OnZerodhaTicker

Saleem
There are currently around 10+ lac instruments available under the list of instruments.

1. Do all the instruments' ticks show up in OnZerodhaTicker, when I subscribe to ticks from all the instruments with the ticker?
Is there a restriction on number of instruments added to a ticker to get the ticks?

2. I have a winform .NET exe which registers gets the ticks with the values. Initially, it works well, but after sometime, say 3-4 hours after the login, the ticks stop working, I have to close and start the exe again. Is there an issue with my code or some setting needed?

ticker1 = new Ticker(MyAPIKey_Zerodha, MyAccessToken);

ticker1.OnTick += OnZerodhaTicker;
ticker1.OnReconnect += OnReconnect;
ticker1.OnNoReconnect += OnNoReconnect;
ticker1.OnError += OnError;
ticker1.OnClose += OnClose;
ticker1.OnConnect += OnConnect;
ticker1.OnOrderUpdate += OnOrderUpdate;

ticker1.EnableReconnect(Interval: 5, Retries: 500);
ticker1.Connect();

ticker1.Subscribe(listOfInstruments.ToArray());
ticker1.SetMode(listOfInstruments.ToArray(), Mode: KiteConnect.Constants.TickerMode.Full);
Sign In or Register to comment.