☰
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
11.2K
All Categories
73
Node JS client
22
Go client
650
.Net API client
313
Kite Publisher
516
.Net / VBA / Excel (3rd party)
367
Algorithms and Strategies
845
Java client
854
API clients
368
PHP client
3K
Python client
300
Mobile and Desktop apps
1.1K
Market data (WebSockets)
2.7K
General
In this Discussion
January 2021
sujith
January 2021
rjamitsharma
How to handle Too many requests error for GetLTP
Mangesh
January 2021
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 2021
Put sleep timer at least one second
Or you should use
Live data websocket
sujith
January 2021
@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.