How to handle Too many requests error for GetLTP

Mangesh
I want to continuously read values of LTP for bank nifty..

Hence I am using a Timer and following code.... Its reading value properly

But after few minutes it gives "Too Many Requests" error and exits

Is there any other way to CONTINUOUSLY read LTPs of few scripts without getting too many request error ??

private void timer1_Tick(object sender, EventArgs e)
{
try
{
ltps = kite.GetLTP(InstrumentId: "NFO:BANKNIFTY21JANFUT");
}
catch
{
ErrorCode = 1;
}

FutPrice = Convert.ToDouble(ltps["NFO:BANKNIFTY21JANFUT"].LastPrice);
}
Sign In or Register to comment.