SL-M(STOP LOSS MARKET ORDER)

Dilli
Unable to use SL-M order, getting an error M is not defined.

Need guidance.
  • sujith
    Can you paste the code and complete stack trace here?
  • Dilli
    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
  • Dilli
    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
Sign In or Register to comment.