Hi @lazydragonfist,
There is a soft limit for 3 connections for an api_key, soon we will be setting a hard limit for this.
You can listen to 600 scrips and store data with 3 connections. Please note that if you subscribe for a 201st token then ther…
Hi @thepanoramix,
Source for both the data are different. It can never match but it will be near. There can be 100 ticks per second and with the current infrastructure in India, it is not possible to capture all the ticks over the internet.
Check ou…
Hi @llpach,
As of now, Kite Connect only supports bracket order with the first leg as a limit order and for a limit order, you need to specify the price.
You can check out example here
Hi @Pandiyaraj,
Three-minutes candle is formed combining 3 one-minute candles. At any point in time, if the last candle is not available then it will combine two-minute candles and provides it as a three-minute candle.
In case of the one-minute cand…
Hi @soumyadeep,
These are the threads before reconnection was implemented. Now we have implemented reconnection, you don't have to check for ticks for 5 seconds Python Kite Connect is already doing it for you.
Once you connect to ticker you keep ge…
Hi @ramprabhu77444,
Exchanges are very clear that 20 bid and ask market depth is only for displaying on trading platforms. I am afraid we can't provide this feature in Kite Connect.
Hi @soumyadeep,
I am afraid it is not possible since internally there is an HTTP call to the OMS. Even if we do it on websocket, the behavior won't change.
You need to optimize your code, it's not like you will place an order every five seconds righ…
Hi @soumyadeep,
Once you fetch margins, it won't change unless you place an order.
You get tick data every second and fetching margins for every tick is abusing the system. Make sure you fetch margins only when it is needed.
Hi @mastertrader21,
I am a technical guy, not sure about compliance related queries.
For the above question, if @avinash wants to only place orders then Kite Publisher can be used and it has multi user access by default.
Again everything d…
Hi @arjunender,
It is mandatory by the exchange that a user has to manually login at least once a day. You will have to use a browser to log in.
Can you give the error message or take a screenshot and paste a link?
Hi @avinash,
Kite Publisher is just a javascript button which can be included in websites and blogs.
Using Kite publisher will allow you to only place orders, you can't access orderbook, positions or holdings whereas Kite Connect provides you the ca…
Hi @arjunender,
Request token can be used only once and is valid only for a couple of minutes. An access token is valid for one whole day. Once you get access token store it in preference and use it for further use.
Don't call RequestAccessToken eve…
Hi @imlokesh,
Thank you for pointing out the bug. We will release a patch for marketdepth issue by end of the day and change issue we will fix it soon.
Hi @yuvraj,
It seems like RMS has blocked all MIS orders on this scrip. You can check out list of scrips that are not allowed for intraday trading here.
Hi @sunnypatel,
You can use Websocket on your local machine.
You can check out documentation https://kite.trade/docs/connect/v1/#streaming-websocket and example https://github.com/rainmattertech/pykiteconnect/blob/master/README.md
Hi @Shaha,
You can implement 1, 2 or 3 whichever you are comfortable with. 4 anyways you need to do, in order to handle fail case scenario but make sure not do it in the loop which might abuse our system also.
5 is not possible from API since we in…
Hi @jvshk78trade,
Once a user creates an app, it will be considered as one-month subscription and 2000 credits will be debited. Users can't get it back if the app is deleted.
Hi @atulsingh7890,
We have minute level data for NSE segment from March 2014, I think you are accessing data which is not there.
153824004 is not ITC, it is ITC6 for which data is not there because it was not traded. You must be looking for ITC A ca…
Hi @navin_nandakumar,
Kite Publisher is just a javascript button you can include on your websites for placing orders.
In order to access orderbook, positions, holdings, and placing the order, you need to have Kite Connect app. Please go to developer…
Also can we get offer orders&quantity and bid orders&quantity (i.e., buy/sell orders&quantity) of symbol at that moment?
For live market data, check out websockets API documentation here.
Hi @pannet1,
Websockets data is returned as binary data. Check out parsing example here.
As a first step, I would suggest setting a callback and check if you are getting data.
Hi @tarunsuneja,
Can you let us know instrument token for which you are trying to get streaming data?
Make sure you are not sending token as a string.
We use it on all our platforms and it seems to be working fine.
@Pandiyaraj,
The thing is nobody can ever predict when a new scrip will be added when a scrip is moved from EQ segment to T2T segment. This when instrument dump is updated.
If it fits your purpose by only updating instrument file once a week then yo…
Hi @kbsbng,
Once a scrip expires the exchange will reuse the same token for another scrip. Hence you can't find instrument token for expired contracts.
You can use continuous data chart feature. Check out documentation. Get instrument token of COLP…
Hi @jvshk78trade,
You can use any cloud services like Amazon, DigitalOcean, whichever fits your budget and serves your purpose.
I would suggest using data center which is located in India for minimal latency.
Hi @Sowmay,
We haven't yet included SENSEX in Kite Connect. We have right now frozen adding new features, till we finish revamp of core APIs. We will add it in future.
Hi @saha,
Place order API limit is 5 requests per second which can buffer up to 10 requests per second.
Make sure, you don't cross the limit and if API fails order will not be placed. Hence there will be no rejection message.
If API fails, you wil…
Hi @chaitanyanettem,
Yes, we use BSE Star MF in the backend. They don't have JSON like APIs and they don't have reports in API format. We do all of this at our end and provide JSON APIs.
Our APIs include placing Order, placing SIP, fetch Order, SIP,…
Hi @c00kie,
All the scrips that are being traded for the day are available in that instrument dump.
You can also fetch instruments for a particular exchange, check out example here.
Hi @mellowyellow,
Post 1:30 AM our OMS does BOD process during that period it will not accept any requests.
I agree that error message was misleading, we will report it to our OMS team.
Hi @sudhirshettyk,
You will have to make separate API calls for each scrip and you can fetch historical data in the following intervals,
All intervals are in days,
"minute": 30,
"hour": 365,
"day": 2000,
…
Hi @Rajatk,
You need to pass product as 'MIS' and quantity param is missing.
Just take a look at bracket order second leg modification here, it is similar to modifying second leg cover order. Make sure you are passing all the params.
Hi @harjee,
Ticks with 0 size are heartbeat ticks, even if you don't subscribe to anything you will still get heartbeat ticks.
It denotes that you are connected.
I just tried with a couple of scrips mentioned above and it seems to be working fine.
…
Hi @harjee,
Are you using official Java client?
Can you paste a couple of instrument tokens?
Can you put a log inside onConnected and check you are subscribing after getting connected?
@thepanoramix,
You need to filter all pending orders first. To get all pending orders, you need to find orders with status containing string 'COMPLETE', 'CANCELLE' or 'REJECTE'.
Once you filter pending orders, you can find the orders which have pare…
@keshavshetty,
A request token is valid for a couple of minutes and validity is once. The access token is valid for one day.
Once you get access token store it and reuse it, don't call requestAccessToken API for every run.
Hi @Murli,
All Kite Connect apps are by default single user Apps. You can't use Kite Connect app with multiple users.
When you log out of the browser, you are basically logging out everywhere. Just make sure you are not logging out the first user w…
Hi @thepanoramix,
getOrders() will give you whole orderbook not only pending orders.
Once you fetch orderbook, you can find the orders with parent_order_id same as the first leg bracket order.
Hi @thepanoramix,
I assume you are referring to trailing stop-loss. Once users enter trailing stop-loss it can't be modified and a user can't access that value as well.
Hi @sudhirshettyk,
1) I am looking for 30min interval data . I will need open,high,low,close of the 30min interval (not the days' high low, but of the respective interval) Is this available. ?
Yes, you will get OHLC of that interval.
2) Say , i quer…
Hi @dnagaraj,
In case of 5min candle, let us say now current time is 18:48, if you fetch historical data for a scrip now then you will get the last candle with time stamp 18:45 which will be having aggregated data of 18:45, 18:46 and 18:47 candle a…
Hi @dnagaraj,
Historical data is written to the database as 1min data. Our server will listen to ticks and forms min candle and stores it in the database. This keeps happening on all the scrips throughout the day.
You can get current day's data in …
Hi @AntonyPrakash,
Pretty much all the text messages are specific to our platforms.
You should be bothering about binary messages only. Just ignore all text messages.
Hi @pravin,
Kite Connect is a library module.
Please follow these steps,
1. Create a java project.
2. Add Kite Connect as a library module.
3. Call Kite Connect methods like this.
Hi @parcas,
As of now, we have it only for day interval. You need to pass continuous = 1 as the param to get continuous data on future contracts.
Check out documentation here.
Hi @akabrboghani,
1) Is it possible to download last 2 year data in multiple time frames (15 min to 1 day)
You can download 2 year data in 15 min to 1 day interval for equity segment.
2) Is commodity data available for download?
Kite Connect support…
Hi @AntonyPrakash,
This is terminal messages which are displayed on Kite. Since API clients don't have UI, we thought it won't be of any use. If you want we can give you more information.
Hi @skk,
In the above scenario, you can cancel first leg order by sending order cancel request and set order variety as 'bo'.
Since first leg order is parent order, you don't need to send parent_order_id.
Hi @pannet1,
1) will one need to subscribe to historical data API for accessing the end point https://api.kite.trade/instruments/NSE/INFY?api_key=xxx&access_token=yyy"
You don't need historical data access to use this API call.
2) which time fr…
Hi @suyashb,
For every segment adjusted close is published by the exchange at different time and sometimes it is delayed also.
In general, I would say if you fetch day's candle post 18:00 hrs then you will get the adjusted close price.