curl --location 'https://demo.tradovateapi.com/v1/order/liquidatePositions' \
--header 'Authorization: Bearer $TOKENVAL' \
--header 'Content-Type: application/json' \
--data '{
"positions": [
0
],
"admin": true,
"customTag50": "string"
}'
I am getting following error Access is denied error
I am following this document: Tradovate API
Same token is working for this API
curl --location 'https://demo.tradovateapi.com/v1/order/placeOrder' \
--header 'Authorization: Bearer $TokenVal' \
--header 'Content-Type: application/json' \
--data '{
"accountId": 20012345,
"accountSpec": "DEMO",
"symbol": "NQM5",
"orderQty": 1,
"orderType": "Market",
"action": "Sell",
"isAutomated": false
}'