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.

@prasad.kambrath

Hi,

Thank you for your participation in the forum.

Are any of the replies below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

Upvotes
Accepted
78.8k 250 52 74

@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
22k 58 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.