@sunil55tyagi I checked our logs and it seems that you are placing normal order and not BO. You are making POST request to /orders/ which ideally should be /orders/bo for placing BO orders. Please check the documentation here for order placing.
When you start the server it runs in infinite loop and blocks the main thread just like a web server so you have to write logic in your on_tick callback function to store the data.
If you would like to subscribe for more scrips on run time you can…
1. Yeah it includes data till the last minute
2. There is no limitation but current you can't get data for multiple scrips from single API call. You should make multiple calls for multiple scrips.
3. Yes
4. Minute level data is available for last 3-…
@Mohit As you can see in Kite there is no issue getting market ticks for MCX which is powered by the same Websocket Streaming. Can you please check if you are subscribing to valid futures not the expired ones?
@menaveenn If you are using Ubuntu then there is a known issue with Open ssl.
You should pass the param disable_ssl_verification=True to the .connect() method.
The issue is due to a bug in OpenSSL itself -- https://github.com/liris/websocket-clien…
@yash544 When you place order you will get callback(request from our server) to your server when order status changes. For example you have placed an limit order and when it gets executed you will get postback from our server with these order detail…
@sameer QUERY-A - We do have a plan to add more info but currently we are not working on it so it might take some time.
QUERY-B - Yeah seems to be valid feature request - will forward this to our data team.
You have to send a POST request from your server/local machine to /session/token with request_token param and other required params. Please check the documentation here - https://kite.trade/docs/connect/v1/#authentication
@sameer we do have examples of logging in all our libraries but mostly the developer doesn't understand the flow of manual login to get request token. Though you can automate the manual login also but its against our interests.
@botany02 The scrip format for BFO is different from NFO. For example AXIS October future is AXISOCT2016 not AXIS16OCTFUT. I can see that we are sending wrong format in /instruments call. We will release a fix for this soon.
@DV3508 We haven't integrated live streaming to PHP client yet. You can use Node or Python client or other third party clients.
Here is the docs for Websocket streaming - https://kite.trade/docs/connect/v1/#streaming-websocket
Statement1 - Futures which are banned can be traded intraday in Zeorodha using Bracket Orders or MIS? Yes or No
No we don't allow banned scrips to trade in any products.
Statement2- The Apis,do they give any parameter to figure out if a particualr…
@botany02 Can you check the error response please? for bad input we do send reason for request failure. Since market is closed now I can check this tomorrow morning only.
Please checkout Python library for KiteConnect which has example and documentation to get started.
1. Does system APIs and historical data are priced each at Rs 2000 per month ?
Yes each priced at Rs.2000 per month.
2. If i need some historical da…
Scenario 1: You can modify price and quantity as normal order since the first leg is not executed yet - https://kite.trade/docs/connect/v1/#modifying-orders (Check section Bracket Order (BO) parameters)
Scenario 2: For modifying second leg orders y…
@Jilani For multiple scrips we recommend you to user Websocket streaming to get LTP. We also have rate limiting for Quote call which is one request per second so its better not to rely on Quote call if you need LTP.
You can exit the current order as usual and the remaining lots will be squared off - https://kite.trade/docs/connect/v1/#cancelling-orders
In both the cases when you exit the BO order the remaining 2 lots will be squared off.
@menaveenn It should be very straightforward to get this from historical api. You just pass from and to date as today.
For example - https://api.kite.trade/instruments/historical/11528450/minute?access_token=xxxxx&api_key=yyyyy&from=2016-0…
@nkol You pay per app per month and you get Kite connect api which also includes live websocket streaming. You need 2000 credits per app for a month which costs Rs.2000. Also note that credits can't be converted to cash again but we do give a refund…
@gully Just make sure the price is multiple of tick size. For example NSE and BSE has tick size of Rs.0.05 so all the prices should be multiple of 0.05. You can get the tick size info from /instruments call.
Here is a sample response. Note that user have only carry forwarded positions
{
'net': [{
'last_price': 0.55,
'tradingsymbol': 'NIFTY16SEP9800CE',
'sell_quantity': 0,
'buy_value': 0.0,
'unrealised': 0.0,
'buy_price': 0.0,
'sell_price'…
@ajay.b @pranksterguru Yeah the feature is live now. You can fetch quotes for index and you can replace space with + symbol in index name. Here is an example
NIFTY -https://api.kite.trade/instruments/NSE/NIFTY+50?api_key=xxx&access_token=yyy
SE…
@pybull Yeah your expiring apps will be automatically renewed if you have enough credits in your account but do look out for app expire emails. We have issues with our ledger mostly after MCX closing time and morning market opening time so its bette…
@dummydost Your question is very broad. You can use our Python client to access kite connect APIs, historical data and live streaming data. Its upto you how you are going to backtest with the given resources.
You have to open the login url in browser to get the request token after you successfully authenticate. From your code I can see that your are just making a get request using urllib to login url and trying to get token but request token is issued on…
@yar.srikanth Its not a valid url. Please check the domain name you have posted again - https://mythukanthu/ It doesn't have any domain name suffix. Your url should be accessible through internet for us to post a postback.
@kabraanurag90 You can call instruments api with exchange to get only scrips trading on given exchange - https://kite.trade/docs/connect/v1/#market-and-instruments
For example:
NSE eq scrips - /instruments/NSE
NSE F&O scrips - /instruments/NF…
@kabraanurag90 We have rate limiting for api so its not ideal for you to use quote api to fetch market data. Our Websocket streaming api is the perfect use case for such applications. We currently scale it up to 16k concurrent users and its very rel…
@kabraanurag90 I am afraid its not possible to get data via Quote api after 1AM but you can try fetching data from our websocket Streaming api but the acces_token will be cleared early morning so you have to generate it again for next market day.
@cdesai1987 Please check for error message in response. You might get a meaningful error message which will help you to debug it. Generally 400 means you are sending invalid data or not sending required params.
@sabyasm We don't have OMS level api to fetch multiple order details. We either have to abstract it in our end by sending multiple calls which is not so reliable. If one request fails we have to keep a state and retry before giving the response.
It…
@kabraanurag90 @sabyasm
1. We are working on it, its a OMS api limitation so soon we will implement this on our own.
2. Again since its a part of OMS we need access_token unlike our streaming server.
3. This feature is almost ready will be release…
After first leg is executed in cover order you can only exit the order not cancel it. You can call order cancel api with child order id(second leg trigger pending) to exit the cover order.
Also you can't do partial cover order exit.
@gully Are you sure you are trying to subscribe once the websocket connection is opened? Your tests should call the functions when on_connect is triggered. If you can share your code we will look into it.
@stg the response is array of ticks for your subscribed instruments. For example if you have subscribed you may get ticks for one or more instruments at a given time and you should loop through the ticks array to get the individual instruments ticks…
@dhavalp Yeah since others also reported the issue we came up with different version of Pykiteconnect - https://github.com/rainmattertech/pykiteconnect/tree/autobahn
If you get a chance please test and share feedback with us. We will checked the ot…
@k365 You are doing wrong in step 4 where it should be a POST request but you are sending a GET request. Also don't create checksum of individual field and concatenate you should concatenate api_key + request_token + api_secret and then hex of SHA2…
@k365 You have PMed your query and have answered also. Currently we don't have a bandwidth for a phone support, may be we will have one in future as of now please post your query and we will try to answer. Also it seems like you are looking for exam…
@gully Yeah you got a point, If you wish you can write a patch for it and create a pull request else open an issue in github and we will try to incorporate when we get time .
You can connect to client with option threaded=True which opens the connection in separate thread and main thread can be used to subscribe to token dynamically. Here is an example
from kiteconnect import WebSocket
# Initialise.
kws = WebSocket("kit…
@Sumit Depends on how many scrips you will be fetching. If its one or two you can use quote api but if its more than that then its good to use streaming api which is more reliable.
@k365 RTFM or use one of the official clients to use the APIs. Most of the issues posted here are because people doesn't have much expertise to integrate the APIs. We have many people who have integrated easily by just reading our docs properly.
@mohit77bansal can you please try autobahn version of python client? - https://kite.trade/forum/discussion/489/official-node-js-client-has-been-released-api-client-websocket-streaming-api#latest
As answered by @kailash : ABIRLANUVO16SEPFUT's lot size is not 1 (quantity), it's 750. So the quantity should be multiples of 750.
Please don't duplicate post or pm duplicate contents.
@kartik.trade Currently we have disabled authentication for websocket so you can't confirm whether the access_token is valid. Can you please try getting access token again and check? also I just want to confirm that you are exchanging request_token …
@anilbhatt Please check our official clients for websocket implementation and examples - https://kite.trade/docs/connect/v1/#libraries-and-resources
Yeah after market you will get day closing price.