question

Upvotes
Accepted
1 0 3 3

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.

Hello @jeroen.kouwenberg ,

Thank you for your participation in the forum.

Is the reply below satisfactory in resolving your query?

If yes, please click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

-AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,


AHS


1 Answer

· Write an Answer
Upvotes
Accepted
78.9k 250 52 74

@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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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