How to get a historical data time series?

Options

Hi,

I am trying to retrieve historical exchange rate. I am using the following example:

1626870673249.png


With it, I am able to get just one exchange rate for a single date, but I cannot get a timeseries or an array. How could it be done?


Thank you

Best Answer

  • Unknown
    Answer ✓

    Hi @YERAY SOSA ALONSO

    That specific endpoint is designed to retrieve a single record for multiple instruments. If you want to retrieve a time series, you will need to use the /data/historical-pricing/v1/views/interday-summaries/{universe} endpoint. The current design of this endpoint only supports a single instrument so you will have to call it multiple times for the list of instruments you are interested in.