@sivakrishna538
We are logging volume data at our end for some time, to monitor the discrepancy if any.
We logged and checked on more than 10k Quote call data for NFO:BANKNIFTY20JUNFUT at our end, and didn't find the issue of current tick volume be…
@TheRenjithR
Please refrain from posting similar query at multiple threads. Follow this thread, for your query and can ask all further queries on the same.
@sivakrishna538
You seems to be using wrong exchange here NSE:BANKNIFTY20JUNFUT,it should be NFO: instead.
I observed that at times volume is less than the previous second volume. As per the description volume can only go up but never down.
We ar…
@arundonni17
Margin calculation for all F&O contracts is based on intra-day and eod/bod span files from the respective exchange and there are lot of other values considered too while calculating the same. Overall, it's complex calculation.
We …
@VSingham
"POST /session/token HTTP/1.1" 200 None
Session post request is succesfull. Can you paste here complete access_token generation part of your code? We will take look at it.
@coolkoti
I also see this issue with BATAINDIA between 05 to 07 Oct 15. Can you please correct this?
Yes, it will be adjusted according to the required stock split ratio.
@santhoshr
2020-06-05','minute',continuous=True,
Continous data is only available for day candle not for intrday candle minute. You can go through documentation.
@ganeshv02
We won't recommend using Historical data APIs to fetch live time constrain data, as it's not meant for the same. You should use Websocket streaming, go through this thread.
@sourav359
Suppose today is 5th May 2020 and I want today's 5 minute historical candle data of a stock at 18:00 hrs, the result i got is wrong. But if I run the same program after 00:00 hrs that is on very next date all candles data are right.
To w…
@[email protected]
we are getting repeated data for certain time and for data for some time seconds are skipping
We stream direct exchange feeds. So, there must be trade happening/change in any ticker field for which you subscribed so you get tho…
@coolkoti
I'm comparing the day candle High & Low with intraday 1 min high and low (Max High & Min Low of all the 1min candles in a day). They both should match.
No, day's OHLC and intra-day OHLC might not match always. You can go through t…
@sourav359
You seem to be sending the wrong to_date for the last 5minute candle. If you want last 5minute candle you need to send to_date as last candle time(here 2020-06-04 15:30:00 ).
@rs7683
just inducing any simple exception in "on_ticks" callback method and it will happen after few ticks(could be big number of ticks also)
Don't perform any computation inside on_ticks method, it will block the running thread. You can go throug…
@rs7683
self.frame_data.append(payload)
builtins.AttributeError: 'NoneType' object has no attribute 'append'
We believe, this error seems to be caused while handling another initiating error in your code base. Can you paste here complete stacktrace…
@sanket_one
def buy():
We see you don't accept any input value on buy method, but you are sending name variable herebuy(name).
For future query, please post complete code, so we can get a better idea to debug it.
-"Using Kite Connect subscription, I will be able to automate my trading algo and execute trades automatically, provided I login to Kite Connect manually once a day." Please confirm.
The automation part depends on your logic/coding skill. You can us…
@vasisht
i suggest please make available what were the dates trading was open or what dates trading were closed(holidays) for different exchanges for different years
Maybe you can go through this thread.
@Gafoor
instrument_token_list = new_instrument_token_list
kws.close()
Why are you calling close method here? This will close the running websocket connection.
@atibrewal
In this case, the candles do not show the accurate data and it does not match with the candle data that is fetched for the full day.
No, it won't match as there is a difference in the time period(to and from param) for the second 5-minut…
@thoratdg
You are entering the wrong access_token for authentication. You can go through this documentation, to understand flow to generate login session.
@karthikdhanusu
{'status': 'success', 'data': 'Take the red pill with Kite Connect v3'}
It's the welcome message the root endpoint of the API gives -- https://api.kite.trade
fum_req = requests.get(baseurl, verify = False, headers=headers)
Instead o…
@sagaranilganu
At any given time span of "1sec" there could be at least 3 api calls for a "single user key"
The rate limit is decided per API key/user level
Here, what we meant by per API key is you can't spin multiple programs using the same API …
We send date object in the IST time zone in WebSocket streaming data.
Are you setting any different timezone for your dataframe(df)?
You can also debug the same by printing raw historical data APIs date field before converting to dataframe and pos…
@sagaranilganu
In case of a Websocket disconnection and re-connection further say after a few attempts; does the order postback data on websocket get lost for that much amount of time?
on_order_update(ws, data) gives you the streaming updates(i.e …
@nkr
Is it still showing? Should have been cleared by today morning. We run BOD(beginning of the day) process every trading day morning, that should clear it all.
@radhaberiwal
We believe, you are using Windows OS. You can download twisted for python 3.8 from this link.
After downloading the above file, open a cmd in the downloaded folder and run the below command to install it using pip install Twisted-20.3…
@saahiil
No, there is no direct API for fetching all Nifty 50 call/put option contracts.
You can do something as explained below to create an option chain at your end of any given contract.
1> Write a method that fetches all trading option contr…
@shubhamosy
You can subscribe up to 3000 instruments in a single WebSocket connection, and for one user you can have 3 WebSocket connection, so you can stream a maximum of 9000 shares for one user. because all WebSockets will be independent of each…
@vineet_dhandhania
We do send tag and tags in order postback. You can check below past postback response:
Postback_data b'{"placed_by":"XXXXXX","order_id":"XXXXXX","exchange_order_id":"",
"parent_order_id":"","status":"REJECTED","status_message":"X…
@jay_joshi
What I have to pass in the parameter for limit order in JavaScript ?
NRML or LIMIT ?
Both are for a different order field. You can go through this part of the documentation to understand different between variety and order_type.
@jay_joshi
It is not adding an extra day for that it cut of the holiday.
You need to compute the required from and to input date for your historical data fetching at your end considering all the declared exchange holiday and weekend's. You need to …
There are certain limitations for fetching historical data for the required interval as stated below(all in days):
minute : 60 days
3minute : 100 days
5minute : 100 days
10minute : 100 days
15minute : 200 days
30minute : 200 days
60minute :…
@nitixa14
It worked for once. I tried second time and got same error ReactorNotRestartable()
Yeah, initial succesul run and then subsequent reactor failure issue is highiigted in this open git issue.
So, until library resolves this issue, you may…
@renjitharajan84
Your code looks correct. on_ticks ticker method should be called properly. But,we feel as it's continous while loop print("i am from main -> after kws.connect(threaded=True)") is printed much more times than print statement in…
@renjitharajan84
lines after "while True:" are not getting executed.
You are assigning ticker call back kws.on_ticks=on_ticks out side the while loop scope. It should be inside the while loop scope.
Eg:
while True:
......
ticker methods
…
@amandeep179018
The data I get for every token has a delay of nearly 2 seconds
Historical data API is not designed to be continuously polled for live usage. You can go through this thread.
@Devang_b
There are two errors in the above code:
1> You have assigned instrument tokens value to token named variable but instead passing instrument tokens in historical data APIs. You need to pass same variable which has instrument token.
2>…
@aharish
This is the third websocket I am trying to connect. First two are working fine. It has 249 tokens. First two have only 20.
Number of tokens in a single WebSocket connection is not a problem here. You can visit this thread to know more abou…
@rvarade
Is there any way i can get accurate data for single hour? if i give from_date:9:15 to_date 10:15, i get two candles.
You need to sent to_date as exact end period of that particular period candle(here hour candle) i.e 10:14:59.
Eg.
kite.hi…
@rs7683
You are using the wrong variety and product param. Variety should be kite.VARIETY_REGULAR and product should be kite.PRODUCT_NRML.
Go through this documentation, to know about all order input param.
@atulseth404
hist_data = kite.historical_data(instrument_token, from_date, to_date, interval = "30 minute", continuous=False, oi=False)
You need to send interval parameter as 30minute(without space) not as 30 minute. Go through complete interval pa…
@viraltaretia
WebSocket connection upgrade failed (403 - Forbidden))
Your authentication is falling. Make sure you are using correct api_key and access_token. Recheck the same. If still facing the issue,paste your websocket code here,we will look t…
@sarathkrrish
My question is can I use websocket without the logging in user but using my api key and secret as standalone api.
No. Websocket uses access_token as authentication for succesful connection to receive tick data. And access_token is gen…
@ganeshv02
All your above queries are explained in our API documentation under Request parameters and Response attributes. Please go through API documentation before asking repetative queries.
@vaibhavgandhi
You seem to be confused between the open price and the first tick data(which comes at 9:15:01).
Both are not the same, the open price of the day is updated at 9:08(upon trade match) and regular tick starts at 09:15 along with candle …
@Swarochisha
zope.interface import implementer ImportError: No module named zope.interface
Zope interface seems to be missing from your current environment. You need to install it using pip install zope.interface
@ravimeetra
Calling this function gives instrument token for cash stocks and not futures stock for any expiry.
You need to fetch instrument token for required F&O instrument and then request for historical data using that instrument token.
You …
@Srikant91Dev
ModuleNotFoundError: No module named '_cffi_backend'
You need to install cffi. pip install cffi
If it throws already installed message. Then you need to uninstall using pip uninstall cffi and then install again using pip install cffi
If on today during live trading hours i.e between 9:15 and before 3:30 , if I call the historical function with interval as "day". Will today's candle be included in that. If so why and what will be the values for the current days candle.
Yes, it wi…