which is the actual value of LTP and in Kite charts
We use the same last_price, for ltp.
which time (LTT or Exchange) is considered to form candles?
We use exchange_timestamp to determine tick timestamp.
We run charts EOD post-mid-night and kite BOD is completed by early morning (4-5 AM). It's better if you pull the previous day's data after this process is complete.
is the data same? because your charts have the high and lows in the candles that doesn't reflect in the last_price of ticks through websocket api's
Yes, the data source is the same. We also consider high and low from the OHLC field for candle format…
MCX market close at 11:55pm, so i call historical data api at next day after 00:05 AM, but i didn't get data,
from date: "2025-01-08 09:00:00"
Todate: "2025-01-08 23:55:00"
No, it should be available fine. Did you get an error? can you paste here th…
API HISTORICAL CLOSE PRICE: 49836.15
KITE FRONTEND CLOSE PRICE: 49835.05
I just checked for the day interval for bank nifty(instrument token:260105), and both web and historical data close are the same.
{'date': datetime.datetime(2025, 1, 8, 0, 0, t…
ERROR:kiteconnect.ticker:Connection error: 1006 - connection was closed uncleanly (peer dropped the TCP connection without previous WebSocket closing handshake)
Can you paste here the complete error stack trace?
1. Is there any timeout on the serve…
at the end of day, at 3:30 PM, when the streaming stops, I have live data only till 3:25 PM / 3:26 PM only
Which kiteconnect client are you using? Maybe paste the snippet here.
Make sure, you are not blocking the main ticker thread.
My guess is that zerodha samples ticks at their end before sending it through to the websocket client but can someone confirm this?
No, we don't sample/filter the websocket tick data. It's streamed as received from the respective exchange.
Which fie…
Due to restrictions from the exchange, we are not allowed to redistribute the 20 market depth feed to clients outside of Kite Web and Mobile. You can follow this thread.
@vijoeyz
For the following symbols/tokens, ticks are received.
Are received? Was it a typo?
I just checked the ticks log of yesterday, for the mentioned instrument: NIFTY24D1924250CE & NIFTY24D1924250PE. Both were ticking fine, you can refer to…
- Now, from 2024-11-04 to 2024-11-29:
2024-11-04 09:20:00
2024-11-04 09:30:00
2024-11-04 09:40:00
Are you sending the start date as muhurat date `2024-11-01`?
Grasim, IDFCFIRSTB, NTPC,SBIN
I just tried, nse and bse instrument tokens for these mentioned instruments on websocket for all modes(ltp, quote, full), and it's streaming perfectly fine. Make sure, you are using correct instrument token, as fetched …
so what i do is first i am getting tokens current price using getQuote api and then listed on that intrument token using ticker
i have wrote a logic for reconnect it using again getting token price using getQuote
Didn't get you?
Are you using getQu…
Ideally it would be great if we can stop the websocket and restart it on the next market open time. We don't want to kill off the main app and restart it here.
No, you can't restart the reactor that was stopped. That's Twisted's limitation. This thr…
After a few hours of running, the tick data stops being received without showing any errors.
No, we haven't seen any such issue happening. Mostly, it has something to do with the underlying network disconnection. You should log error from on_error c…
Please consider including milleseconds in the exchange timestamp so it will avoid these out-of-order issues
We will check on this. For now, as mentioned above, you can attach a received timestamp or version to order in such a condition.
@ANL
The log time and streaming tick time are the same in your system? or after streaming the ticks, then it stores and sorts the time in the logs?
Yes, they are the same. We use the same data source for our charts as well. Please note that while t…
TIme: 19-Nov-2024 15.20.00
NIFTY24N2123500PE
Vol 1: 182324200
Vol 2: 182337150
Vol 3: 182324200 (decreased & repeating)
Vol4: 182342725
I just checked ticks log for the mentioned instrument and timestamp. The volume are in the correct order as …
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.