☰
Login
Signup
Home
›
.Net API client
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
9.2K
All Categories
9
Go client
538
.Net API client
230
Kite Publisher
473
.Net / VBA / Excel (3rd party)
288
Algorithms and Strategies
719
Java client
678
API clients
331
PHP client
2.3K
Python client
264
Mobile and Desktop apps
996
Market data (WebSockets)
2.3K
General
In this Discussion
January 27
sujith
January 26
rjamitsharma
How to handle Too many requests error for GetLTP
Mangesh
January 26
in
.Net API client
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);
}
rjamitsharma
January 26
Put sleep timer at least one second
Or you should use
Live data websocket
sujith
January 27
@Mangesh
,
You seem to be hitting the API rate limit. You can know the API rate limits
here
.
Sign In
or
Register
to comment.
Or you should use
Live data websocket
You seem to be hitting the API rate limit. You can know the API rate limits here.