question

Upvotes
Accepted
3 0 0 3

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 512.0 KiB each and 1.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 512.0 KiB each and 1.0 MiB total.

Upvotes
3 0 0 3
@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 512.0 KiB each and 1.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 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.