@sujith
Is there a way in the Instrument data to distinguish between weekly options and monthly options, or do we have to check if the expiry is the last Thursday of the month to figure out for ourselves. Sometimes the expiry might not be a Thursda…
@sujith
Sorry for the trouble. You are right, there was a filter applied, which I didn't see. I removed the filter and now all positions are visible. Thanks.
@rakeshr I went through your API. While I can get the time stamp in the full quote of the API, this API call will always give the OHLC quote of the current/previous day. There is no way to get the OHLC data of 2 or 3 sessions in the past.
As I had w…
Thanks. Will do as advised. Might I suggest 2 enhancements to the API...
1. In the OHLC Quote, add a field for date. That way there will be no confusion and it can be programmatically checked whether the response is for the desired date. It will als…
Thanks.
I am trying to get the OHLC quote of the previous day as an input for my current day trading algorithm. So for example for Nifty Derivatives and Equity, what would you suggest as the best time to schedule the OHLC quote call daily in my prog…
@sujith ,
I just wanted to clarify the following two cases in case of a "Regular" MIS order...
1. Suppose I have a Regular MIS order with order id 123, which is a buy order on Nifty, quantity 75 and has the status "complete". Then after some time if…
Thanks Sujith,
Since we are looking at changes to Constants, here are further 2 suggestions which can further improve on it....
1. Constants.java only has constants required as input to the API, and even on that I am not sure it is comprehensive. It…
Hi Sujith,
I tried the support web site first, but couldn't find any way to open a ticket even after logging in with my Kite ID. Could you please tell me how to open a ticket?
Thanks, will try it out... but if trigger_price is required with CO Orders, then if it is missing then API should be giving error/exception response so that the programmer knows immediately that something is missing from the parameter. A helpful err…
Thanks. I think I got it. CancelOrder() has two over loaded variants.
One variant takes 2 parameters - order_id and variety, which is to be used for cancelling "regular" orders. In this variant the variety parameter should always be "regular".
The …
Hi Sujith,
You can keep the current human readable message, which can be changed according to context. No issues about that. What I am suggesting is that you add a unique error code that machines can read, and this unique error code will not change …
Hi Sujith,
Thanks for pointing to this API. It was sorely needed, however I have two queries:
1. I am interested in calculating the margin required for Cover Order. In the JSON Api link that you sent, it is not clear which field I should be reading …
I have private messaged you the order ID.
You can rule out the scenario of the order being modified more than 25 times. I counted and the order had been modified only 5 times before that. In any case the exception on maximum modifications come with…
Ok I found it. Sorry it had gotten lost in all the other daily entries that get entered. My follow up question is whether we can have a feature to separate out the trading debit entries in report from the charges.
Otherwise it is impossible to figur…
@sujith
I am aware of the margin requirement changes. I read the bulletin every day morning. This has got nothing to do with the margin requirement change, I am just pointing out an error in the basic formula for calculating the margin as given by …
For NFO futures, your formula on the last line of the function has the following line...
margin = (margin * 0.20) + margin;
when I compare this to the actual margin you are blocking, it seems that there is an error. By the above calculation one …
Hi Sujith,
Three questions...
1. How can the session expire in the middle of the day while trading when I am continuously accessing various kite rest api as well as consuming the kite ticker?
2. My program runs on a server completely autonomously w…
Alternatively you can publish in your API the number of modifications each type of order can make, which you can change dynamically as you manage volatility. We can read this number and incorporate it in our algorithm, which will avoid all these pro…
OK. However please note that this breaks my algorithm, and potentially many other people's algorithm. So it would have been appreciated if some notification with a few days notice was given to us, preferably by email before making the changes.
It i…
@sujith In case of a 400-Timed out exception while placing a new order, I will be checking the orderbook for a maximum of 60 seconds to ascertain whether the order actually went through.
Since I don't have an order number to check against in the ord…
Thanks got it... I should check the order book after such an exception. If I find a new order then the order went through, else it didn't.
However how long should I wait and then check the order book to be sure that the order didn't go through? 1 se…
@sujith Thanks got it... Is there any place where I can get the comprehensive list of all possible codes of Input Exception along with the messages? It would help in handling such errors in my program.
Ps.. The exception while placing the order was
com.zerodhatech.kiteconnect.kitehttp.exceptions.InputException
Which from what I could glean by reading the comment in the code says - "Represents user input errors such as missing and invalid paramet…
For NFO Option - sell, the formula is given as
margin = (strike_price + price) * quantity * 0.25
For Strike_price = 12000, price=1000, quantity=75 from the above formula one gets a value of Rs. 2,43,750
The same values entered in your formula calc…
For NFO Option - sell, the formula is given as
margin = (strike_price + price) * quantity * 0.25
For Strike_price = 12000, price=1000, quantity=75 from the above formula one gets a value of Rs. 2,43,750
The same values entered in your formula calc…