“response”: {
“req”: {
“method”: “POST”,
“url”: “https://api-v2.upstox.com/order/place”,
“data”: {
“quantity”: 15,
“product”: “I”,
“validity”: “DAY”,
“price”: 0
},
“headers”: {
“authorization”: “Bearer ”,
“api-version”: “2.0”,
“content-type”: “application/json”,
“accept”: “application/json”
}
},
“header”: {
“date”: “Mon, 11 Dec 2023 06:36:23 GMT”,
“content-type”: “application/json”,
“transfer-encoding”: “chunked”,
“connection”: “close”,
“vary”: “Origin, Access-Control-Request-Method, Access-Control-Request-Headers”,
“message”: “request failed”,
“requestid”: “cb146731-67ac-4fc7-b339-fa0cc3e6badb”,
“x-content-type-options”: “nosniff”,
“x-xss-protection”: “1; mode=block”,
“cache-control”: “no-cache, no-store, max-age=0, must-revalidate”,
“pragma”: “no-cache”,
“expires”: “0”,
“strict-transport-security”: “max-age=0; includeSubDomains”,
“x-frame-options”: “DENY”,
“cf-cache-status”: “DYNAMIC”,
“set-cookie”: [ my-cookie],
“server”: “cloudflare”,
“cf-ray”: “833bb686f85b1bd2-BOM”
},
“status”: 400,
“text”: “{"status":"error","errors":[{"errorCode":"UDAPI1026","message":"Instrument key is required","propertyPath":"instrumentKey","invalidValue":null,"error_code":"UDAPI1026","property_path":"instrumentKey","invalid_value":null},{"errorCode":"","message":"{post.order.transactionType.required}","propertyPath":"side","invalidValue":null,"error_code":"","property_path":"side","invalid_value":null},{"errorCode":"UDAPI1004","message":"Valid order type is required","propertyPath":"orderType","invalidValue":null,"error_code":"UDAPI1004","property_path":"orderType","invalid_value":null},{"errorCode":"","message":"{post.order.trigger_price.required}","propertyPath":"triggerPrice","invalidValue":null,"error_code":"","property_path":"triggerPrice","invalid_value":null}]}”
}
body data
{
“quantity”: 15,
“product”: “I”,
“validity”: “DAY”,
“price”: 0,
“instrument_token”: “NSE_FO|40807”,
“order_type”: “MARKET”,
“transaction_type”: “BUY”,
“disclosed_quantity”: 0,
“trigger_price”: 0,
“is_amo”: false
}
also the errorCode is not mentioned in Docs
ps. i have not tried Equity