question

Upvotes
Accepted
7 1 2 3

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

1 Answer

Upvotes
Accepted
45.2k 103 43 60

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