☰
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
13.8K
All Categories
0
Incidents
153
Node JS client
40
Go client
793
.Net API client
378
Kite Publisher
537
.Net / VBA / Excel (3rd party)
457
Algorithms and Strategies
993
Java client
1.1K
API clients
404
PHP client
4K
Python client
346
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
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.