Hi @prakash.jj,
We don't provide ATP(average traded price) as of now. We may include it in next version of websockets API based on availability at the source.
Hi @khushisoni894,
Kite Connect doesn't have any threading concept. It only provides a bunch of APIs, threading can be implemented from the application level. You can place orders from multiple threads but make sure you don't hit API rate limit(5 re…
Hi @mastertrader21,
I am not sure about compliance related stuff. Can you email talk(at)rainmatter.com? Someone from compliance will check and get back to you.
Hi @Girish,
In premarket ticks, before 9:07 LTP won't change since only order collection happens. During this period market depth will keep changing and once equilibrium price is decided LTP is updated at 9:08.
After that, till market opens LTP won'…
Hi @Girish,
Don't ignore first tick, if you are trading on illiquid scrip then you may get only one tick. Next tick will be sent only if tick data changes.
Currently, we don't have API to check if market is open or not. We have plans of providing i…
Hi @Pandiyaraj,
We only provide data, you need to implement search on your own.
PS: You can reduce the data to search by filtering segment like NFO_FUT.
Hi @suhailmrs,
While placing a cover order, you need to set order_variety as "co" and product as "MIS", it seems like you have set variety as regular. Hence your order didn't go through.
@mellowyellow,
Yes, you will have to search with exact tradingsymbol and then find the corresponding instrument token.
If you are trading on only one exchange, you can also get instruments that are being traded only on NSE. Check out instruments met…
Hi @mellowyellow,
You are trying for SBIN-BE which not scrip that is being traded on the exchange. You must try for SBIN(779521).
BE, BL categories are T2T segment categories. When there is an excessive speculation in the market exchange decides to…
Hi @salman_dhariwala,
Following are the time intervals for which a user can get historical data,
1min, 3min, 5min, 10min, 15min, 30min - 90 days
60min - 365 days
day - 2000 days
Historical data (day candles) for NSE scrips are provided till 2005 an…
Hi @suyashb,
Once you get the postback of an order, you can fetch the orderbook and find the entry of that order. Once you get the order, you can find a field called parent_order_id.
@iTank,
We don't have MCX data, we have plans to back-populate that data if available at the source.
@krisys,
In next couple of weeks, we will start the migration. We are testing new APIs parallelly right now. We will announce it on the forum.
Hi @mastertrader21,
I am afraid we can't provide APIs for login and setting user data. It is just because of the consent that user's data can't be provided to third party Apps.
@traderx,
It was corrupted because exchange sent corrupted market depth data. That is the reason market was shut for 3 hours that day. We had updated as and when we got news from exchange on our Bulletin.
Hi @Debsush,
Volume you get in Websocket is cumulative volume which means it gives you total volume traded till that tick.
If you have subscribed to full mode then you might get tick when there is change in market depth wherein volume traded mig…
Hi @traderx,
Access token is valid till next day unless user logs into any other platforms like Pi or NEST.
It will also be cleared when user logs out of Kite.
@traderx,
You need to understand this is not a support forum. This is just a platform for Kite Connect community to ask queries about APIs and report issues.
We are developers like you who develop stuff you use. So, there might be a delay in respon…
Hi @traderx,
Can you give more information for which instrument you are fetching data and what is the interval?
We haven't got any complaint regarding data being corrupt, the same data is being served on Kite also which is used by 300,000+ users. If…
Hi @sandip1952,
If you want to learn about fundamentals of stock market then check out varsity and to know more about APIs check out Kite Connect documentation.
Hi @Rishant,
It seems like order is not sent to exchange. So you don't have to worry.
Ideally these orders must have been cancelled. We will check with OMS why it happened.
Hi @sandip1952,
All orders are valid for one day.
KiteConnect is purely an execution platform if you want to apply any logic you can do it at your end and just trigger order using API when the condition is met.
@ramatius,
You need to do the something like this,
Map params = new HashMap();
params.put("parent_order_id", );
Order order = kiteconnect.cancelOrder(params, , "co");
Hi @ramatius,
When you place special orders like bo and co. Counter orders are already placed, So when you cancel it. System will modify that order to type market. So you don't have to place another order.
You can check out example for special …
Hi @kaushikvelingkar,
Reconnection using on_error is not reliable as the event is not triggered when there is an abrupt change in the network. Install pykiteconnect v3.5 to use reconnection feature.
If you already have kiteconnect then upgrade it us…
@Gopal,
Kite Connect is purely an execution platform. If you want to integrate with Ami broker or any other platforms then you will have to do on your own.
Check out documentation here.
@Pandiyaraj,
It means either there are no candles data for the requested interval or server is busy.
If you are getting this for highly liquid scrip then I would suggest reducing time interval and try again.
Hi @traderx,
You need to make your own candles.
It is basically OHLC,
Open is first LTP of that interval.
High is highest LTP of that interval.
Low is the lowest LTP of that interval.
Close is the last LTP of that interval.
Hi @Pandiyaraj,
Currently, Kite Connect only supports fetching historical data based on instrument token and exchange reuses tokens after a contract is expired.
We are trying to find a workaround for this. We will provide data for expired contracts …
Hi @traderx,
I am afraid we can't provide live data.
There are too many things happening in the background which includes IO on the database.
There will be a difference between your time and our server time.
For live market data, I would suggest usi…
Hi @puneetbijnor4020,
When you place an order, it can be executed in a single trade or multiple trades based on the availability of counter order. For bracket orders, each trade will place two counter orders.
For more information about bracket order…
Hi @mohan_mon,
I don't think we will be providing websockets for PHP. You can use other KiteConnect clients for websockets.
Check out all available Kite Connect clients here.
@Srik,
If it hits the target then it should cancel the stop-loss order.
We will check and get back to you on this.
In your orderbook, today all positions are squared off. Did you cancel stop-loss order manually today?
Hi @sjha_kumar,
All Kite Connect API calls are authenticated using access token and it is valid for one day.
To fetch access token, you need request token. Typically a request token is valid for a couple of minutes and it can be used only once.
Whe…
Hi @agarwl86,
Make sure you are not logging into any of our platforms like PI or NEST. If you log in on any of our platforms other than Kite then you are logged out.
PS; If you log out of Kite, then you are logged out everywhere.
Hi @billapavi,
You need to pass variety as the third argument and not product.
Order cancelOrder = kiteConnect.cancelOrder(params, order.orderId, order.variety);
Hi @vipin,
It seems like you haven't subscribed for historical data.
For historical data, you need to get add-on subscription which will cost you Rs2000/month.
@agrawaam,
Providing Sandbox environment for API users has been on our list for a very long time. Currently, our priority has been to revamp our core APIs as our client base is increasing.
We are beta testing new core APIs internally. It will be up…
Hi @mastertrader21,
Pi login will always clear old session and creates new session whereas Kite login will reuse old session. So, if a user logs into Pi and logs into your app then you can fetch orderbook.
Hi @Pandiyaraj,
Did you try during market hours or after market?
You will keep getting 1byte every second once you connect to websocket, you will get data if there is a change in tick data. In other words, you will get data only if the instrument is…
Hi @agrawaam,
Publisher is just a javascript button to include in your blog or website for placing orders.
KiteConnect is a full fledged APIs to access orderbook, positions, live market data, historical data and placing orders.
Check out…
Hi @Debsush,
As a Zerodha, our main objective has been to bring in more retail participation in India. We encourage startups to build platforms not only for our existing clients but also to onboard new clients.
Check out this thread.
HI @Pandiyaraj,
The same websocket is used on all our platforms and all other Kite Connect users. I would suggest checking your code.
As I have mentioned above, 1 byte is a heartbeat tick which is like confirmation that you are connected to the ser…
Hi @khushisoni894,
All orders except market and limit are provided by Zerodha.
Our OMS places limit order on the exchange when the trigger is hit.
There is only one lease line to exchange all orders go through the same line.
You can pl…
Hi @Pandiyaraj,
Yes, you can use LTP as the current price.
You can display change(which says if current price is above/below previous close), check out parsing change from websockets here
Hi @ramprabhu77444,
It is very unlikely that volume can decrease on Websockets, we just relay whatever information we get from the exchange, we don't do any calculations.
Can you ping me any instrument token for which you faced issue? We will check…
Hi @skk,
Can you mention for which API call you are getting this exception?
Please print exception message and paste it here. To access exception message you can write something like this
kiteException.message