how can the price on an historical candle be so different for over 1 min. a couple of second is understandable
As, explained above, you shouldn't expect live candles for the intraday period. This thread explains in detail for your above query.
The historical data has last traded price but not the closing price.
Weighted average close price is updated on the day interval historical data, as it's synced from the respective exchange bhav copy.
Screenshot, you have mentioned is of Sell SL order. Yes, you can set trigger and limit price, calculated internally at your end. Go through the order placement parameters documentation here.
can i assign IP and port with self signed SSL certificate
No, you need to use the checksum field from postback response to verify the authenticity of the order placed.
DataException: Unknown Content-Type (text/html) with response: (b'\r\n502 Bad Gateway\r\n\r\n
Can you let us know the request time for 502? We haven't encounter any 5xx errors at our end, for yesterday market timings.
invalid api or access token
the key fil which is saved in my server is having the same access key every time
Make sure, you are using the new api_key at all called instants.
is there anything upgraded from kite api during last 6 month ?
No, there h…
currencypairs .. GBPINR, EURINR ... historical data api is returning the latest candle data with 1 min delay. please can someone look into this?
I just checked and the historical data API is returning fine. It's not recommended to poll historical d…
1006: connection was closed uncleanly (peer dropped the TCP connection without previous WebSocket closing handshake)
Can you paste here/DM your websocket code? As, per the error message, it looks like websocket dropped, due to blocking on the thread…
Company A went bankrupt in 2020 and removed from NSE. If I need historical data for 2019, how do I get data for company A? What is their instrument token?
You can only get current trading instruments tokens and it's historical data. So, the removed…
('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Are you using a conda environment?
This thread might be of help.
I can't able to get 09-01-2024 and 02-01-2024 date expiry data
nse = kite.instruments('NFO')
This fetches the current day/last trading day instrument list. As you are fetching as on date > 09-01-2024 and 02-01-2024. Those expired contracts won't …
EQUITAS -> EQUITAS HOLDINGS LIMITED
Go through the exchange circular. It's delisted and merged into Equitas Small Finance Bank Limited.
ADANIPORTS -> ADANI PORT & SEZ LTD
This instrument is available fine in the instrument file as ADANIPOR…
('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))
Go through this thread.
Kite developer provide any API for chart.
We do provide daily and intraday candle OHLCV, and OI in the historical data API. Go through the documentation here.
https://kite.zerodha.com/connect/login?api_key="XXXXXXXXXXXX"&v=3
You need to remove the double quote from the api key. It will be https://kite.zerodha.com/connect/login?api_key=XXXXXXXXXXXX&v=3
Go through the documentation here.
connect another account with same api for buying and selling?
No, you can't place an order on another account using the same API key. You can link an single user id to an kiteconnect app. You might need to build this relay system at your end, that t…
{"status":"error","message":"Invalid or expired connect session. Try re-initiating login.","data":null,"error_type":"InputException"}
Are you using the correct request token to generate the access token?
Go through the login FAQs here.
But I have tried the above symbol too and also used historical option chain symbol, but still not getting any response.
Can you paste here the request debug log? We will check the same from our end.
We use the same ticks/websocket stream to form candles. Make sure, you are correctly aggregating volume. And use Volume traded for the day field to calculate the total volume within that time range(minuteEndVolume - minuteStartVolume).
Everyday in morning i have to generate token
Yes, you will need to generate it every day.
It's not be generated it's go in error and I have already paid kite API
Can you paste here the error log?
1) Last Thursday of the every month i.e. Monthly expiry
2) Wednesday of next month i.e. Weekly expiry.
Yeah, this is correct. You can use the last Thursday of the month as monthly expiry in this case.
I'm seeing, there is a difference between the data I received as a response to the API call and checking the Zerodha online graph for the same script.
Go through the historical data API FAQs here.
when quote is requested. sometimes it returns half data (requested 20 tradingsymbol data, but returned only 15) and sometimes it doesn't return any data at all just an empty dictionary
Are these instruments trading? Can you paste here the debug log …
ReadTimeout: HTTPSConnectionPool(host='api.kite.trade', port=443): Read timed out. (read timeout=7)
I am frequently getting this error.
Which API end-point is throwing this error?
We aren't seeing readtime out much in our logs. Most likely, it would…
Currently, tagged order(tag field in the order placement) is only retrieved in the orderbook. The option to be reflected in the console would be added soon. We will announce it here and update the kiteconnect docs as well.
For end-points rate limit, go through the documentation here.
Since I'm using this to calculate pnl and plan on doing it every couple of seconds,
We don't recommend polling positions to calculate. This thread explains in detail.
I just checked and OI data is showing fine and updated for today as well.
[{'date': datetime.datetime(2023, 12, 14, 0, 0, tzinfo=tzoffset(None, 19800)), 'open':
170, 'high': 304.75, 'low': 170, 'close': 277, 'volume': 1411050, 'oi': 324900},
{'da…
For IRCTC, in dump token= 3484417
This token is for NSE:IRCTC.
But in Holdings, the token= 138964484
This token is for BSE:IRCTC.
This article explains in detail about different exchange being shown in the holdings.
where can i find the order_ids which got rejected in the past 2-3 days?
Only current-day rejected orders is available in the orderbook APIs. For successful orders, you can visit to console.
but after a while (like an hour) sudden random trades are automatically placed in the zerodha kite mobile app. Is the kite.place_order thing not working?
place_order is working perfectly fine. Make sure, to debug your order placement logic. Can you …
Can you please guide me on how fast historical data is fetched from the Kite server?
So, I make one Rest API poll to fetch one instrument. What is the speed rate of getting this poll result?
If I get this data below 1 second, then is there no need t…
Both API documentation and Python example mention about "order_type" and "product" fields in the order_list. Go through the place_gtt python example as well here.
I just checked for 256265, and it's showing the latest 5minute data.
{'date': datetime.datetime(2023, 12, 6, 10, 45, tzinfo=tzoffset(None, 19800)),
'open': 20904.25, 'high': 20921.2, 'low': 20904.25, 'close': 20920.6, 'volume': 0}
Are you sure abo…
Can you paste here the output of pip show Twisted from your local env?
Does pip install --upgrade Twisted doesn't help?
Maybe try out the steps mentioned in this thread.
GET /instruments/historical/10534658/minute?from=2023-11-30+10%3A05%3A46&to=2023-12-05
Token- 10534658(BANKNIFTY23D0647400CE), this instrument has not received any trade/tick before 5th December, so you are getting data from 2023-12-05 09:15:00.…
I could not connect to/subscribe to BankNifty F&O Instruments on Kite connect API all day.
only round figure Instruments like 46500/47000/47500 CE and PE are available for subscription.
Hey @prakashreddy7904, didn't get you on this? Were you no…
These zero volume candles has same ohlc equal to previous non zero volume candle's close.
It can be there because of the depth changes in the tick packet. If we receive the tick packet from the exchange, we show it on the candles formation.
similar data for multiple candles.
Didn't get on this? You mean multiple day candles has similar OHLCV for the month of March, April 2023? Can you paste here the complete debug request?
i need historical data of past 5 year
Yes, it's available for d…
I queried for a particular strike's data, and lets say 11.15am and candle's, OI was x
I again made same call after 15 mins. lets say at 11.30.
Now 11.15 candle's OI vale has changed?? How's that possible on closed candle.
Can you give us a debug log…
is there any way to check possible ticker events ?
No, other update events at the ticker websocket. You might have to periodically look out for orderbook open orders.
You can handle OrderException, and look for the error message.
Example:
{"status": "error", "message": "Enter Valid Price", "error_type": "OrderException"}
from kiteconnect.exceptions import OrderException
try:
# Order placement
except OrderExcep…
certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')))
Looks like an issue with the untrusted certificate. You can follow the steps here.
Connection Aborted : RemoteDisconnected - Remote closed connection without response error.
This is not a complete error stack trace. Can you paste here the complete stack trace?
Will the API adjust all the prices before 07-Nov-2023 for corporate action and return 500 for the closing price on 01-Nov-2023 (if the API call is made after 07-Nov-2023) ?
Yes, Corporate action is updated on the historical data at the beginning of …
If i do web log-in and log-out several time while my algo is running then will face connection problem in algo?
Yes. Go through the login FAQs here.
ConnectionResetError: [Errno 104] Connection reset by peer
Which API call has thrown this error? Ca…
Should the unsubscribe be called in the same function where subscribe was called? I have declared ticker at a global level and tried to unsubscribe in a different function call i.e based on user input for a particular token.
Go through this thread.
Yes, ticks were coming perfectly fine. You can refer to the chart candles as well for the same duration, we use the same websocket feeds to form candle.
What is the status of this now? Can we still use 3 websockets with one key or not? And is the max limit of instruments per connection still 1000?
Go through the websocket FAQs here.
@dgmattam @SnehaTVR @Abhishek Gupta We are not able to see any specific issue of this at our end. Can you paste the complete stack trace here?
Is it still happening? I checked this manually multiple times, and it's working fine.
Our kiteconnect system is reliable and used by 1000s of developers, including a lot of start-ups.
429 - TooManyRequests
This error occurred because of being rate-limited, exceeding the rate limits mentioned. This thread also explains in detail the r…
some stocks (AWL and IRCTC are the ones I have noticed) I am getting data prior to the listing date of the actual instrument.
Thank you for highlighting. We have removed data prior to the listing date for the mentioned instruments.
is there any way…
@HowUTrade Can you give us a complete tradigsymbol for this instrument? Looks like a PE instrument, FINNIFTY23N0719500PE. We are investing in this to debug those tick logs, as per the tradingsymbol.