question

Upvotes
Accepted
5 0 0 1

How to use Datastream code (DSCD) to get data in Python API?

I am trying to use API in Python. Is it possible to use datastream code to get data(ISIN, RIC, price...)?

eikon-data-apipythondatastream
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.

1 Answer

Upvotes
Accepted
38.1k 71 35 53

@Ren

You can use the DatastreamDSWS python library to get the data.

The code looks like this.

import DatastreamDSWS as DSWS
ds = DSWS.Datastream(username = username, password = password)
ds.get_data(tickers='906187', fields=['RIC','ISIN','P'], kind=0)

The output is:

1637658706005.png

For more information, please refer to the Getting Started with Python document.


1637658706005.png (11.1 KiB)
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