Access Chunk records in MATLAB

May I ask how to read the the following data in MATLAB?


timeSeriesRequestSetup = timeSeries.SetupDataRequest('ATGOV1YZ=R');

timeSeriesRequestSetup.WithView('DISC_FACTR');

timeSeriesRequestSetup.WithInterval(ThomsonReuters.Desktop.SDK.DataAccess.TimeSeries.CommonInterval.Daily);

timeSeriesRequestSetup.From(System.DateTime(2021,06,30));

timeSeriesRequestSetup.To(System.DateTime(2021,07,30));

timeSeriesRequestSetup.OnDataReceived(@DataReceivedCallback);

timeSeriesRequestSetup.CreateAndSend();


When DataReceivedCallback is trigged, the following line returns an empty structure.

records = chunk.Records.GetEnumerator();

Best Answer

  • Alex Putkov.1
    Alex Putkov.1 ✭✭✭✭✭
    Answer ✓

    @xuewei.zhu

    How many OnDataReceived events are raised when you execute your code in Matlab, and what's the value of chunk.IsLast property returned into the event handler? Can you also create an event handler for OnStatusUpdated event of ThomsonReuters.Desktop.SDK.DataAccess.TimeSeries.ITimeSeriesDataRequestSetup interface and see if this event is raised and what info you can get out of it about the status of the request?

Answers