@daniamarkumar
Using websockets, I can get upto 1000 tickers at once - I only have to maintain data structures locally to store information every minute.
Yeah, this can be done, have look to this thread, for better understanding.
Could you also co…
@daniamarkumar
No, there is a restriction of max 1 instrument per request.You can run loop with list of instrument , to fetch multiple instrument data.
@daniamarkumar
1. So, I will be able to query the historical Api in real time to get last minutes OHLC data?
Yeah, you can get last minute candle OHLC in real time.
Eg.
You can use Python Datetime module, to get today date and current time.
curl "h…
@ayyaz
This issue use to occur few times in older version of PykiteConnect, which is rectified in latest one.Make sure, you are updated to latest version.Check the version using pip show kiteconnect, it should be 3.7.4, if not install latest versio…
@pracas
We ran WebSocket and ltp quote call, in parallel for more than 15 minutes, didn't faced any issue.Are you generating multiple access_token individually for websocket and ltp quote call ?
@daniamarkumar
OHLC for the last minute
OHLC data available in quote API call is for whole day, not for last minute.To get any minute OHLC data, you need to use Historical APIs, to fetch specific minute candle OHLC data.
Volume traded in the last m…
@ankur19
"Too many request " , error comes, when you try to exceed current rate limit. These are the current rate limits:
Quote API - 1r/s
Order place API - 5r/s
Historical API - 3r/s
All other endpoints - 10r/s
@vardhan36397
Sorry for the issue, but this is not the platform to discuss for Non-API related query, please write to support or call to our support desk on here.
@mmks
1.No, you can't get ohlc data from Kite Connect, without Subscription.
2.If main order is splitted in multiple orders,each split order will have different order id.And for each split order, their will be pair(target and stoploss).To exit eith…
@ibot
You can use kite Connect Python client, instead of using requests lib.To Exit Cover order, for Python client:
kite.cancel_order(variety='co',order_id='Order id for pending limit buy/sell order')
Go through this documentation.
@XE0386
Above error message clearly says,you are exceeding freeze quantity.Freeze quantity is 2500 and you are placing 2520.You can get freeze quantity list for all contracts, here.
@Sashank_Chittipeddi
No, ohlc API should return open price of the day after market open.It can happen that both open and yesterday close price, can be same.Does this happened for multiple scrip?
@TUSH123
We tried multiple methods of reproducing above error, it came in case of,if i try to insert each WebSocket tick to Database and DB is blocked at particular instance or if program terminates WebSocket loop.
Are any of these case with you?
@ashish_Innovantes
Above screenshot, IP reputation level is as per Norton(Symantec) rule, not as per Cloudflare.To see IP blocking rule, as per Cloudflare, have a look here.
You can try changing your ISP.
@vineet_dhandhania
You can do summation multiplication of volume difference and last_price(use last_price,only if volume_difference > 0) and keep adding total volume with current tick volume(it will be divisor).Something like if volume_differenc…
@vineet_dhandhania
You can calculate volume traded for each tick from WebSocket Feed, by subtracting current tick volume to last tick volume data.
{'volume': 35901,last_price': 4762.0, 'timestamp': datetime.datetime(2018, 7, 23, 16, 13, 19)}
{'vol…
@narasimha
If there are no trades/tick happening for particular scrip during specific interval, for that period you will not receive any tick on WebSocket.
@ramatius
Yeah, it's possible.For Example BRNL, doesn't have any volume(check last param as zero) ["2018-02-12T14:20:00+0530",180.05,180.05,180.05,180.05,0], and there are multiple such scenerio.
@narasimha
You will receive streaming data(for every trade happening) over websocket, once get connected, these are direct exchange feeds.But for Quote APIs, you need to make API call every time to get data.In websocket, you can subscribe upto 1000…
@rathiid
You don't provide intraday period data, for more than 30 days.You can get day candle data for more than 5 years, by requesting continuous=1 param.https://kite.trade/docs/connect/v3/historical/#continuous-data
@rjv17
https://kite.zerodha.com/connect/authorize?sess_id=XXXXXXXXXX&api_key=XXXXXXXXXXX
Above url will be there before login(initial page), after login authorization(make sure, you login with client id, entered in Connect app account), it will…
@ashu3889
It's given in above link.
// Javascript example.
var ws = new WebSocket("wss://ws.kite.trade?api_key=xxx&access_token=xxxx");
// Subscribe to quotes for INFY (408065) and TATAMOTORS (884737)
var message = {"a": "subscribe", "v": [4080…
@rjv17
If you have done successful login, you will get request token in redirect url,something like this,
http://127.0.0.1:8000(your redirect url)/action=login&status=success&request_token=XXXXXXXXXXXXXX.
Have a look to login flow part on d…
@rjv17
Are you calling generate session multiple times?
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..
@Naresh
You need to subscribe to Historical APIs to use (it has an extra charge of 2000 per month).
To subscibe, you can go to app details page in developer login and on the right side, there is a section for ADD-ONs. You can subscribe Historical A…
@asnagaraj
Currently, we don't provide demo API key, you need to subscribe to Kite Connect (Rs2000 per month), to get API Key.We are in process of coming up with SandBox environment.
@srijas
You need to have both Zerodha Trading account(here, orders will be placed) and Kite Connect Dev Account(to place order), to access Kite Connect APIs.
Redirect URL is for getting the request token after login. You can create a local web serv…
@ethanscott
So ideally, if I buy the stocks today, I can resell it after three days right?
Yeah
Also, what is the criteria for BL and BT stocks?
You can have look to this thread.
Will I have to wait three days for them too?
Yes
Is that the case for…
@Jignesh
To exit all quantities for BO, you can cancel any one order either limit or stop loss order.
If you exit limit order then limit is executed at market and corresponding stop loss order is cancelled.
Your childOrders list can be populated by…
@vishalkuumardhammi
WebSocket will give you continuous data, till you disconnect it, but for APIs, you need to make a request call each time, to receive data.You can go through this thread to get better understanding.
@aharish
This is how system is designed, there is no technical glitch,you should be aware about such technicality in app flow.You can design an system to send you mail alert, in case of token exception/expiry, so you can re-login and restart the sy…
@girish400
That is an adjusted price after corporate action of 20/06/2017 Bonus issue 1:10 so you will see no tick size value for data before 20/06/2017.
@girish400
26th May was Saturday(Mock trading day), data should have been flushed at the end of the same day.Can you re-check the same, we are not able to see the same at our end.
@aharish
App Access token will expire if you manually log-out from kite web for same client id session.So, make sure you don't do that for client id used in Connect app.
@jayaura
Yeah, segment should be BSE in case of exchange as BSE, but for CDS, MCX and NFO exchange,their segment can be either FUT or OPT.Better you check segment and exchange, by downloading instrument dump.
@suvesh
builtins.TypeError: on_close() takes 3 positional arguments but 4 were given
Are you adding extra param in on_close(ws, code, reason), there should be just these three params as input to on_close method.
@ramatius
In WebSocket, ticks will be sent for items in the subscribed list, only if we have received new tick for that scrip,e.g. if particular didn't new tick received for last 60 seconds, there will be no ticks send for those scrips.
@Rajib
This is another error, 'Insufficient Permission' .To access Historical Data APIs, you need to subscribe additionally to it, go through this thread.
You can go to app details page/developer login and on the right side, there is a section for …
@zash121
Make sure, you are using latest version of Kite Connect APIs and all the dependencies are installed.Install latest version using pip install kiteconnect --upgrade and then check the version using pip show kiteconnect, it should be 3.7.4.
@raula_kite127
Yes, orders can be fired, when condition is meet,you need to code this condition at your end, using any of supported programming language.
Have a look at this video, to get the flow idea.
@raula_kite127
We don't provide, assistance regarding coding your strategy(eg.matches RSI, PSAR, etc).
You need to go through API documentation and do it yourself.
Currently, we don't have sandbox environment for kiteConnect APIs.
@aharish
Above order is rejected, because there is a restriction on Banknifty options strikes range due to a violation of broker level open interest of 15% from exchange.We can't do much on this.For details, you can visit this link.
@RajeshSivadasan
Alternatively, you can get it for kite web interface , by opening chart for required scrip/contract.
https://kite.zerodha.com/chart/NFO-FUT/NIFTY18JULFUT/11552514
Here 11552514 is instrument token for nifty jun contract.