Hi @Alexander
We are seeing many OSO orders returning error response in the response body but with http code 200/OK – please see below a sampled request/response. What could be causing this? Thanks in advance.
Endpoint: https://demo.tradovateapi.com/v1/order/placeoso
Request (sensitive fields masked):
{
“accountSpec”: “",
“accountId”: **********,
“clOrdId”: "",
“action”: “Sell”,
“symbol”: “NGJ2022”,
“orderQty”: 1,
“orderType”: “Stop”,
“timeInForce”: “GTC”,
“isAutomated”: true,
“stopPrice”: 4.552,
“bracket1”: {
“action”: “Buy”,
“clOrdId”: "",
“orderType”: “Limit”,
“timeInForce”: “GTC”,
“price”: 4.544
},
“bracket2”: {
“action”: “Buy”,
“clOrdId”: "****”,
“orderType”: “Stop”,
“timeInForce”: “GTC”,
“stopPrice”: 4.556
}
}
Response:
200-OK
{“failureReason”: “UnknownReason”, “failureText”: “Access is denied”}