Hi @sauravkedia,
Can you let us know the exact URL for which you are getting 404 and 503?
Can you also explain what exactly your proxy is doing?
Are you using the same proxy on browser as well?
Hi @raminde,
There was one more issue after the above comment. Even though margin calculator and margins API was updated. Because of some configuration issue, changes made during the day to the margins API were not reflecting end users but later it …
Hi @sauravkedia,
If this happens again, make sure to paste complete params you are sending for the same order. We will take a look and get back to you.
Hi @sunny,
In the recent weekends, we have been deploying new upgrades to the system. Sessions are cleared due to this. You may re-login if this happens.
Hi @rajexp,
You won't receive any data using the publisher. You need a Kite Connect subscription to access that order details.
Kite Publisher is just a button to place orders, you can't get any data from the same.
Hi @Encrypted,
You historical subscription ends on 3rd November 2017. You need to renew that.
In that case, the user still had 15 days of historical data subscription and the user had created new App instead of renewing the old App to continue histo…
Hi @sashiks1009,
Total buy quantity and total sell quantity doesn't refer to the executed orders.
At any point of time during market hours, there will be lakhs pending orders. Total buy quantity is the sum of the quantity of all the buy orders and t…
Hi,
Consider a bracket order is placed with a limit price at 100, target at 150, stop-loss at 80 and trailing stop-loss at 22. The values of target, stop-loss and trailing stop-loss are in points which means your target and stop-loss will sit that m…
You can use Websocket as mentioned here https://kite.trade/docs/connect/v1/#streaming-websocket or you can use bulk fetch API getOHLC as mentioned here https://github.com/rainmattertech/javakiteconnect/blob/master/sample/src/Examples.java
Hi @sashiks1009,
A trade can happen only when a buyer and seller price match. For every sell, there is a buy and vice versa.
Total buy quantity is the total bid quantity and total sell quantity is the total ask quantity.
You can get open interest i…
Hi @arsh_makker,
It seems you specified target as 134 and stop-loss as 47, did you intend to exit at target for 227.6 and exit to cover loss at 46.6 and trailing stop-loss at 1?
After the price moved to around 97.6, then your stop-loss would have be…
Hi @hareesh,
Previous day's OHLC is only available in historical data.
An alternate solution would be to generate candles at your end using live market data from websockets.
I would suggest giving value little far than the minimum value and maximum value and make sure time gap between fetching trigger range and placing an order is minimum.
Hi,
Yes, you just need to call that method.
Let's say your first leg is already executed, for each second leg orders, there will be parent_order_id which points to the first leg order. You just need to pass that value which exiting bracket and cover…
Hi,
You can check out this thread for pseudo code.
co_lower and co_upper will give you the minimum and maximum value for trigger price while placing a cover order.
Hi @ramatius,
You can check out this example.
Another solution is to calculate it on your end, it is easy
Let's say co_upper is 3.5% (value retrieved from API) then
trigger upper limit = LTP + (LTP * 3.5/100)
API will return the same value. This mi…
Hi @ramatius,
I am afraid we can't make changes to that logic. It's not a part of Kite Connect. It depends on our RMS and OMS.
A feasible solution would be to fetch trigger range just before placing the order and avoid giving trigger price equal to …
Hi @ramatius,
Trigger price range changes real time according to movement of LTP.
The order for SYNDIBANK-EQ of quantity 1518 is completed and counter order is also complete.
For another order at around 13:00 for the same instrument, at that moment…
Hi @krtrader,
Let us say today is 31st October 2017 and you request for 31st October 2017 day's candle at 9:30 AM then you will get OHLC of day candle which is generated using tick data.
If you request for the same candle post 18:30 then you will ge…
Hi @ramatius,
This can happen when Kite Connect has placed an order and didn't get a response from OMS.
Kite Connect would throw 5xx series of HTTP status code and the message will be gateway timeout. You need to handle and check orderbook before pl…
Hi,
The bhav copy is generated by end of the day post-market settlement which is around 17:30 or 16:30.
If you request for OHLC before that then it will return OHLC of the tick data.
Hi,
You will have to place a sell market order for the same instrument with same product to close long position and buy market order for the short position.
Hi @krtrader,
1. getOHLC() method returns data using bhav copy, right?
It will return tick data and OHLC data is of the day. bhav copy is generated at the end of the day. During the day it will return tick data.
2. Is it possible to get OHLC based o…
@shank278,
Kite Connect APIs are stable and issues can happen to any system especially when there are external dependencies. It is a coincidence that you faced it on the first day of the usage.
This forum is dedicated for technical queries if you h…
Hi @krtrader,
Kite web charts and historical data API are from the same source(database) and hence there won't be any difference between the data.
A minute and hour charts are generated using the ticks that are received during the market hours at ou…
Hi @lazydragonfist,
Second leg order will not have trailing stop-loss details. You can check out example for second leg orders modification of bracket order.
Hi @piyushk921,
This is error message is from order_place method, it will be called when a session is expired.
This can happen when a user logged into to any of our platforms like PI or NEST. I would suggest using Kite for monitoring purpose and if …
Hi @greybit,
I would suggest not to hardcode start date as 9:15 AM. For illiquid instruments, first tick can come after 10 or 15 min of market opening and it is random. I would suggest handling it at your end.
Other date inconsistency issues, we are…
Hi @greybit,
Can you give example for a couple of other instruments? I will forward it to the data team so that they can figure out some pattern where they are going wrong?
Hi,
It has happened because of liquidity.
The scenario is, one of the order got executed and by the time system tried to cancel another order, it also got executed.
I think you should try giving target and stop-loss little far away. For now, we have…
Hi @shank278,
Yesterday, there was some issue with one of the instances of OMS. It was resolved after some time.
The session can be expired when a user logs into any of our platforms like Pi or NEST. I would suggest using Kite for monitoring purpos…
Hi @sreeni_28,
Sandbox will be provided for Kite Connect first. The base APIs has to be provided by our OMS vendors. We are yet to receive those. As it depends on vendors, we can't give the exact date. We are following up with them to get these APIs.
Hi @botany02,
1. When we get order updates via websocket, is the work already in progress or it's in the future road map, work yet to start?
We are already working on it.
2. Can we get order updates for every fill, like we get in Pi (right now post-…
Hi @raminde,
Margins API is updated only once a day whereas the source file of the website can be updated multiple times during the day by RMS based on the liquidity and many other reasons.
From now on we will update API also when website data is up…
Hi @ramonifr,
Please open a new thread for new queries. It might help others who are looking for the same thing.
If I answer here, it will get buried. Please do open a new thread with this query.
Hi @vvijay,
There was some issue with one of the OMS instances. It was resolved in some time.
Do let us know if it is still happening. We will look into this.
@mastertrader21,
In positions, if the quantity is greater than 0 then it is a long position, if it is less than 0 then it is a short position.
Holdings will always have quantity as 0 or greater than 0.
Hi @sachinstlko09,
We don't provide support for coding. We only provide assistance for API related queries.
There are many freelancers on this forum. I am sure people will be happy to help.
Hi,
After order placing is successful, you get order id. You can use that to find child orders(second leg) orders.
Once you fetch orderbook, you need to look for orders with parent order id same as first leg order.
@Abhishek Gupta,
As of now, we adjust only NSE data and not BSE.
The closing price of a minute candle is the close price of last minute whereas day's data will have the settlement price.
30min candles are generated using 1minute candles. We have dat…
Hi,
Both are cleared when a session is expired. There is no relation between the public token and access token.
Yes, you can be logged in on both Kite Web and Kite Mobile.
Hi,
You do get the list of intraday and carry forwarded positions in the net field of that json.
You can check out documentation.
There should be at least one position to check for buy_quantity.
You can exit bracket order like this https://github.com/rainmattertech/javakiteconnect/blob/master/sample/src/Examples.java
Look for exitBracketOrder method.
Hi @ramatius,
When this issue had happened second leg orders for the bracket and cover orders were not getting placed. Hence RMS had blocked bracket and cover orders for some time. I think you had placed orders during that time.
Hi,
The way system works is when a modify request for an order is placed. If you get success then that means the request is placed successfully. It doesn't mean order modification is successful.
Once a modify request is placed, it will go through se…
Hi @lazydragonfist,
Please create a new thread for new queries.
If someone else has the same issue/doubt then they can search and find the answer.
If I answer here, it gets buried and unsearchable.
Hi,
You can open up to 3 websocket connections with one api_key and you can subscribe for up to 200 instruments with one connection.
For more information, check out documentation.
Hi @palani_kmp,
holdjson['data']['net'] is a JSON array and you seem to be trying to access buy a quantity of array instead of buy quantity of array item.
It should be something like this holdjson['data']['net'][0][buy_qunatity]
@Kanchana,
When the issue had happened second leg order were not getting placed. Hence we had blocked bo and co.
It should be resolved by now.
Please stop hijacking threads, create a new thread for new queries.
Hi,
This is not a limitation of the Kite Connect APIs, these are the rules set by RMS team.
These caps are across all the platforms provided on Zerodha.
Hi,
This has happened because of high volatility.
Your bracket order got executed and second leg orders were placed.
When target was hit, system tried to cancel stop-loss but by that time that was also executed.
This forum is dedicated on…
Hi @sunnypatel,
Check out this thread which is based on same topic https://kite.trade/forum/discussion/2356/difference-in-prices-between-kite-chart-and-websocket-historical-apis#latest
@Kanchana,
The minimum value for trailing stop-loss is 0.05 for CDS segment and 1 for other segments.
Kite Connect always accepts values in points. It doesn't support tick values for trailing stop-loss, stop-loss and target values.
We have informed…
Hi @vm87,
The source for the live market data is same for Kite and Kite Connect. Values can't be different.
You can check on some other network to figure out the delay.