Error in placing stop loss order

kontacthimanshu
For my long option orders, I was trying to place a stop loss order with following code:
order_id = kite.place_order(tradingsymbol=req_body["symbol"],
exchange=kite.EXCHANGE_NFO,
transaction_type=kite.TRANSACTION_TYPE_SELL,
quantity=req_body["quantity"],
variety=kite.VARIETY_REGULAR,
order_type=kite.ORDER_TYPE_SL,
product=kite.PRODUCT_NRML,
validity=kite.VALIDITY_DAY,
trigger_price=float(req_body["trigger_price"]),
stoploss=float(req_body["sl_price"]))
I got an error message saying:

"TypeError: place_order() got an unexpected keyword argument 'stoploss'". Please help.

Thanks
Tagged:
This discussion has been closed.