401 errors on the Liquidate API only

Hello,

I’ve been using the Tradovate API and I’m experiencing an issue with 401s on the liquidate position api. For example..

Unauthorized for url: https://demo.tradovateapi.com/v1/order/liquidateposition

I don’t believe it’s an expired token issue because the login is successful, I make a few api calls for accounts, orders, positions, but when I try to liquidate I get a 401.

No other endpoints are causing issues.

My request in python looks like:

My token permissions are:

Any idea what could be causing the issue?

Thanks.

You are missing “positions”:

You can get it from: position/list

2 Likes

Trying setting “admin” to False. It is not the same property as “isAutomated”.