Yes, as @shivdas_b mentioned onOrderUpdate won't publish updates on closed or AMO status. I just checked for the limit MCX order and it's publishing updates fine. Go through the order update FAQs here.
sometimes it neither execute nor show any thing on debug lof just pass the signal.
You can manually add the debug logs at your end as well. Go through the python help article.
TimeoutError: _ssl.c:990: The handshake operation timed out
No, there was no websocket drop-in connection at our end. Handshake operations timeout error is encountered mostly ecause of bad internet. Maybe change the network/ISP and check the behavio…
Will both machines be able to place orders simultaneously or will one get logged out?
Yes, both will work fine. Make sure, you are making combined requests within the rate limit.
Will both machines receive the same order updates or only one machine …
But after 15:25 I am not getting data. Is it just for upto 15:25?
For EQ, Websocket streaming is till EQ market close(15:30). For an illiquid contract, there might be no ticks. You can check for few active EQ contracts.
some time price on kite cha…
Tried on the latest PHP version and it's working fine. Make sure, you are using the latest phpkiteconnect version.
print_r($kite->getLTP(["NSE:SBIN", "NSE:ONGC"]));
stdClass Object
(
[NSE:ONGC] => stdClass Object
(
[in…
tradingsymbol=NFO%3aBANKNIFTY23OCT44000PE
You don't need to add an exchange name in the trading symbol, but just the trading symbol as available from the instrument list. Eg: tradingsymbol=BANKNIFTY23OCT44000PE
without composer but it uses query param based authentication
No, the previous version without composer, uses header-based auth as well
$request_headers[] = "Authorization: token " . $this->api_key . ":" . $this->access_token;. You can check t…
Is there any formula that returns the approx margin required for hedge position or guide me where I can find it?
It's a complex calculation. You can keep using order margin APIs. A more detailed explanation is given in this thread.
LTP and LTQ changes, that means trade occured since last tick, but volume remain the same
Can you let on know more about this? Maybe paste here those tick logs, with unique token or timestamp.
Getting this error - "Incorrect `api_key` or `access_token`"
This is not related to the above issue, of insufficient permission but to the use of the wrong access token or API key. Go through the login FAQs here.
@rohanrg @MAG
On Kite charts, we calculate the total volume for that interval candle as Tick.VolumeTraded(last tick for the candle interval) - Tick.VolumeTraded(start of the candle interval timestamp)
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…