question

Upvotes
Accepted
12 3 1 2

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 5.0 MiB each and 10.0 MiB total.

1 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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea