question

Upvotes
Accepted
1 0 1 2

Python API: can not request equity indices timeseries in EUR currency

For some equity indices such as "World-Datastream Market", we need timeseries in EUR currency. Using the get_data() function in python it only works in terms of a snapshot:

  • ds.get_data('TOTMKWD',fields=['X~E'], start='2020-01-01', end='2021-10-01', kind=0)

1627912848168.png

whereas it does NOT work in terms of timeseries resulting in error message:

  • ds.get_data('TOTMKWD',fields=['X~E'], start='2020-01-01', end='2021-10-01')

1627912884049.png

How can we still request timeseries for equity indices such as "TOTMKWD" in EUR currency?

pythondatastream-apidsws-apitime-seriesforex
1627912848168.png (10.7 KiB)
1627912884049.png (12.0 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Upvotes
Accepted
56.3k 145 45 65

@jeroen.kouwenberg

You can try this one instead.

ds.get_data('TOTMKWD~E,TOTMKWD(PI)~E', start='2020-01-01', end='2021-10-01')

The output is:

1627958018165.png


1627958018165.png (19.1 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.