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

#productdatastream-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
80.1k 257 52 75

@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
22.6k 59 14 21

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.

Upvotes
1 0 0 0

I tried the suggested and I get following. Is there anyway we could get currency ISO codes than symbols?



{"DataResponse": {"AdditionalResponses": [{

"Key": "Frequency",
"Value": "D"

}

],

"DataTypeNames": null,

"DataTypeValues": [{"DataType": "X(RI)~GBP",

"SymbolValues": [{"Currency": "£",

"Symbol": "U:URTH",

"Type": 10,

"Value": [

240.71

]

}

]

}

],

"Dates": [

"2023-06-09T00:00:00"

],

"SymbolNames": null,

"Tag": null

},

"Properties": null

}

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.