trendbars endpoint is not working - Probably outdated

Created at 25 May 2022, 00:23
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
FX

FXdev

Joined 02.01.2020

trendbars endpoint is not working - Probably outdated
25 May 2022, 00:23


Hello,

It's been a long time since I used the open API.
I was able in the past to retrieve the trendbards using the following endpoint structure:
https://api.spotware.com/connect/tradingaccounts/[ACCOUNT_ID]/symbols/[SYMBOL]/trendbars/h1?from=[FROM_DATE]&to=[TO_DATE]&access_token=[TOKEN]

For some reason, it is no longer working [404]. It seems like I'm outdated.
Any references to the new method?

Thanks in advance :)


@FXdev
Replies

amusleh
25 May 2022, 08:01

Hi,

That's the old version JSON call, we moved all requests to Protobuf, you can find full detail with samples on Open API documentation: cTrader Open API (spotware.github.io)


@amusleh