the last tick for a particular candle gets missed in the websocket
We use the same tick source for our charts. We haven't received any complaints about this. If you can, provide the exact missing ticks timestamp and value, we can maybe check from ou…
there is a mismatch in prices for ticker ABB on 2024-09-03
Didn't get you? Do you mean there is a difference in Quote/websocket OHLC and the historical minute data? Can you paste the data here for reference?
HTTPSConnectionPool(host='api.kite.trade', port=443): Read timed out. (read timeout=7)
We haven't received such feedback about an increase in timeout recently, from any of the users/platforms. Maybe, you can handle this timeout.
"https://kite.zerodha.com/connect/finish?api_key=xyz&sess_id=abc"
This is a wrong redirect. Are you sure you authorized the app in the initial login flow?
Successful login will return:
https://your_redirect_url?action=login&type=login&st…
I fetch account balance every 5 seconds
It's not recommended to fetch funds APIs so often. It can be an event based request(eg: post placing orders, etc).
Error: error:InputException:Order placement is down due to scheduled maintenance
Can you give us the debug log for this rejection? Was this after the market open?
From our side, there wasn't any issue.
I am also getting "Too many requests" with kite quote API after 25th sept, approximatly 1 hr after running the code live daily
There has been no change in the APIs. Can you provide your IP? We will debug on this.
However, since yesterday, I have started receiving error 409: Too many requests
Can you paste here the complete error stack-trace? With the complete URL. Also, DM your/prod IP as well.
1. subscribe to the websocket in the frontend for getting order updates in real-time
2. successfully place an order, let it get executed (so that it now converts to a new position)
3. the issue arises now -> i don't get a message via websocket st…
ABB24OCT8100CE
AARTIIND24OCT590PE
AARTIIND24OCT570CE
ABBOTINDIA24OCT32000CE
Are you trying to fetch it for intra-day interval? 1min, 15min, etc.
There has been no trade intraday, so data is available only for day-interval candles.
I place one order and I can modify this order 25 times (25 is the limit). So If I do that 25 time, does that considered as 25 orders and now I can only have 3000-25 as the daily limit?
No, only POST/ order placement request is called an individual c…
suppose internet connection disconnected and came back socket reconnects,
but some instruments data is not receiving after reconnecting.
There might not be any tick for those instruments. Go through the websocket FAQs here.
we receive live price quotes..but orders are not punching...is any problem with kite api?
No, there are no order-related issue. Can you paste here the error stack trace? Or debug log of the order placement.
1st time i call the api at 9:30AM today and 2nd time i call the api at 11:30 AM today and got two different values
You would have requested candle, before the candle completion. Go through the historical data FAQs.
from_datetime = datetime.fromisoformat('2024-09-04 09:15:00+05:30')
to_datetime = datetime.fromisoformat('2024-09-04 09:20:00+05:30')
There was no trade for BANKEX24909FUT during the mentioned period. First trade for the day happened at 2024-09-04 1…
kite.historical_data("TCS",from_date,dt.date.today(),"5minute")
You are assigning wrong token, instead of "TCS"(trading symbol) it should be instrument token. Go through the documentation here.
type: 'close',
wasClean: false,
reason: '',
code: 1006
Can you paste here, the complete error stack trace? Error code:1006 states, the websocket was disconnected, reason would be available in the complete error trace.
But OHLC exists in the tick data too.
Yes. If you are looking to continuously consume the tick stream, you can do the same(quote or full mode). But, if you are looking to just get the open price, you can use Quote APIs.
Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1002)')))"))
Looks like, related to OpenSSL. This thread might be helpful.
historical data of equity stock , are the ohlc of daily candles adjusted for splits, bonus and dividends ?
Yes, it's adjusted for all corporate actions.
Spot price is the underlying price which wouldn't remain the same the whole day
last_price column is not updated in real-time in instruments file. You need to use WebSocket or quote APIs to fetch the same.
If I fetch file every time, it would be heavy operation and I need that data every second to calculate precise Greeks
You don't need to query everytime. You need to fetch the instruments file once before the market, store it locally on your end, and…
@lalitnmudgal @KamalChhirang
I checked with the team regarding this issue. On that specific day, the MCX contract file was delayed from the exchange. Consequently, the instrument file was updated later before the market opened.
PS: It's always bett…
so does it mean that .disconnect() has been changed to triggerDisconnect()
No, it's an internal callback for disconnect event. It's used at onclose and connect.
tickInstance.disconnect()
Okay, so you are looking for a callable method to disconnect …
there is any possibility to obtain option chain data of index
This is no inbuilt option chain API. You will need to build to build it your end. Go through this thread.
so if i wanted to get 10 stock's historical candle data every second, is that possible?
No, it will exceed the defined rate limit. Go through the historical data FAQs here.
@ANL
I think they just started with Clickhouse, which is SQL DB
Clickhouse and Redis.
It has been quite sometime being on the above stack for kite-charts backend.
"Authorization: ppppppppppppppppppppppppppPeij97" -H "api_key: aaaaaaaaaaaaaflb"
You are using the wrong authentication signature. You need to use "Authorization: token api_key:access_token", here api_key and access_token is a placeholder for your …
kite.cancel_order return in case where a order has been successfully cancelled
It will return the order Id. You can see all the sample mock responses here.
where it was unable to cancel the order?
how will it behave in case the order_id, variety com…
On versions of python above 3.11, idling of more than 5 minutes reproduces ReadTimeout error on 1st call, 2nd and subsequent calls are fine
Hey, this doesn't seem to be related to the Kiteconnect API error. Maybe something to do with the underlying …
Is there a special flow for those apps or anyone can implement similar login flow
These are exchange-approved partners, like Streak or Sensibull. You can write to the compliance team on kiteconnect(at)zerodha.com, to know about the exchange-approved…
Could you please let me know if it's possible to change the tag of an order when the order is in any of the following statuses: ORDER_REJECTED, ORDER_CANCELLED, ORDER_COMPLETE, ORDER_OPEN, ORDER_LAPSED, or ORDER_TRIGGER_PENDING,UPDATE ?
No, tags can…
after 13:13 data i got 16:26 data
There was no issue on our side with Quote APIs. Maybe you can check the logs at your end, regarding the failed requests, etc.
As, the documentation mentions continuous data works for NFO and MCX futures contracts.
SENSEX24816FUT (218478597), BFO
This is a BFO exchange contract.
So continuous does not apply to all futures but only monthly futures? Weekly futures are exclude…
Dividend prices are added to the adjusted stock price or subtracted?
It is adjusted as per the exchange circular. You can refer to a recent dividend circular here.
orders with TTL limit of 20 min are not getting cancelled automatically.
Custom TTL validity is not allowed in Order placement APIs. The allowed TTL are same as showed in the kite web Order UI.
curl --request GET \
--url 'https://api.kite.trade/quote/ltp?i=260105' \
--header 'Authorization: token apikey:accessToken' \
--header 'X-Kite-Version: 3'
I just tried the same Quote request(sample Curl above), and it's working fine.
{
"statu…
ReadTimeout: HTTPSConnectionPool(host='api.kite.trade', port=443): Read timed out. (read timeout=7)
Is timeout coming only for specific tokens? Can you paste here those token/tokens.
Maybe try it out with some active tokens.
I am not getting refresh token after generating the session. I want to regenerate access token.
You will need to generate request_token, and use it to generate access_token. Go through the login flow documentation here.
The access token is valid for…
Connection error: 0 - error parsing request
You will need to clean up your subscription token list and ensure that it consists of integers with no white spaces in the list.
for x in range (3,1305):
name = sht.range('A'+str(x)).value
if name == None:
break
token = sht.range('E' + str(x)).value
subscribe.append(token)
Can you check, if you are not sending any invalid token?
Since today morning Kiteticket seems to be not threading (Not working)
Everything is fine at our end for kiteconnect ticker/websocket stream. Just tried, an threaded example, and it's working fine. Can you paste here the complete error stack trace/…
I am trying to get my old trades/ orders
By old orders, do you mean historical orders placed before today?
Kiteconnect provides today's placed orders in orders API. We don't have APIs for historical orders. Go through the FAQs and documentation here.
ERROR:kiteconnect.ticker:Connection error: 0 - Server is shutting down
When did this happen? Can you paste here the timestamp log?
Can i put reconnect=True when i initialize kiteticker sending the apikey and token and it will reconnect?
Yes, it will…
instrument_token : 505737
1. message is incorrect
It will throw an invalid token error message, which is correct, as there are no active instrument with instrument_token: 505737.
2. why data is not available
Because you are using an invalid instrume…
I am using Historical data and API. Many Times, getting error when extracting them outside market hours.
Is there any specific time, where in you daily Refresh the same?
Yes, we do BOD(Beginning of the day process including flushing older active acc…
No, there is no different API to fetch historical data for the list of instruments. You will need to iterate through the list, and make historical API call. Make sure to be within the rate limit. Go through the historical data FAQs here.
it is working fine in version V4.2.0( Just 5 to 10 seconds). at any time.Please have a lookk and fix it
As I mentioned before, there are no changes to fix.
can you subscribe for whole option chain and try it.
There are many systems that do it. You n…
I doubt have you introduced any queue concept in websocket?
No, no changes in the ws implementation. You can go through the version change log here.
I just tried the time lag between exchange time and system time for NIFTY 50 index(256265) on the la…
For the month of April-2024, kite data is not matching with NSE and TradingView data
Data was adjusted for the extraordinary dividend of 45 on MPSLTD. We adjust historical data for corporate actions to enhance analysis. Bonus, split, right issue, sp…
Everyday , i need to do login twice or thrice in order to make the LTP or Profile API work
Make sure, you do not have multiple sessions active. Go through the login FAQs here.
if I download at around 6 AM, will I get incorrect data 1 day ? will I get incorrect data for previous day 1 min ohlc ?
Yes, you can fetch previous day data.