question

Upvotes
Accepted
3 0 0 2

PyDSWS - get_data() - is there a way to download from earliest until end date given a ticker and field?

Hi,

I'm have a script to download a few ticker with a field. However, not all the tickes have the same start date as some start earlier than others. Is there a way to request for the earliest until the specified end_date using the get_data() or any other api call? I'm using PyDSWS.


Thanks.

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.

Upvotes
Accepted
681 2 2 1

Hi, Unfortunately there isn't away in which the system could determine the earliest history from a list of tickers. The datatype BDATE would need to be run on your list initially to ascertain the start date.

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.

Upvotes
3 0 0 2
@James.Bright1

Is there a full documentation for DataStream Web Service REST APIs parameter for http requests for bypassing the PyDSWS entirely and writing a customized request? Thanks.

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.

Upvotes
681 2 2 1

Hi, You can access the web service directly. More details can be found on the test harness.

http://product.datastream.com/DswsClient/Docs/Default.aspx

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