The RI price for ISMVUS.L is getting an invalid item in Matlab or Python

Hi Team,

I'm posting this query on client's behalf and below is his verbatim.

"I have a question regarding datastream API's I can pull RI price for ISMVUS.L using the excel addon but when using matlab or python its an invalid item? Does it not all pull from the same database though? It's not a code issue. Everything else works fine.

ds.get_data(tickers='ISMVUS.L', fields='RI', kind=0)

But thats a simple arguemnt there that is failing with this ticker with and without the .L"


I instructed the client to use the mnemonic MVUS instead on the argument, as ISMVUS.L is an Eikon ticker, and it worked after restaring the kernal. Also, the argument and "RI" are for Datastream. His question now that needs to be addressed is why does the original ticker work on excel and not on python on the datastream API? Surely consistency is preferred?

Best Answer

  • Jirapongse
    Answer ✓

    @johnchristopher.clemens

    In DatastreamWS, RIC must be enclosed with an angle bracket (<>). The fields must be a list.

    The code looks like the following.

    ds.get_data(tickers='<ISMVUS.L>', fields=['RI'], kind=0) 

    The output is:

    1625019951101.png

Answers