It looks like you're new here. If you want to get involved, click one of these buttons!
.Net API client
.Net / VBA / Excel (3rd party)
Algorithms and Strategies
Mobile and Desktop apps
Market data (WebSockets)
In this Discussion
how to place an SL-M & LIMIT order on a market order at the time of order exicution?
order_id = kite.place_order(tradingsymbol=name, # MAIN ORDER
This is the code for market order and getting the order_id.
How can I place an SL-M and a LIMIT order based on this order_id?
please provide the code of SL-M & LIMIT orders which will be applied to the main MARKET order
SLM Limit Order
Does using order_type=kite.ORDER_TYPE_SL-M and order_type=kite.ORDER_TYPE_LIMIT block margin.
if they do then how can I use order_id to not make them block margin.
like when we manually place an SL-M & LIMIT order on a market order
You need to send the price with the above params for the LIMIT order. For SL-M you need to send trigger price with the above params. You can refer to
for a limit order example.
For an SL-M order, once the trigger is hit. It will become a MARKET order. The margin blocking behavior is the same as the Kite web or Kite mobile app.
edited May 20