Hello Team,
When I am creating a PlaceOrder(for SL), I am getting the following error message. Can you please let me know which parameter is missing.
Output - {‘errorType’: ‘Input_Exception’, ‘errorCode’: ‘DH-905’, ‘errorMessage’: ‘Missing required fields, bad values for parameters etc.’}
Note : I could able to successfully create Limit Order with the above parameters.
My Inputs are
- TriggerPrice is Lesser than Price - {“dhanClientId”: “xxx”, “transactionType”: “BUY”, “exchangeSegment”: “MCX_COMM”, “productType”: “MARGIN”, “orderType”: “SL”, “validity”: “DAY”, “securityId”: 472783, “quantity”: 1, “disclosedQuantity”: 0, “price”: 129560.0, “afterMarketOrder”: false, “boProfitValue”: null, “boStopLossValue”: null, “triggerPrice”: 129550.0
- TriggerPrice is More than Price - {“dhanClientId”: “xxx”, “transactionType”: “BUY”, “exchangeSegment”: “MCX_COMM”, “productType”: “MARGIN”, “orderType”: “SL”, “validity”: “DAY”, “securityId”: 472783, “quantity”: 1, “disclosedQuantity”: 0, “price”: 129560.0, “afterMarketOrder”: false, “boProfitValue”: null, “boStopLossValue”: null, “triggerPrice”: 129570.0
- TriggerPrice is Equal To Price - {“dhanClientId”: “xxx”, “transactionType”: “BUY”, “exchangeSegment”: “MCX_COMM”, “productType”: “MARGIN”, “orderType”: “SL”, “validity”: “DAY”, “securityId”: 472783, “quantity”: 1, “disclosedQuantity”: 0, “price”: 129560.0, “afterMarketOrder”: false, “boProfitValue”: null, “boStopLossValue”: null, “triggerPrice”: 129560.0}