Broker API HubMenu

TradeLocker API error code

TradeLocker API error: no_data

The error, as text you can copy

no_data
HTTP status
None recorded for this error
API
TradeLocker API

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.

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.

Independent and unofficialpublic-api.tradelocker.comchecked

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.