BankNifty Lot size is currently ‘15’. The quantity needs to be in the multiple of 15 only. Also, there are some other mistakes, so kindly refer documentation: Orders - DhanHQ Ver 1.0 / API Document
The Order JSON for 1 lot would be:
{“errorCode”:“BAD_REQUEST_ERROR”,“httpStatus”:“BAD_REQUEST”,“internalErrorCode”:“RS-9005”,“internalErrorMessage”:“Market is Closed! Want to place an offline order?”}
Price does not needs to be mentioned, if the order type is Market. It simply needs to be 0 in that scenario.
For the error, you must have placed the order after market (which is mentioned on Error Message). If you want to place after market order, you can do the same by keeping afterMarketOrder flag as TRUE.