Unable to Place Super Order via API

Hi @Hardik @t7support ,

I am trying to place order for Nifty 50 options strike 25700 CE for the expiry 10 July 2025. Below is the paylod, but it’s responding as Invalid Security ID whereas I am using the same Security id mentioned in the “api-scrip-master.csv”

API URL: https://api.dhan.co/v2/super/orders
Payload:
{
“dhanClientId”: “xxxx”,
“correlationId”: “test-1”,
“transactionType”: “BUY”,
“exchangeSegment”: “NSE_EQ”,
“productType”: “CNC”,
“orderType”: “LIMIT”,
“securityId”: “40062”,
“quantity”: 75,
“price”: 10,
“targetPrice”: 15,
“stopLossPrice”: 5,
“trailingJump”: 0
}

API Response:
{
“errorType”: “Input_Exception”,
“errorCode”: “DH-905”,
“errorMessage”: “Invalid SecurityId”
}

@jay.m0403

This is for delivery in cash segment only. For FnO u should select INTRADAY, MARGIN etc

image

I tried doing that also, but still the same error

this is also wrong

I suggest you read the documentation well while coding

Opps, my bad. Thanks for the clarity.

1 Like