Hot to get all available MarketData?

Created at 24 Nov 2019, 12:53
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!
CH

chernish2

Joined 03.11.2019

Hot to get all available MarketData?
24 Nov 2019, 12:53


I want to work with the whole history of the symbol via API. In order to do so I'm doing like this:

var marketHistorySeries = MarketData.GetSeries(Symbol.Name, Chart.TimeFrame);
Print(marketHistorySeries.Close.Count);

For example for CADCHF and D1 marketHistorySeries.Close.Count equals 1466 which means only 4 years back.

But if I scroll the chart it can show me even 1999 year, which means 20 years back!

How can I obtain 20 years back MarketData via API calls?

Thank you in advance!


@chernish2
Replies

PanagiotisCharalampous
25 Nov 2019, 10:06

Hi chernish2,

It is not possible at the moment but new methods will be introduced in 3.7 that will allow you to do that.

Best Regards,

Panagiotis


@PanagiotisCharalampous

chernish2
01 Dec 2019, 10:44

RE:

PanagiotisCharalampous said:

Hi chernish2,

It is not possible at the moment but new methods will be introduced in 3.7 that will allow you to do that.

Best Regards,

Panagiotis

Can I kindly ask when 3.7 will be released?


@chernish2