All the systems have been generally directed to provide more descriptive error message.
The error message will say Invalid price or trigger price or price below/above circuit limit etc.
This the core classification. Only the error message will be different and it comes from various systems. There could be thousands of them. I don't think it is possible to list those in one place.
All our traffic goes through Cloudflare so its not possible to give a set of IPs from which the redirect happens. You can find all the Cloudflare IP ranges here, but its not guaranteed that its from Kite or Zerodha since anyone can send traffic via …
This is a technical forum. You can speak about this with the compliance team. You can reach out to the business and compliance team on kiteconnect(at)zerodha.com
In the recent chrome and safari updates, cross origin cookies are not allowed inside webview. You may switch to post request endpoint. You may refer to the documentation here.
The historical data is provided for backtesting purposes only. You can generate candles at your end using the live market data provided via Websocket API. You can get started here.
The concept of entry and exit is there only for postions and holdings. You can use Kite web or app once to know how things generally work. There is nothing like exit orderbook or trade.
If you placed an order that is partially filled as mentioned ab…
You can exit position, it has nothing to do with orderbook. So yes, if you place an order with quantity 75 and same product but different transaction type. You will exit the position partially.
You will have to respond 200 first to the Kite Trade and then do whatever you want. Kite Trade has like 2 to 3 seconds timeout for that POST request.
And also, there are certain edgecases, Hence we recommend using order update as an event to fetch …
Order updates are for all the orders placed on your account via Kite app or web or third party Kite Connect apps. It is not related to live market tick data.
Kite Connect only has trading APIs, backoffice APIs aren't part of the Kite Connect.
You will have to save the charges from margins API only and then use it.
@anishchauhan1,
We don't have an API like that. It is not possible to give the exact number until the trade process is done. Since there are a lot of variables and factors involved.
The stoploss and target needs to be a minimum of 9 paisa away from the last price, if last_price of the instrument is less than or equal to Rs 50.
The stoploss and target needs to be a minimum of 0.25% away from the last price, if last_price of the …
Can you run it with debug logs on and paste the complete request and response here?
Include the fetch orders response also.
PS: Make sure to remove app and client specific tokens.
You were able to get a valid request token? Can you enable debug logs and see what is the complete error json? The one you have posted is a partial one.
Your Kite Connect app seems fine.
Websocket API only provides live market data. You can check out documentation to know more. The other APIs like OHLC, LTP, Quote also provide the latest data only.
For using a historical data API, you need a separate subscription. You can checkout …
There are many moving bits and pieces in the backend process like connecting to multiple vendors and institutions etc. Once everything is sorted and has a proper specifications. We will get back on this.
You don't have to do it. pykiteconnect does it for you. You just need to enable reconnect here.
PS: Default reconnect_max_tries attempt is 50. You can assign an increased value if you feel the disconnection time could be more on your end. The code c…
Kite Connect is purely an execution platform. We don't provide support for writing strategies. You can check out our documentation, FAQs and examples of javakiteconnect.
You can refer to this article and write to support with further details if you need more explanation.
If you are writing to support make sure to give the exact message present in the json. You can enable debug logs and copy, paste the error response.
You need to use Websocket or Quote API and use the last price and calculate P&L of each item in net positions list and then sum it up.
You can refer to this thread.
You can refer to the login flow here.
Once you obtain an access token, you can use it for the whole day. Don't call generate session every time you run the app.
You may also refer to the FAQs here.
There are two types of response for an order placement. It is either 200 which means success or else error which will have non 200 response. You can refer to all the exceptions here. If an order is rejected by our internal mini RMS then you will see…
@dknaix,
An order placed by the user goes through various systems including ours and vendor's, over the internet and then on a wired connection before reaching the exchange. There are many hops. While we work every day to keep things smooth and norm…
Yes, historical data on the Kite Connect API is provided only for backtesting purposes. You can construct candles at your end for the live market strategies.
If you are building an app for mass then i would suggest speaking to compliance team with product description before starting to build. You can contact them on kiteconnect(at)zerodha.com
A 200 for order placement means order is placed successfully. It doesn't mean order is executed. An order goes through multiple system before it hits exchange and gets executed. You can view all the states by fetching the order history.
An order tha…
There shouldn't be any logic inside the on_tick method. One should only consume data and do all your calculations, insert to db or place order in other thread.
Never block the main thread that is receiving ticks.
Can you give more details? Is this consistent or intermittent? What kind of setup is this local or hosted? Did you try on alternate network?
A timeout in order placement doesn't mean order is not placed, you need to fetch orderbook and check if it i…
We suggest talking to the compliance team before building an app that is intended to cater to mass.
A Kite Connect app is provided for a single user by default. One can create a Kite Connect app on developers console. Once you create an app you wil…
You can use this API to fetch all the auction instruments that are traded for the day and given you have those in your holdings.
You can use order place API with variety auction to place auction order at 2 PM everyday. Auction takes place only on a …
@vishwas,
Kite Connect is purely an execution platform. We don't provide solutions to write strategies. You need to write formula and generate the data using the candle data. You may find some resources on this thread to get started.
Kite Connect is enabled by default for only one user id that is entered while creating the app on the developers console. Check if you are logged in on kite web with different id or else go to developers console and enter correct client id.