The access token is flushed every morning between 7:30 to 8:30 AM. If you have created access token at 12:00 AM then you may have to log in again at 8:30 AM.
Hi,
The request_access_token will take request token as the argument. It is called to generate a new access token when you receive request token.
You shouldn't be calling this method. You need to call set_access_token method.
PS: Kite Connect 1 wil…
Hi,
The close price of the last hour candle is the last tick received by the system.
The day candles will have bhav copy data which is a published by the exchange after the post-market session.
Hi,
You will get invalid session error(TokenException) only when you are passing invalid api_key or access_token. You can print the final URL that is being sent and check if all the params are sent properly or not.
Hi,
Once you get access token, you can use it from any system. The Kite Connect authorization is based on api_key and access_token only. It doesn't matter where you run the script.
Hi,
The trigger range API was still pointing to the old version. Now, we have updated the kite3 branch. You just need to use the latest jar in the dist directory and check out the examples file for syntax.
Hi,
Your Kite publisher app is active now. Make sure you don't post your api_key, api secret or any other session-related tokens on public threads. You can private message these details.
If you are planning to use Mutual funds APIs then you need a …
@pybull,
There is a new login URL, wherein you need to append query param v=3, now authorization tokens have to be sent in the header and X-Kite-Version has to be sent via header.
You can check out documentation for more details and cURL example req…
@nickmanan,
Trailing happens only when the trend is in your favor. If it is opposite then trailing will not happen. You can check out this blog post for more information.
Hi @tahseen,
A trading terminal will not be aware of taxes, brokerage, STT and other charges. It is handled by the backoffice. I am afraid, we can't provide it as of now.
You seem to be using an old version of Kite Connect which will be deprecated soon. You need to use Kite Connect 3.
You can check out the kite3 branch for latest Kite Connect.
By default when you subscribe for data, it will be subscribed in Quote mod…
@abhishek01,
We don't use TR for data. We get feeds from the NSE directly. As of now, Kite Connect doesn't support Nifty Strategy indices. We will add it to our list.
@VIDANANTH2,
You can fetch candles of 15minutes and 60minutes. There will be some seconds delay in candle generation.
The historical data API is provided for backtesting purpose only. We don't recommend using that for live strategies.
For live strat…
@amitpandeyprince,
Then, I think you can either use some other card or net banking or use any of the other supported wallets.
Or simple would be to debit from Zerodha account but then it will trigger auto-renewal of Kite Connect subscription, you ne…
@TUSH123,
For regular(MIS, CNC, NRML) positions, you need to loop through positions to square off positions by placing an order of opposite transaction type for the same number of quantities at the market.
For bo, co positions, you need to loop thr…
@nickmanan,
One can't modify trailing stop-loss. Once a first leg is executed, you can modify trigger_price of SL-M (stop-loss) and price of LIMIT(target) order.
It is one request per second. You can use bulk fetch APIs to fetch quote for multiple instruments in one request.
You can check python documentation of Kite Connect 3 here.
You need to pass like this, instruments = ["NSE:INFY"]
If your strategy is confined to one order then you can use order's average price else you need to look at position's average price.
You need to also note that if you take a position and close it and re-open again then the average price is the averag…
The actual response from the server is the csv. You can just directly make an HTTP request to the endpoint.
You can check out cURL example to know the correct format and URL of the request.
I think this is a status message of the IOC order wherein it will either execute immediately if there is any match(seller at the same price) or it gets canceled.
Hi,
An average price of an order is the average of the price at which all the trades have happened.
An average price of a position is the average calculated based on multiple orders.
Are you trying to calculate P&L?
@sameer,
buy_quantity(totalBuyQuantity) is the total quantity of all bids (pending buy orders) at the exchange.
sell_quantity(totakSellQuantity) is the total quantity of all the offers(pending sell orders) at the exchange.
We don't provide this data. You can go to NSE website and get it.
Go to this page and select the date for which you want data and look at Deliverable Qty column and Total Traded Quantity.
Number of MIS traded quantity = total quantity - deliverabl…
Please make sure you don't post your api key and secret on public threads. You can private message if you have to write api key or any other session related tokens.
Hi,
We haven't made any changes recently.
If you are using generateSession method and you see this error then there are two possibilities either you are sending invalid api key or api secret.
Can you enable debugging and check if you are sending co…
Hi @sameer,
Our system starts saving candles only after it gets the first tick. If the first tick is received at 9:20 AM then candle data will start from 9:20 AM.
You need to handle it at your end.
@menaveenn,
You need to use the current month instrument token, from and to date along with continuous as 1(true).
PS: We only have day's data for expired futures instruments.
@pybull,
You need to send a valid access token to use new websockets API. Make sure your access token is valid.
@archulysses,
You need to use Kite Connect 3 (kite3 branch).
pykiteconnect is compatible with both python 2 and 3.
@_name_
You can place any number of bracket order per day. There is a maximum cap on the number of requests per second that can be sent to Kite Trade. For current API rate limits, you can check out this thread.
Once we completely migrate to Kite Co…
I am afraid we can't provide that.
You can use the new quote call to fetch LTP and place an order.
Kite Connect is purely an execution platform which provides only fundamental APIs which are required to build platforms or strategies.
The mock session will happen on first Saturday of every month. During mock sessions, as of now, we allow users to place orders. We don't provide live market data. If you want it then make sure to request us one day prior.
In future, we will provide…
You will see the 5:25 candle which is built using five 1minute candles from 5:25-5:30.
If you request at 5:29 then you will be getting the last candle which is built using available candles which is four 1minute candles.
We don't recommend using H…
The way it works is, getQuote receives data from Kite Ticker. Kite Ticker always caches the last received tick in order to serve data immediately when someone requests for it. We use it on all our platforms. We never clear cache in the Kite Ticker u…
The request token is valid for only a couple of minutes and it can be used only once. It has always been the same, we haven't changed that logic at all.
Come on think about it again. If everybody starts doing this for every order then there won't be any execution at all.
On the other hand, it will increase loads on our server because it will have to modify tens of thousands of pending orders for ev…
@bluenile,
It was not manually flushed by anyone. The OMS process was restarted which resulted in the clearing of the exchange sessions at OMS and hence even though Kite session is valid, OMS session was invalid.
@swamy_12,
The error java.net.UnknownHostException usually happens when the system can't connect to an endpoint also.
Can you try on some other network?
Please add more details about your current internet setup as well.
@razcads,
This is a tricky feature. A user should always know what price he is placing the order for.
In case of F&O segments, the next bid and ask will be very far away than LTP. If some trade happens on the next bid or ask then the next LTP wi…
You can make changes to the repositories and we accept pull requests.
But what changes do you want to make for maven?
We have a couple of other changes in the list. We will upload it to maven after that.
Even if you place a BUY limit order at LTP, it will get filled only if there is a seller who is ready to sell at that price.
If that seller has less quantity then your order will be partially filled and your order will be still in pending with statu…
@Guhan,
No, the stop-loss and square-off values are given in points and they are set those many points away from the price of execution and not based on the user entered price.
Yes, you can't modify stop-loss and square off values.
You can modify price and trigger price of the second leg orders though.
Yes, order_timestamp is the OMS timestamp which will be updated for every modify request and exchange_timestamp will not …