@dhavalp @garpitg Here is a rough implementation of Kite connect Python websocket api with autobahn - https://github.com/rainmattertech/pykiteconnect/tree/autobahn
There are few changes to callbacks but the existing example should work. Please try …
@k365 Yeah Historical api should be purchased separately to get access.
Historical api gives you last ten years of day data for all equity scrips and last several months for Nifty futures, options and MCX. Minute data also available for last sever…
@SAURABH If you have the old tokens then you can retrieve the data but unfortunately we don't maintain history of instrument tokens. Also its possible that exchange reused the token and in that case you will be getting data for new scrip.
@gully I'm not sure about that case. Checking with others regarding this.
@soumyadeep You can't give invalid order_id, you can find the order id of the pending BO order from orderbook.
@soumyadeep
case 1 - You can't cancel the pending BO order once the first leg is executed. It can only be exited.
case 2 - You just need to know the parent order id to exit bracket order. You can exit by calling
kite.order_cancel(order_id='pppp',…
@sampath_topc Yeah these are for core api calls such as order placing, order book, holdings and positions etc. Websocket streaming and historical api are separate piece and it doesn't affect them.
@k365 It seems like you are using request token instead of access token. After you acquire request token from login redirect you have to exchange it for access_token which should ideally be stored on your side and use it for subsequent request.
A su…
@jessy @k365 Apologies since this question got unnoticed amidst other questions. It seems like you are either sending wrong request token or the HMAC is wrong. Can you confirm whether you are sending checksum in right format which is SHA-256 hex of …
@ajay Tested with sample python script and it seems to be working fine. Also there were no complaints from other api users hence the issue might be at your end. Please check if you are using any libraries which got updated recently and also try in s…
@kartik.trade @raghu Here is a python function for parsing binary data from websocket - https://github.com/rainmattertech/pykiteconnect/blob/master/kiteconnect/__init__.py#L831
You can safely ignore if the response type is text not binary or binary…
@soumyadeep We have been testing Websocket streaming and python client and never came across this bug. Though I haven't tested for the same scrip it was working fine. Let me check tomorrow for the same token and if possible you can pm me the code.
@SAURABH I have tested for the given tokens and it seems eveything is fine. While streaming ticks I was monitoring CPU and RAM and it never peaked (check screenshot). I have tested this both on OS X and Ubuntu 16.04 and its fine on both the systems.…
@Sumit Yes, if you subscribed to LTP mode then you will get next tick when it has been changed. If you rely on other data like volume you should subscribe to quote mode or full mode.
@sumit you can unsubscribe and subscribe back but it's not a good idea to do that since after subscription it may take some time to receive ticks. It's better you use first tick of the second and ignore the remaining by simple conditional statement…
@mohit77bansal Gateway timeout is intermittent you can safely catch it and retry the request. Also note that we have rate limiting in place so please be sure you are not exceeding the limit.
@sabyasm Issue is not with our python client and even if you increase the timeout it won't help. We are trying to address the issue by working with our OMS vendor.
@sameer request_token expires in 5 minutes after its generation and also once its successfully exchanged to get access token. Ideally you should generate request_token only when your previous access_token is invalidated or to initiate first kite ses…
@SAURABH can you send me the list of tokens you are subscribing to (30-40 stocks you mentioned above)? Will test is in our end and let you know. Meanwhile you can also test this on some other system or in cloud to check if its problem only at your e…
@virtualKG We send one byte heartbeat message every second when socket is connected. So you can make use of this to detect any disconnection at your side. Currently on_tick ignores heartbeat data and sends only parsed ticks but you can implement ano…
There is an unofficial api for that but I am afraid we are not ready to document it yet. We are working on Kite ecosystem for third party plugins in which you can expect us to expose Kite related apis to third party developers. There aren't any fixe…
@[email protected] . It's just like any other oauth like applications such as Facebook and Google auth obtaining request_token is a manual process which is done in browser. Once you get the request token you invoke python client with request tok…
@Jagadish Seems like some issues while creating app. Please click on the app and activate it. The action will debit 2000 credits from your account and app will be activated instantly.
@gautam_s60 Historical api doesn't update accurately after the minute is ended and there may be other issues such as your system time not in sync with server time. You can use Websocket streaming api and build a minute candle if your app is time cri…
@lalitbans You need to create app with type 'connect' and not 'publisher' to get full access to api. You can read more about it here - https://kite.trade
@lalitbans An app can only be used to login to single user id which you have given while creating app and can be modified any time while going to apps page in Kite connect developer dashboard.
@SAURABH can you please check if you are running latest version of pykiteconnect? I have tested current version with around 65 scrips and it seems to be working fine. Also please share if you got any error stack trace or log.
@soumyadeep We have tested Python websocket client with around 65 scrips for an hour and it was working fine. There were no disconnections and memory usage never went to 100%. Please check with your implementation. Also note that we have tested with…
@soumyadeep Here is the same example with logging. Please try this and check if you get any error log and also make sure params like api_key, public_token and user_id is set properly.
#!python
from kiteconnect import KiteConnect
from kiteconnect i…
@soumyadeep I just tested it with changing params and it seems to be working. Please check in market hours if it works and also would recommend implement python logging to log errors to catch any run time errors.
@traderx Seems like 1st January 2016 wasn't a holiday on any exchange. Please refer this - http://zerodha.com/z-connect/traders-zone/holidays/trading-holidays-2016-nse-bse-mcx
@sudheer1990 User login part is manual process, you have to use headless browsers like selenium or mechanize to automate it.
Kite developer portal issue has been fixed.
@SAURABH @RH1558 Python kite client has been updated with patch for above issue. Please update your library and check it - https://pypi.python.org/pypi/kiteconnect/3.1.5
@Ruchi Please check if you have obtained request token correctly by initializing kite login session. We raise this error when the app haven't initialized login session.
@pankajrb For minute data you should be using websocket streaming api instead of historical data api which is viable only for use cases such as charting and backtesting. For more details about rate limiting check this announcement - https://kite.tr…
@RH1558 We have confirmed that its a bug in OMS level which doesn't allow certain values even if they are multiples of tick size. Our OMS vendor has fixed it but we need to do testing before releasing the patch. So please hold on for a while.
@RH1558 Once the parent order is executed you can only exit the child orders - please refer the documentation https://kite.trade/docs/connect/v1/#cancelling-orders