$order_id;
$order_id is an object here(placeOrder return), you need to get order_id field from this. $order_id->order_id. If you want to print order id, it should be echo "Order id is ".$order_id->order_id;
@SharadKothari
kws.connect(threaded=threaded)
threaded should be True, if you are trying to spawn another thread to handle tick. Also, this should be post ticker callbacks.
KiteWebsocket.tick[t['instrument_token']] = t
This operation seems to block…
Killed
Looks like above process is getting killed before it completes. You can go through below two articles to know more about this issue( related to AWS):
AWS process getting killed
Long-running intensive process killed repeatedly
@bommina
please let me know, doe's anyone given POA for Zerodha?
Did get you on this? You mean do our client submit POA. Yes, many do, based on their ease.
is there any disadvantages of giving this POA?
You can go through this article to know about…
ExtensionNotFound: No < class 'cryptography.x509.extensions.SubjectAlternativeName' > extension was found
This class of cryptography seems to throw the above error.
You can try re-installing cryptography using pip install cryptography.
@KamalChhirang
Just to be sure, the volume is also accurate?
Yes, you can verify the same from Nse.
And is there any way to get data before 2000 that is consistent with Zerodha's data?
For most of the NSE contracts, you can get a day candle befor…
@mlearner
We don't have any specific API to fetch weekly option contracts. You will need to filter it out from the complete instrument dump using the exchange name,etc.
@GJ3030
Thanks for letting us know about the exact missing candle. We are looking to back-fill these random missing data soon. We will update here once done.
@KamalChhirang
Reliance share open price on 3rd Jan 2000 according to Zerodha is: 45.72 (NSE) and volume traded is 23150255
Reliance share open price on 3rd Jan 2000 according to Yahoo is: 37.095798 (NSE) and Volume traded is 28531559
You mean the …
You can go through this thread to know about rate limit.
can we call the positions API simultaneously with web socket?
Yes, both are independent of each other.
Which API end-point is throwing this error? Can you paste the complete stack trace?
You can go through python client FAQs to know more about the various timeouts.
@rishiajmera
09:19:14 ERROR HTTPSConnectionPool(host='api.kite.trade', port=443): Read timed out. (read timeout=7)
Which API is throwing this time-out error?
You can python FAQs to know more.
Postback URL updates are wrong for trigger price.
It's not wrong but the last updated price. That's what we receive from OMS.
To fetch the current pending trigger/limit price, you need to fetch the required pending order from the orderbook and chec…
you've obtained an access token after the login flow on device 'A', now that same access token can be used to place orders from device 'B'
Yes, you can use access_token, just make sure you are not exceeding the defined rate limit.
@Sivaji
If it is a consistent issue, we can run it in debug mode and can give you the stack trace.
No, we haven't seen this happening frequently. The stack trace will help us to debug more on this issue.
Kindly explain me why it is happening
It's …
Is the WebSocket server not working today? I am trying to get ticks for bank nifty 260105.
We just checked WebSocket streaming for the same instrument 260105(Bank Nifty indices), it's working fine.
"Error while recieving data. Message: Nullable obj…
I have used save_data(ticks) in my on_ticks function. So, it means that I have already offloaded my calculations to a secondary thread.. right?
No, you are not offloading it but blocking the single running thread. To offload, first, you need to crea…
Do we receive real time data faster from Exchange then historic data.
We stream WebSocket data, as we get from it exchange. You can go through this thread to know more. In the case of WebSocket streaming, one major benefit you have is you can stream…
Where can I find documentation about this ?
You can check out documentation here.
The changelog in GitHub repo is not updated one
Thanks. We will update this.
@nb007
We have removed external twisted download dependency in our new python client setup. You can just try installing the latest version using pip install --upgrade kiteconnect. If still facing the issue, do let us know the same.
@mlearner
Is anything broken in kite.historical_data API? And any cleanups done in database?
No, nothing is broken. Post-market received data clean-up is done at EOD(end of the day) for Historical data APIs. So, if you don't want to receive any pos…
@bommina
Is there any CDSL TPIN required for to use with python API, when I perform BUY with python API, do I need to provide TPIN for executing sell transaction (whenever my signal triggered). if it is so?
For buy transactions, you don't need TPI…
@Lavish
link mentioned has JS file so do you know any link where code is written in python.
Currently, we don't have python specific code for the Black-Scholes model.
Does NSE provide Greeks data like they have option chain data?
Yes, NSE does pro…
We have removed external twisted download dependency in our new setup. You can just try installing the latest version using pip install --upgrade kiteconnect.
You need to send a trading symbol instead of an instrument token. Format:exchange:tradingsymbol. Go through documentation here.
eg:[NFO:BANKNIFTY20N0521100CE]
@omkarkondhekar
Do we get exceptions in Python client if we call unsubscribe multiple times on the same tokens?
Yes, it will throw an exception with the message "Error while unsubscribe: {}".format(str(e)). You can refer unsubscribe exception part …
https://api.kite.trade/instruments/historical/260105/15minute?from=2020-10-26+09:30:00&to=2020-11-26+15:30:00
But its not giving me data till 15.30 for the end date, its just giving me data till 12 PM for end date
We checked on this. It's return…
So the close price quoted at 15:29 is just a tick at 15:29:59?
Yes
the open price for a minute bar is the tick at 00 and the close price is the tick at 59?
Yes
@pratik_naik
What data I will receive? GTT order or Actual order?
You receive a limit order placed order update. As required limit order is placed, when the trigger price is achieved.
I want to update GTT order at my end once triggered using post…
@AD6499
Is the close price at 15:29:00 the closing price of the day?
No, if you are looking for day candle close, you need to select a day candle, the calculation is based on weighted price. Go through this thread to know more.
No, we don't have APIs for the calculation of option greek. You can create a method at your end to return greek values based on the formula stated here.
Is it possible to obtain Historical 1 minute candle data for FNO segment for past 5 years using the Historical Candle Data API
No, you can fetch only day candle data for futures contract using continuous data , not intraday candle.
@ER9842
pull NSE data to Excel by using Zerodha API key
You are looking for historical data or live ticker feeds?
You can go through Kite connect API documentation.
@vijoeyz
We don't store data of few indices(list as stated by you), only live feed is available. You can use kite ticker and store them at your end for future reference.
(429) Too Many Requests
As the error message states, you are exceeding the rate limit defined here, while making an API request. You need to debug this and add the required delay to be within the defined rate limit.
@sudarshandujari7
want to refer to the previous candle it should logically refer to 10:45 to 11:00 candle but a lot of times it refers to 10:30-10:45 candle
The possible cause can be the latest candle is yet not completed by the time you made the r…
@mlearner
It's not recommended to poll position APIs to fetch last_price, instead, you can use Websocket streaming/Quote APIs. You can go through this thread.
When are you calling option_chain = opt_chain()? Is this after kws.connect().
If it's after kws.connect(), then nothing will be called, this runs infinite loop on the main ticker thread.
@kanvi915
You seem to be using the old version. You need to update your .Net client using Nuget or dll from github releases. If still facing exception, you need to catch exception and let us us the error message and status code.
No, currently we don't have. Maybe you can create this functionality at your end, you can check the complete charge here. Or use the Zerodha brokerage calculator.
a. It does not specify what type of value a function expects as an input i.e. string, integer, etc.
We will look into this for the python client. For Java client, we do have a defined data input data types.
b. It would be of great help if somewhere …
Can anyone let me know if I can still place intraday MIS orders using kite_connect API
You can place an MIS order only in this exchange ['NFO', 'BFO', 'CDS'].
NSE' and 'BSE' are not listed in the exchange list
Yes, you would be able to place order…
Howerver, I am trying to get details of an order in the past (executed on Friday 20th Nov 2020) and it returns an error
You can only fetch current day order details.
I dont know why 11.45 data fetched
It's a 10minute candle from 10:45 to 10:55. As you have requested interval between 10:45 - 10:55 i.e 11:52:23 here.
We form candle based on start time, i.e 1st 10-minute candle will be 09:15. Accordingly, it keeps…
@XS8910
We just checked the same, it's working fine. Can be your local network issue.
Also, is this intermittent or continuous?
You can have a look at this thread on a similar issue.
would a 4% margin for currency derivatives be sufficient to cover the various parameters
No. The Span margin varies for both CDS contracts.
If you are in so hurry, maybe you can try using this branch of Connect Python client(which has Margin APIs …
@neemkaroli
Continuous data is only available for Futures contracts not of options. For options contract, you can fetch historical data only for live/running contracts.
Calculating margin is a bit difficult to be done at your end. As it not only depends on the LTP movement but also on other factors like existing positions, open orders, etc. You can use open margin calculation APIs. Also, we will be integrating this…
You can refer to this example for placing Market equity order. To place stoploss order you need to change order_type to SL/SLM and send additional field of trigger_price and price field based on SL/SL-M order type. You can refer to this documentatio…
@smsachin3355
Also I have checked all the keys and they are as expected. For security purpose, I have made them as xxx,yyy & zzz in the screenshot.
You need to post body as url-encoded instead of raw JSON. We have mentioned the same in login fl…