☰
Login
Signup
Home
›
Python 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.9K
All Categories
0
Incidents
156
Node JS client
40
Go client
793
.Net API client
380
Kite Publisher
537
.Net / VBA / Excel (3rd party)
458
Algorithms and Strategies
998
Java client
1.1K
API clients
404
PHP client
4K
Python client
347
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
April 2021
SITPL
April 2021
sujith
April 2021
pranksterguru
What is order latency of Kite Api
SITPL
April 2021
in
Python client
Today observed that order round trip took almost 450 milliseconds. Similar was the case for subsequent orders that went through.
As per NSE latency report (
https://archives.nseindia.com/content/CM_Latency_stats15042021.csv
), the mean latency at exchange was 130 microseconds on 15-Apr
Similar latency is observed when app is run locally on high speed wifi as well as in cloud environment
Is this much network latency expected?
Below are logs for reference.
2021-04-16 09:36:04,093 - kiteApi - worker_2 - INFO - Sending Order {'orderAction': 'NEW', 'transactionType': 'BUY', 'orderType': 'MARKET', 'underlyingName': 'BANKNIFTY', 'strike': '31300 PE', 'expiryDate': datetime.date(2021, 4, 22), 'qty': 25}
2021-04-16 09:36:04,340 - kiteApi - worker_2 - INFO - Order {'orderAction': 'NEW', 'transactionType': 'BUY', 'orderType': 'MARKET', 'underlyingName': 'BANKNIFTY', 'strike': '31300 PE', 'expiryDate': datetime.date(2021, 4, 22), 'qty': 25} sent
2021-04-16 09:36:04,413 - orderListener - Thread-1 - INFO - Received Order Data
Tagged:
Python Client
latency
pranksterguru
April 2021
and the worst case is that i stopped getting order updates after 11 am . because of which , the logic of my program failed.
if i give the trade references, would you guys be able to check if updates were sent ?
sujith
April 2021
@SITPL
,
It is possible that latency goes to 400ms but it can't be average. You can make some other API calls can check the latency.
@pranksterguru
,
It seems like you haven't set the postback URL.
SITPL
April 2021
@sujith
Thanks for the confirmation. We can close the thread
This discussion has been closed.
if i give the trade references, would you guys be able to check if updates were sent ?
It is possible that latency goes to 400ms but it can't be average. You can make some other API calls can check the latency.
@pranksterguru,
It seems like you haven't set the postback URL.