question

Upvotes
Accepted
7 3 2 5

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

· Write an Answer
Upvotes
Accepted
78.1k 246 52 72

@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.

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.