Hi I am trying to place fno positions using kite connect Java api client. I am able to place the order for an options contract at a specified limit price. However, I need to understand how the sl/tp parameters can be passed to the order data so that the trade is either booked for profit or a sl is triggered. How can I pass the sl/tp values in that sense? placeorder's orderparams does seem to use stoploss attribute but I cannot see that (i.e sl value) on the kite web. can you help me on that please?
Also, is there a method available to fetch the margin for a specific trading symbol? i.e the value displayed on the kite web. Thanks.
However please note zerodha keeps blocking bracket and cover order quite often when the market is volatile. I don't think there is an automated way to check if the BO is blocked for a given day. This is the reason I am not using bracket order instead I place a normal buy order. Once the normal buy order is executed I place target order with whatever price I want. After that, I keep monitoring the target order status and the last traded price. If the last traded price falls below my stoploss price I modify the target order with the stoploss price.
Margins for order is not available as part of KiteConnect at the moment.
Thanks on margin query. I think Zerodha need to consider this for future api releases.
However please note zerodha keeps blocking bracket and cover order quite often when the market is volatile. I don't think there is an automated way to check if the BO is blocked for a given day. This is the reason I am not using bracket order instead I place a normal buy order. Once the normal buy order is executed I place target order with whatever price I want. After that, I keep monitoring the target order status and the last traded price. If the last traded price falls below my stoploss price I modify the target order with the stoploss price.
You can refer to this thread.