Getting error DH-905 placing orders

@Tradehull_Imran attached is the code along with the security id. why is this giving an error ?

Hi @HJS_DVK

for order placement use below code, security id is managed internally in it

# Equity
entry_orderid  = tsl.order_placement(tradingsymbol='ACC' ,exchange='NSE', quantity=1, price=0, trigger_price=0,    order_type='MARKET',     transaction_type='BUY',   trade_type='MIS')
sl_orderid     = tsl.order_placement(tradingsymbol='ACC' ,exchange='NSE', quantity=1, price=0, trigger_price=2200, order_type='STOPMARKET', transaction_type ='SELL', trade_type='MIS')

# Options
entry_orderid  = tsl.order_placement(tradingsymbol='NIFTY 19 DEC 24400 CALL' ,exchange='NFO', quantity=25, price=0, trigger_price=0, order_type='MARKET', transaction_type='BUY', trade_type='MIS')
sl_orderid     = tsl.order_placement(tradingsymbol='NIFTY 19 DEC 24400 CALL' ,exchange='NFO', quantity=25, price=29, trigger_price=30, order_type='STOPLIMIT', transaction_type='SELL', trade_type='MIS')

# AMO order
orderid      = tsl.order_placement(tradingsymbol='NIFTY 26 DEC 24000 CALL', exchange='NFO', quantity=25, price=0, trigger_price=0,order_type='MARKET', transaction_type='BUY', trade_type='MIS',after_market_order=True)


modified_order = tsl.modify_order(order_id=sl_orderid,order_type="STOPLIMIT",quantity=25,price=price,trigger_price=trigger_price)

@Tradehull_Imran I am getting constant DH-906 error on this, please guide

try:
    tsl.modify_order(
        order_id=sl_orderId,
        order_type="STOPLIMIT",
        quantity=75,
        price=98,
        trigger_price=100
    )

    if modified_orderId:
        printf(f"INFO: Order modified!")

except Exception as e:
    print(f"ERROR: Order modification failed! {strategy_name}: {e}")
    # trade_status        = 'SL Order details failed'
    traceback.print_exc()

Got exception in modify_order as {‘status’: ‘failure’, ‘remarks’: {‘error_code’: ‘DH-906’, ‘error_type’: ‘Order_Error’, ‘error_message’: ‘Missing required fields, bad values for parameters etc.’}, ‘data’: {‘errorType’: ‘Order_Error’, ‘errorCode’: ‘DH-906’, ‘errorMessage’: ‘Missing required fields, bad values for parameters etc.’}}