ek.get_timeseries with multiple RICS omits timestamps

Hi,

I obeserved the following problem when querying multiple RICS:

1. Using...

# Load Data
hist_start = datetime(2022,5,3)
hist_end = datetime(2022,5,5)
rics = ['CFI2Z2']
ts = ek.get_timeseries(
    rics, 
    start_date=hist_start,
    end_date=hist_end,
    interval='tick',
    normalize=False,
    raw_output=True
)
ts['timeseriesData'][0]['dataPoints']

Yields...

[['2022-05-03T06:00:12.394Z', 83.3, 1],  ['2022-05-03T06:00:12.46Z', 83.3, 1],  ['2022-05-03T06:00:35.079Z', 83.23, 1],  ['2022-05-03T06:00:35.187Z', 83.23, 1],

But when calling multiple RICS ...

# Load Data
hist_start = datetime(2022,5,3)
hist_end = datetime(2022,5,5)
rics = ['CFI2Z2','CFI2Z3','CFI2Z4', 'USDEUR=R','PTTFYc1','TRAPI2Yc1','DEBYc1','CFI2Z1','SRMCAPI2Mc1']
ts = ek.get_timeseries(
    rics, 
    start_date=hist_start,
    end_date=hist_end,
    interval='tick',
    normalize=False,
    raw_output=True
)
ts['timeseriesData'][0]['dataPoints']

Yields:

[['2022-05-04T10:38:00.522Z', 87.85, 1],  ['2022-05-04T10:38:15.687Z', 87.8, 1],  ['2022-05-04T10:38:57.498Z', 87.85, 1], 


Best Answer

  • umer.nalla
    Answer ✓

    Hi @bjoern.laemmerzahl01

    The Eikon DATA API team have investigated this issue and advised that it is related to the 100,000 data points limit.

    e.g.

    Set start/end date to (2022, 5, 10) / (2022, 5, 12) to get 'tick' values

    'CFI2Z2' => 22.084 lines x 2 (nb of fields [VALUE, VOLUME]) = 44.168 (limit not reached)

    ['CFI2Z2','CFI2Z3','CFI2Z4', 'USDEUR=R','PTTFYc1','DEBYc1', 'SRMCAPI2Mc1']
    => 7142 lines x 7 (nb of RICs) x 2 (nb of fields [VALUE, VOLUME]) = 99.988
    The limit was reached because the first datapoint's date is '2022-05-11T09:36:39.862Z' (the result was cut to approx 100.000 data points)

    Change start/end dates to (2022, 10, 0, 0, 0) / (2022, 10, 9, 0, 0):

    'CFI2Z2' => 2.944 lines x 2 (nb of fields [VALUE, VOLUME]) = 5,888 (limit not reached)

    ['CFI2Z2','CFI2Z3','CFI2Z4', 'USDEUR=R','PTTFYc1','DEBYc1', 'SRMCAPI2Mc1']
    => always 2.944 lines x 7 (nb of RICs) x 2 (nb of fields [VALUE, VOLUME]) = 41,216 (the limit is not reached)

    So you can either reduce the data range and make multiple requests to fulfil your data range requirement OR request each RIC one by one.


Answers