Stop loss not working after new kiteconnect upgrade

SNRaj
SNRaj edited February 2023 in Python client
After updating kiteconnect version from 4.1.0 to 4.2.0, I am unable to execute stop loss order. I am getting the below error

Exception OccuredKiteConnect.place_order() got an unexpected keyword argument 'Stoploss'

I have updated Stoploss with StoplossValue, SL etc. But I am still getting the above error. Please help. The same code is still working fine in kiteconnect 4.1.0

Code:
orderId = kite.place_order(
variety=kite.VARIETY_REGULAR,
exchange=KiteConnect.EXCHANGE_NFO,
tradingsymbol=tradingSymbol,
transaction_type=direction,
quantity=1600,
trigger_price= 136,
Stoploss = 18.0,
product=KiteConnect.PRODUCT_MIS,
order_type=KiteConnect.ORDER_TYPE_SL)
Sign In or Register to comment.