# TradeLocker API error: 401 Unauthorized

Independent and unofficial. Not affiliated with or endorsed by any broker or platform named here. Educational only: nothing here is advice, and nothing here recommends a broker or a trade.

This is the markdown version of https://openbrokerapi.com/errors/tradelocker/401-unauthorized, written from the same records as that page.

Risk warning: CFDs and spread bets are complex instruments and come with a high risk of losing money rapidly due to leverage. You can lose money on these products, and each provider publishes its own loss figure under FCA rules. You should consider whether you understand how they work and whether you can afford to take the high risk of losing your money. Automated and API trading can amplify losses through bugs, connectivity failures and runaway orders.

The error, as text you can copy:

```
401 Unauthorized
```

- Kind: API error code
- HTTP status: 401
- API: [TradeLocker API](https://openbrokerapi.com/platforms/tradelocker)
- Status: verified. Source: [public-api.tradelocker.com](https://public-api.tradelocker.com/reference/placeorder.md), checked 2026-10-09.

## What does 401 Unauthorized mean on the TradeLocker API?

TradeLocker lists 401 with the description "Unauthorized" as a response of its /trade routes, including placing, modifying and cancelling orders. The reference gives the status no further description. The same routes are documented as secured with a Bearer token.

## No fix in the source

The vendor's page gives no remedy.

That is all the source says, so this page does not invent a fix. General guidance: [what HTTP 401 means and how other APIs use it](https://openbrokerapi.com/errors/status/401), [the other errors with HTTP 401 recorded for TradeLocker](https://openbrokerapi.com/errors/tradelocker#http-401), the [error lookup](https://openbrokerapi.com/tools/error-lookup) for the exact text of the reply you received.

## More on the TradeLocker API

- [All TradeLocker API error codes](https://openbrokerapi.com/errors/tradelocker)
- [TradeLocker API error codes](https://openbrokerapi.com/errors/tradelocker): 5 decoded, each with what it means, and the fix where the source gives one.
- [TradeLocker API endpoints](https://openbrokerapi.com/platforms/tradelocker/endpoints): 23 documented, each with its method, path, parameters and source.
- [TradeLocker API page](https://openbrokerapi.com/platforms/tradelocker): The full record: access, authentication, limits and the source for each.

## Licence and how to cite

The records behind this page are all rights reserved. This file is the page itself, at its own address, in another format. It is not part of the CC BY 4.0 downloads listed at https://openbrokerapi.com/data. Quote from it with a link to the page.

Cite as: TradeLocker API error: 401 Unauthorized. Broker API Hub, https://openbrokerapi.com/errors/tradelocker/401-unauthorized, newest check 2026-10-09.

Where you rely on a single figure, cite the source and the checked date printed beside it as well. Where this page and a broker's own documentation differ, the documentation wins.
