Response: 200-OK, but failures

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”}

Hopefully, you’ve solved this already but this answer may help someone else.
This looks like maybe you may need to give specific orders access permission for the specific account in the API settings in either Tradovate desktop or web.

similar error was on mine as well but the order was open in backend (not visible on the App).
this ended up in bad execution of order (live account) and killed partly my account