(not exposing data to end users but generating some triggers based on it)
Not sure about this on the compliance part. Can you write to kiteconnect(at)zerodha.com with a describing your usage?
The problem is, I would like to do this on server and php…
@dhananjaya
As already stated by @sujith in the previous post, that these post-back order updates are async calls. So, there can be instances of mismatch in sequence. You need to handle them at your end.
Maybe have a little buffer period at your en…
@XS8910
if I need 21 5mins candles data at 9:20 AM
Equity Market opens at 09:15AM, so at 09:20AM there will be only one 5 minute candle for the day.
By 21 5mins candle data, do you mean the previous trading day candle as well?
If yes, then for his…
kite.modify_order(variety='co',parent_order_id=order_number,order_id=stoploss_id,trigger_price=new_price_that_I_would_like_to_keep)
Yes, you can modify pending SL trigger order with above param. You can check the complete required param here.
kite.…
@kiranMaya
will the margin requirement change more than 35k for the same symbol due to price change ? do i have to make call and check for margin requirement before placing an order to avoid insufficient funds error?
Yes, we will recommend you make…
@MW5790
In Websockets, how will things change ? wouldn't the rate limits apply to socket calls also?
No, the rate limit won't apply on Websocket as you don't make an API call(unlike rest other API calls(positions holdings, etc) here but listen to W…
@XS8910
('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))
Can you let us know, which API end-point request is throwing this error?
Is Kiteconnect python client …
What will be the open in 'ohlc' during the pre open session?Is it yesterday's open or equilibrium price in pre open session?
Open will be equilibrium price.
Is it possible to provide Nifty 50 intraday data for time period prior to Jan 2015?
Currently, we won't be able to provide intra-day data prior to 2015 for the Nifty Index.
@akhilkodati
{"Response": "Order placement failed: Insufficient permission for that call."}
Are you able to make request to another API end-points like fetch holdings, positions, etc?
@Dileep
Means it is just created GTT, But not entered in to the Postion with market order
Yes, GTT is created, and once that triggered param is meet. It will be executed as Market.
@Dileep
place GTT with target and stoploss with market order of selling
Yes, you can achieve this by Sell two-leg gtt order. You have to set stoploss and target values as trigger price in two leg GTT.
Eg. Here for HDFCBANK for last_price = 1135.6…
i am replacing BO with GTT
No, you can't place BO order with GTT or via versa, both are independent and different product.
The order placement APIs don't accept GTT fields. So, you need to place either GTT or Order Placement, as per your requiremen…
Is there a way to get quotes without an access token ?
Not possible. As, authentication is required to access API endpoints.
This is not for a specific user of the app but to enable certain features across users.
Not permissible by an exchange. Can…
@pdzala
Hi i am developing one app for display live rate of commodity market stock
Is this an open public App?
If yes, then all users have to access through kite account.
As public display of data outside of a broker's ecosystem is not permitted …
but my holding should represent what i hold , at least in terms of exchange.
If you go through the above article, it's made mandatory by SEBI to show the best available market price across both the exchanges.
also can i sell in BSE if i have buy in …
so the data in kite.historical is wrong?
Do you mean kite.holdings? No, it's not wrong, that's how it works. We have explained in detail in this article.
Your Kite holdings will reflect the exchange price where the previous closing was higher.
@itsram90
while placing those orders i have clearly mentioned NSE as exchange. instead of that my order got routed to BSE atomically and now i have securities with BSE .
Your order got placed in requested exchange(NSE) only. You can check the trade…
@Ismail
We tried exact same code as above at our end, after rectifying few syntax error and it's working fine.
var KiteTicker = require("kiteconnect").KiteTicker;
function subscribe(instruments, onTicks) {
const _kt = this.kt = new KiteTicker({…
@saghher24d
Is there any API which we can use to search stocks and get historical chart with all time frame ?
In order to get Historical Data, you need to enter the required instrument token from this instrument list, with the required candle time …
Is it possible to create last 6 15 minutes candles?
You can create any required period candle data from Websocket data. As already stated by Sujith in the previous reply, you can go through this thread.
Please share me any code
We won't be able to …
Also, could you tell me what rounding parameters does Zerodha uses for vwap, moving avg and other indicators calculation.
Outside of Connect API scope, won't be able to help much on this.
Is there a python function call for Order Historical end-point, similar to place_order ?
Yes, for python client you can refer to this method.
But when I place the same order but this time as kite.ORDER_TYPE_LIMIT do I still need to pass trigger_pric…
But is there a way to know the "token" for a given option price?
No, currently we don't have any separate end-point/method to fetch instrument_token by sending contract name/symbol. But, you can build the same at your ending using complete instrumen…
@vishalkulkarni
nse/bse scriptcode, isin, sector
You can use daily instrument list to fetch instrument_token/exchange_token.
ISIN and sector would be missing in the instrument_list.
daily price bse/nse (with volume)
You mean live streaming or EOD …
Is it the same for kite api ?
Yes, both will have different order_id, and you need to use the respective pending limit and SL-M order_id to modify the required order.
Is there any general rule of thumb about just how many lines of code you can put inside the on_ticks() before it start hampering execution. or how long is too long a code?
It's not recommended to do any computation inside on_ticks thread. You
can …
@ashwinsingh
The difference on the NSE webpage is because of post-market institutional trades not be considered. You can go through this article to know more.
@satheesan
Pls check Zerodha's own example in your mobile with the latest updated chrome browser. https://kite.trade/publisher-demo.
Working fine in Android Chrome browser(version 84.0).
Can you check your browser version?
@gopalaga
To backtest this strategy will Zerodha Kite's historical data be reliable?
Yes, you can use Historical data APIs for this.
I mean is there any deviation however small in Zerodha Kite's historical data compared to NSE or GDFL/Truedata?
Th…
@sathish
lot_size value is mentioned too in the full instrument file. You can go through this documentation to know, detail about all fields mentioned in instrument file.
Login flow takes me to a kite login where I have to login with UserID (How do i get that)?
You can go through kiteconnect documentation and go client repo.
How will the login work if I want to use it for my backend and provide app to multiple people…
@AmitUM
I should get the order id, but instead I am getting the following error message
when I try to retrieve orders or positions from my zerodha account through kiteconnect using python command, I get the following error message:
It's not an erro…
@chetanmanju60
In the case of normal disconnection, socket is re-connected, if reconnect assignment is done. Refer to this thread for the possible dis-connection scenarios.
This is because Zerodha uses Exchange snapshot data on charts.
The exchange bhav-copy sync is done at end of the day, not live. You can go through this article to know about this.
Now my question is whether the Historical API provides the same snap…
When I compare the summation of the minutes volume for a day with the day's volume on the Kite platform
Are you comparing Historical day candle or live/today's day candle with the summation of today's minute candles?
You can give us the requested i…
@Saheb
In most cases, a multi-threaded setup should be enough. But, if you are still facing dis-connection, we can try the Queue method flow, as explained in this thread.
@Snehan
How to get multiple instruments data with kite.historical API ?
You can't fetch Historical Data for multiple instruments in a single go. You need to loop-in the instruments list and fetch it one-by-one.
@Snehan @ganeshv02 @kiteapi
Then what is use of kite.historical_data function?
Historical data APIs as the name says suggest is designed for backtesting/fetching older data, not live candles. Though you can use it for the live candle, expect some d…
@neel2323
Yes. some lag is expected because of DB writes for queued ticks. We don't recommend using Historical data for live computation/operations. You can use WebSocket streaming, to form the required candle/data structure at your end, go throug…
All I get is 0 in all values in response.
There might not be any trades happening on these contracts. Maybe you can check the quote for the same contract on mcxindia website.
@XS8910
No, API key is based on the created KiteConnect App, not on host specific. If you are following the same flow, as stated here, it should work fine.
@pritish1708
Invalid `api_key` or `access_token`
As the error states, it's throwing error in authentication. You can go through this documentation of login-flow and this python example.
Why there is no OPEN order status in order status constants
Which API end-point are you looking for? Is it in order history?
You can refer to all order status here.
Can you cross check out as of now I am unable to access it beyond that date .
Historical data is coming fine since 2015-01-09.
2015-01-09 09:15:00+05:30,8285.45,8295.9,8285.45,8292.1,0
Also volume for all the minute olhc is zero. Does zerodha does n…