I see that API is returning inconsistent data values, and the inconsistency is also not a few points difference
Can you paste those requests and response details to debug?
When order places there is a difference between my limit price and the price at which order got executed ,for example limit sell order is 130.00 and it will get place at 130.25
Go through this thread.
The instrument you are placing an order for had either expired or does not exist
Can you paste the complete trading symbol of the order params?
Make sure, the instrument is trading and is available in the instrument file and there are no trailing sp…
TokenException: Invalid `checksum`
Make sure, you are using the correct request token, as captured after login auth. Also, make sure, there are no trailing spaces in the request token. If still getting error, paste your login flow code here.
I am getting Kite exception with message as null.
Can you paste here the complete exception message?
For 15minute interval, you would be able to fetch data for 200days in a single request. This thread explains all the interval days requests.
Is this possible that we can get historical data without login second time?
For the same trading day, YES. But, as explained above by @sujith for the next trading day you need to generate a fresh access token.
is iceberg order option available in kite API or should I simply slice the orders before execution ?
Yes, you can use the Iceberg order. This article explains in detail about usage.
Level 1 data just the best bid/ask and LTP.
No, we don't have this mode as of now. We will check on the possibility of this in the future. For now, you need to use Quote mode, and filter out Best/[0] bid and ask from the respective market depth.
Is streaming a scrip or multiple order book in Redis a good idea because Redis is better at managing websocket connections?
Yes, it's a good idea. This kiteconnect resource project implements the same architecture.
Insufficient funds. Required margin is 209579.68 but available margin is 149638.50. Check the orderbook for open orders.
This is funds-related error, not an OI limit error. OI limit error is as shown here.
('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
The main ticker thread is blocked by some process, you need to check it. You can use a multi-thread setup as explained in this thread. To test, you can rem…
While Hitting stop loss order API ,its not returning Order id Instantly for some stocks.
Are you seeing a delay in the order placement? Can you paste the debug log for the same orders?
I know I can create a GTT to put in the SL, and Target but if it reaches Target how should i not execute the sell rather start trailing.
You can use the GTT. This thread explains in detail.
To access the historical order book, you will need the Console Trade Book feature, which is exclusively available for approved platforms, on a special request. You need to write to kiteconnect(at)zerodha.com with the complete requirements.
zerodha Option Chain API
Do you mean the Sensibull option chain? There is no API for the sensibull option chain in Kiteconnect APIs. This thread explains this in detail.
We are currently using Uint32, in all our official libraries for the volume-related fields. In most of the scenarios, it shouldn't overflow. We will check on the requirement to allocate 8 bytes of unsigned integer type.
can there be any workaround?
As @sujith mentioned above, either you need to place an order and parse the error for the allowed range or check here manually for the allowed range.
if two quotes API call are made at same time, will the second request get errored out or it will wait for 1 sec before responding?
It will rejected with 429. Go through the exception list here.
since WebSocket is continuous connection and not an AP…
Every day at 15:25pm the 5 minute candle we fetch from the historical API and the data we see on the UI does not match.
Are you polling this request in real-time?
You can create candles at your end from websocket. Go this this thread.
Does it means we have to login to kite through credentials every time request token is expired.
You can generate an access token once a day. The access token expires everyday morning. Go through the login FAQs.
Can I set limit take profit as well as stop loss at the time of placing regular limit buy/sell order?
Go through this thread.
If I want to exit when price reaches to certain number, can I exit at limit price through API just like we do on platform?
…
Where do I find the API_SECRET for the publisher app?
Publisher won't have API_SECRET, but only the API key. You need to create a Kiteconnect app to use API clients.
at 13:30:07 I got new candle data and 13:30:10 I got old candle data
Live polling of the historical data is not recommended. This thread explains in detail.
BANKNIFTY2391444300PE
BANKNIFTY2392144700PE
BANKNIFTY2390742000CE
BANKNIFTY2390743100PE
BANKNIFTY2391443700CE
These symbols are not correct. Go through the instrument list to get the active trading instruments.
@ravindermedha939
Level 20 market depth is not allowed as per exchange. This thread explains more.
I require access to the complete market depth for the entire trading session, including both historical and live data.
Go through the API documentati…
Connection closed: 1006 - connection was closed uncleanly (None)
Can you paste here the complete error stack trace?
You can try out the similar solution in websocket FAQs here.
Exchange needs to update the daily security file with the updated expiry date, once it is updated. It will start reflecting in the kite instruments file as well.
But my orders placed randomly in NSE and also in BSE
This shouldn't happen. Can you paste here the order book response from orders, for such cross-exchange order?
retrieve all orders > how to check pending SL cover order and it's ID > how to relate it with parent executed cover order
You can check for the required order_type field from the order book to filter out. Cover order will have parent_order_id …
Is there any way using way we can download technical data in table format?
No, you need to calculate technical data at your end based on the OHLCV data available from the historical data.
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Is this the complete error stack trace?
Go through the Python websocket FAQs.
I noticed that options that were expired are NOT reflected in the trade book
Are you referring to the trade book downloaded from https://console.zerodha.com/reports/tradebook ?
It should contain all trades, including that of the expired contract. Yo…
This cross ordering has never happened before.
No, cross-client ID order placement can't happen. Can you DM me your client ID's and respective order ID details? Will get this checked.
2023-08-22 15:07:50,491 - kiteconnect.ticker - ERROR - Retrying connection. Retry attempt count: 1. Next retry in around: 3 seconds
This seems like a network disconnection. Yeah, you can enable a debug log for detailed stack trace.
1006 - connection was closed uncleanly (WebSocket opening handshake timeout (peer did not finish the opening handshake in time)
Go through the WebSocket FAQs here.