Hi Team,
While placing the BO order , i am getting the below error.
Please let me know what values should be entered as searching in the blog and trying out the different value for SL didn’t worked.
dhan_security_id = 44473
dhan_quantity = 50
dhan_price = 135
dhan_trigger_price = 134
dhan_bo_profit_value = 150
dhan_bo_stop_loss_Value = 130
dhan_first_order = dhan.place_order(
tag=‘NF_BNF_1’,
transaction_type=dhan.BUY,
exchange_segment=dhan.FNO,
product_type=‘BO’,
order_type=dhan.LIMIT,
validity=‘DAY’,
security_id=dhan_security_id,
quantity=dhan_quantity,
disclosed_quantity=0,
price=dhan_price,
trigger_price=dhan_trigger_price,
after_market_order=False,
amo_time=‘OPEN’,
bo_profit_value=dhan_bo_profit_value,
bo_stop_loss_Value=dhan_bo_stop_loss_Value,
drv_expiry_date=None,
drv_options_type=None,
drv_strike_price=None
)
print(“dhan_first_order :” ,dhan_first_order)
Error Output =>
dhan_first_order : {‘status’: ‘failure’, ‘remarks’: {‘error_code’: ‘RS-9005’, ‘message’: ‘Trigger Gap Is Out Of The Specified Gap Range’}, ‘data’: ‘’}