Getting bad values for parameters etc .. while placing super order through API

My Payload is :

{
“dhanClientId”: “”,
“correlationId”: “0a12dc8f-1726-45fa-b02c-0e676c667926”,
“transactionType”: “BUY”,
“exchangeSegment”: “NSE_FNO”,
“productType”: “INTRADAY”,
“orderType”: “MARKET”,
“price”: 50,
“securityId”: “45283”,
“quantity”: 75,
“targetPrice”: 134.5,
“stopLossPrice”: 47.5,
“trailingJump”: 10
}

headers = {
“Content-Type”: “application/json”,
“access-token”: key
}

endpoint : “v2/super/orders”

I’ve whitelisted my static ip as well

It used to work before but im now getting the below error
“errorCode”:“DH-905”,“errorMessage”:“Missing required fields, bad values for parameters etc.”

can someone please help

@Dhan_Auto_Moderator can you please help

Hi @Mohan_Krishna_kosett ,

Welcome to madefortrade,

It seems that you are trying to place Market Order, in such cases, you have to keep the price as “0”, whereas you have kept it as “50”.

Hello , @Shubham_Singh thanks for the response, even though i keep the price value as “0” issue still exists.

Noticed that after removing the CorrelationId its working .

The api documentation shows it as an optional field . However if the endpoint is not accepting the CorrelationId , Its would be good if the document is updated as such.

This is breaking our process, since the same CorrelationId used to work before

Hey @Mohan_Krishna_kosett ,

The correlation ID for a Super Order should be ≤ 30 characters.

Please try running the below request structure:
{
“dhanClientId”: “1000000003”,
“correlationId”: “123abc678”,
“transactionType”: “BUY”,
“exchangeSegment”: “NSE_FNO”,
“productType”: “INTRADAY”,
“orderType”: “MARKET”,
“securityId”: “45283”,
“quantity”: 75,
“price”: 0,
“targetPrice”: 134.5,
“stopLossPrice”: 47.5,
“trailingJump”: 10
}

Kindly try executing the same and let us know if you still face any error.