I am using the below curl to place an order in sandbox mode, and I get the following response.
{
“errorType”: “Input_Exception”,
“errorCode”: “DH-905”,
“errorMessage”: “Missing required fields, bad values for parameters etc.”
}
But the same curl works when i use ‘<DHAN_API_URL>/v2/orders‘ host.
POST ‘<SANDBOX_URL>/v2/orders’
–header ‘Accept: application/json’
–header ‘Content-Type: application/json’
–header ‘access-token: <access_token>’
–body '{
“dhanClientId”: “<CORRECT_CLIENT_ID>”,
“correlationId”: “12a3bcd4”,
“transactionType”: “BUY”,
“exchangeSegment”: “NSE_FNO”,
“productType”: “INTRADAY”,
“orderType”: “LIMIT”,
“validity”: “DAY”,
“securityId”: “51475”,
“quantity”: 35,
“price”: 207.0
}
can anybody help with this?