# TradeLocker API error: no_data

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/no-data, 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:

```
no_data
```

- HTTP status: None recorded for this error
- API: [TradeLocker API](https://openbrokerapi.com/platforms/tradelocker)
- Status: verified. Source: [public-api.tradelocker.com](https://public-api.tradelocker.com/reference/gethistory.md), checked 2026-10-09.

## What does no_data mean on the TradeLocker API?

A status in the response of GET /trade/history, not an HTTP error. TradeLocker says the status is set to no_data when there is no data in the requested time period. If there is data in the previous time period, the response also carries the nb property, a UNIX timestamp of the next available bar behind the range.

## How do I fix no_data?

Where the response carries nb, it points to the nearest earlier bar, so a request whose range covers that time can return data. The vendor's page gives no other remedy.

## 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: no_data. Broker API Hub, https://openbrokerapi.com/errors/tradelocker/no-data, 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.
