Facing issue in trailing stop limit order

Hi @Tradehull_Imran ,

'Got exception in place_order as {‘status’: ‘failure’, ‘remarks’: {‘error_code’: ‘DH-905’, ‘error_type’: ‘Input_Exception’, ‘error_message’: ‘Invalid Price’}, ‘data’: {‘errorType’: ‘Input_Exception’, ‘errorCode’: ‘DH-905’, ‘errorMessage’: ‘Invalid Price’}}
Message sent successfully
Error at getting order status as Check the order id, Error as None
local variable ‘response’ referenced before assignment
error in sl order checking

Also the trigger price is not getting modify there is always error of price is not in llp range

options_name = orderbook[name][‘options_name’]
options_chart = tsl.get_historical_data(tradingsymbol = options_name,exchange = ‘NFO’,timeframe=“5”)
options_chart[‘atr’] = talib.ATR(options_chart[‘high’], options_chart[‘low’], options_chart[‘close’], timeperiod=14)
rc_options = options_chart.iloc[-1]
sl_points = rc_options[‘atr’]*atr_multipler
options_ltp = tsl.get_ltp_data(names = options_name)[options_name]
tsl_level = options_ltp - sl_points

			if tsl_level > orderbook[name]['tsl']:
				trigger_price = round(tsl_level, 1)
				price         = trigger_price - 0.1
				tsl.modify_order(order_id=orderbook[name]['sl_orderid'],order_type="STOPLIMIT",quantity=orderbook[name]['qty'],price=price,trigger_price=trigger_price)
				orderbook[name]['tsl'] = tsl_level

Hi @Bhavesh_Soni ,

As seen the price is invalid, kindly check placing the same order directly in terminal and give valid price and try again.