Dhan algo_Order placement_Missing required field error #195
Unanswered
madandurai
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, im beginner in python coding. when im running below code, getting an error message of
"{'errorType': 'Input_Exception', 'errorCode': 'DH-905', 'errorMessage': 'Missing required fields, bad values for parameters etc.'}"
I have provided all the details which are mentioned as required in Dhal API documentation. Could anyone help me with what im missing. Thanks
Code //
url_order ='https://api.dhan.co/v2/orders'
ord_data= {
"dhanClientId":api_key,
"transactionType":"BUY",
"exchangeSegment":"NSE_EQ",
"productType":"CNC",
"orderType":"MARKET",
"validity":"DAY",
"securityId":"21174",
"quantity":1,
"price":0.0,
}
df_order = requests.request("POST",url_order,headers=headers,data= ord_data).json()
Beta Was this translation helpful? Give feedback.
All reactions