I have been trying since morning to buy one qty nifty september future. I am getting error like this.
{
“errorCode”: “BAD_REQUEST_ERROR”,
“httpStatus”: “BAD_REQUEST”,
“internalErrorCode”: “RS-9005”,
“internalErrorMessage”: " todo mandatory fields "
}
The payload is
{
“dhanClientId”: “1103xxxxx”,
“correlationId”: “string”,
“transactionType”: “BUY”,
“exchangeSegment”: “NSE_FNO”,
“productType”: “CNC”,
“orderType”: “MARKET”,
“validity”: “DAY”,
“tradingSymbol”: “”,
“securityId”: “35000”,
“quantity”: 1,
“disclosedQuantity”: 1,
“price”: 0,
“triggerPrice”: 0,
“afterMarketOrder”: false,
“amoTime”: “OPEN”,
“boProfitValue”: 0,
“boStopLossValue”: 0,
“drvExpiryDate”: “string”,
“drvOptionType”: “CALL”,
“drvStrikePrice”: 0
}
what is exactly wrong with this? I tried both python as well as rest api. Is there something wrong with the API today?