If you have a long open position and you are selling the same instrument then it is squaring off the position.
The behavior will be the same across the platforms.
There are scenarios where Websocket isConnected will still give you true, even though user is not connected.
Since websocket message handling is not like HTTP where you get to know if there is a data loss. A user might never know if data is lost.
T…
We recommend building candles at your end using the live market data provided via websockets API for the live market strategies.
You can refer to this thread to know more.
@k365,
This is an automated reply to every ticket raised. Please wait till one of the executives looks into the issue.
We don't recommend passive-aggressive comments on this forum. If this repeats, we will be forced to ban the user.
The apps section on the Kite web will only show the authorized apps. You need to first login to your Kite Connect app and authorize, then you will start looking at that app in the apps tab of Kite web.
You can check out login flow here.
@vijoeyz,
One can either cancel a pending limit first leg order or exit the second leg order if the first leg is already executed.
Can you check if the above conditions are properly met?
If not then you can private message your client id and order i…
@snehasharma,
If you are referring to canceling auto-renewal then you can go to the billing section on developers console and un-link the Zerodha account from the developer account.
You can refer to the documentation here.
You may also check out the pykiteconnect repository to know more about the binary data parsing of Websocket API.
A trade can only happen when there is someone buying and selling. So there is nothing called buyQuantity of the day.
There is only quantity of the day.
The total buy quantity is the sum of all the buy pending order quantities at the exchange and total sell quantity is sum of all the pending sell order quantity at the exchange.
I am afraid we can't do anything here. Kite Connect follows the standard procedure. You will have to handle it at your end.
You may also enable history mode which makes angular have regular path instead of #
If you have to exit a cover order then you will have to place a market order. A user doesn't have to do this explicitly, the system will take care of it when you send a request for exit_order.
If the second leg order is not executed then it is stil…
@rupreetg,
We don't have Sandbox APIs yet. We are waiting for APIs from our OMS vendors for this.
Unfortunately, as of now, you will have to create a Kite Connect app to use it.
@deepmangukiya,
The ticker shouldn't be bound to a screen, it should be bound to the app's context and it should be connected on coming foreground or launch. You need to subscribe and unsubscribe for tokens based on the screen you are on.
It is not …
By default, a Kite Connect app is linked to the account with which a user has created the app.
Are you sure, you are using the same client id?
If yes, then please private message the client id and api_key of the app. We will check and get back to yo…
If you have MIS open position then you can fetch positions, loop through that, and place a market order of the same quantity, product type, and opposite transaction type for each position in order to exit all positions.
Can you run in debug mode and let us know for which API call you got this error?
Make sure to paste the complete stack trace and remove the app and client-specific details from that.
All the rate limits are based on the api_key. I am afraid we can't provide data in the file dump. You will have to fetch it as JSON and convert it at your end.
@kiteapi,
Yes, you will have to store OI in the DB for calculating change in OI.
You may also get OI of the day from the historical data, given you need only day's data and you already have a historical data subscription otherwise subscribing for h…
If you are pulling data continuously and getting 504 then you can add some delay and fetch it again. It is possible that a request would have failed by the time DB fetch is completed.
@mlearner,
We don't have any hardcoded timings, we just pass on the data whatever we get from the exchange.
It is very unlikely that there were no ticks post 03:21, I am not sure what could be the reason. It is difficult to conclude anything since t…
No need to store anything, the close price you see in the quote api response is the previous day's close price. You shouldn't store last LTP of previous day and do the calculation since close price is published by the exchange in the BHAV copy after…
We don't provide fundamental data. Kite Connect is purely an execution platform.
PS: Please create a new thread for new query, it might help someone who is looking for the same.
@kiteapi,
The earlier version of the Quote API was doing the calculation while sending the response. I think in the newer version it is not done. I have asked the concerned team if they can do something about this.
But still, it is a very small cha…
You can get all the instruments here.
PS: @sandeepsingh1990 please create a new thread for a new topic, it might help someone else who is searching for the same.
@yoursvsr,
Is this app for personal use or for mass?
The BOD process starts after mid-night and ends early in the next morning.
The BHAV copy data is updated in the Websocket post BOD process.