I’m trying to explore commodity trading using APIs. But when placing order it is throwing this error in sandbox API.
{
"price": 137.0,
"boProfitValue": 0.0,
"boStopLossValue": 0.0,
"dhanClientId": "xxxxxxxx",
"correlationId": "BapOrder",
"transactionType": "BUY",
"exchangeSegment": "MCX_COMM",
"productType": "MARGIN",
"orderType": "LIMIT",
"validity": "DAY",
"securityId": "452518",
"quantity": 1,
"afterMarketOrder": false
}
Response: BAD REQUEST
{
"errorType": "Order_Error",
"errorCode": "DH-906",
"errorMessage": "Exchange Connectivity is not establised for MCX Commodities"
}