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
SL-M(STOP LOSS MARKET ORDER)
Unable to use SL-M order, getting an error M is not defined.
Can you paste the code and complete stack trace here?
kite.place_order(tradingsymbol=name, trigger_price=round(first_buy-0.01*first_buy), variety=kite.VARIETY_REGULAR, exchange=kite.EXCHANGE_NSE, transaction_type=kite.TRANSACTION_TYPE_SELL, quantity=round(10000/S), order_type=kite.ORDER_TYPE_SL-M, product=kite.PRODUCT_MIS)
builtins.NameError: name 'M' is not defined
this is the way, I am placing orders, please check whether the format is right. I am having difficulty with SL-M orders only. SL orderr are doing fine