API POST ORDER doesn't share meaning error messages

Could it share some meaningful error message?

API: https://api.dhan.co/orders

Request Body:

{"dhanClientId":"zzzzzzzz","correlationId":"xxxxxxx","transactionType":"BUY","exchangeSegment":"NSE_FNO","productType":"MARGIN","orderType":"MARKET","validity":"DAY","securityId":"53771","quantity":1,"afterMarketOrder":false}

Response:

{
  "errorCode": "BAD_REQUEST_ERROR",
  "httpStatus": "BAD_REQUEST",
  "internalErrorCode": "RS-9005",
  "internalErrorMessage": " todo mandatory fields "
}

What’s wrong in it?

Hello @Dharmender

Over here, the quantity needs to be in the multiple of lot size. This is why you are facing the error.

We are working on enhancing the overall API experience, so stay tuned for that.

1 Like

Thanks! let me try