For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
5 0 0 1

How to use RIC or ISIN to get the datastream code (DSCD) in Python API?

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

Upvotes
Accepted
38.1k 71 35 53

@Ren

I assume that you are using the Python Datastream Webservice library.

You can use RIC by enclosing it with the angle brackets <>.

The code looks like this.

ds.get_data(tickers='US4592001014,<GOOG.O>', fields=['DSCD','MNEM'], kind=0)

The output is:

1637902333863.png


1637902333863.png (14.3 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.

Hi @Jirapongse

How about other libraries? Only this library can get DSCD?

@Ren

Do you mean other APIs, such as Eikon Data API?

I don't think that Eikon Data API can return the datastream code.

@Jirapongse I see. I also know there is one more library called "refinitiv dataplatform". I'm a little confused. What's the difference between these three libraries?

Upvotes
38.1k 71 35 53

@Ren

These APIs can be used to retrieve financial data.

Eikon Data API retrieves data through Eikon. It can be used to retrieve the data, such as Fundamental and Reference Data, Pricing Data, Historical Data, Symbology, News, etc. Typically, Eikon Data API supports RICs but you can also use other instrument types, such as ISIN, SEDOL, CUSIP, and PermID.

Datastream API can run on any machine that can connect to the Internet. It can be used to retrieve the data, such as Fundamental and Reference Data, Pricing Data, Historical Data, Symbology, etc. However, the fields or data types are different from Eikon. It supports several instrument types, such as RIC, Datastream Code, Datastream Mnemonic, and ISIN.

Refinitiv Data Platform provides simple web-based API access to a broad range of content, such as client file store, ESG, Historical Pricing, Instrument Pricing Analytics, News, Search, Symbology, etc. You can use it on any machine that can connect to the Internet.

All these APIs are available in Codebook.

For more information, please refer to the following pages:

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.

@Jirapongse Thank you very much!

Click below to post an Idea Post Idea