Not able to place Nifty Fut Trade through Dhan API getting DH 905 error

I am not able to place nifty fut order through dhan API , keeps on getting below error {‘status’: ‘failure’, ‘remarks’: {‘error_code’: ‘DH-905’, ‘error_type’: ‘Input_Exception’, ‘error_message’: ‘Missing required fields, bad values for parameters etc.’}, ‘data’: {‘errorType’: ‘Input_Exception’, ‘errorCode’: ‘DH-905’, ‘errorMessage’: ‘Missing required fields, bad values for parameters etc.’}}

I am not trying AMO order.

Below is the payload :

{‘afterMarketOrder’: False, ‘boProfitValue’: None, ‘boStopLossValue’: None, ‘dhanClientId’: ‘1100260006’, ‘disclosedQuantity’: 0, ‘exchangeSegment’: ‘NSE_FNO’, ‘orderType’: ‘LIMIT’, ‘price’: 23400.0, ‘productType’: ‘MARGIN’, ‘quantity’: 1, ‘securityId’: ‘54446’, ‘transactionType’: ‘SELL’, ‘validity’: ‘DAY’}

Please let me now if I miss anything.

Hey @Aswini_Hotta

Welcome to MadeforTrade community!

Over here, for F&O, quantity needs to be a multiple of lot size to place the order. For example, in case of Nifty, the quantity will be 75 or it’s multiples.

Hi @Hardik @Dhan

Thanks for quick response, but I am placing order for future not option security id : 54446 - FINNIFTY-Apr2025-FUT. Please suggest here also I have to pass quantity it’s multiple (Nifty:75, Finnifty: 65) .

Please let me know

Hi @Hardik @Dhan , Any update

@Aswini_Hotta

Be it futures or options you have to specify the quantity as multiple of lot size.

Nifty - 75, Bank Nifty - 30 (soon to be revised to 35), FinNifty - 65 etc

Thank you for your update, now I can place order.

1 Like