zerodha / dotnetkiteconnect

.NET library for Kite connect
MIT License
78 stars 67 forks source link

Issue with subscribing to LTP #9

Closed rsiddhartht closed 5 years ago

rsiddhartht commented 5 years ago

Hello,

I believe this might be an issue, w.r.t the way we subscribes to ticks, for an instrument. I am interested in getting the LTP for an instrument and following is the code to achieve the same:

var testToken = new uint[]
{
13406210
};
_ticker.Subscribe(Tokens: testToken);
_ticker.SetMode(Tokens: testToken, Mode: Constants.MODE_LTP);

Even though the mode specified is LTP, the OnTick() method is called every second with the same LTP value (please check the issue raised in Kite forum: Kite Forum Link).

Can you please have a look into this?

Thanks!

ajinasokan commented 5 years ago

Closing this issue in favor of the discussion in the forum.