question

Upvotes
Accepted
1 0 0 0

Can you please help to find out the API end points I can use to extract prices via DataStream ? The data type or attribute name is X(RI)~GBP

datastream-api#product
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
62k 173 45 65

@prasad.kambrath

You can try the DatastreamWS Test REST Service.

First, use the "Get Token" service method to get a token, and then use the "Get Data" service method with the retrieved token to get the data.

1679371592743.png

The request message looks like this:

1679371723008.png

Otherwise, you can use the provided DSWS libraries to retrieve the data. The Python sample code looks like this:

df = ds.get_data(tickers='VOD, U:IBM',fields=['X(RI)~GBP'],kind=1,start='-10D')

1679371592743.png (66.3 KiB)
1679371723008.png (30.3 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.

Upvote
18.4k 50 13 19

Hi @prasad.kambrath,

Please check out the DSWS landing page on the developers portal. You can start by using the quickstart and move on the tutorials of your choice.

The DSWS is a Restful API, but you can also use the DSWS python package, which takes care of the token management and API endpoint for you.

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.