question

Upvotes
Accepted
12 4 3 5

Time Series Expression for List

Hi

I am using Datastream Web Service in Python and try to retrieve a time series of daily price changes (expression) for a single instrument or multiple instruments over a certain time horizon.

df=ds.get_data(tickers='S:NESN', fields='PCH#(X,1D)', start='-2Y', end='-0D', freq='W')

If I run this request, I receive the following error message:

Error - please check instruments and parameters (time series or static)

What am I doing wrong?

Thanks for your help.

datastream-apidsws-api
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

· Write an Answer
Upvotes
Accepted
1.1k 3 3 3

@FRZH

Please try adding the expression in the [ ] brackets.

ds.get_data(tickers='S:NESN', fields=['PCH#(X,-1M)'], start='-2Y', end='-0D', freq='W')

You can review examples of the requests here .

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.