pydatastream getting RIC from datastream Mnemonic

In Excel's datastream plugin, I have to look up data by datastream mnemonics, and as part of the information available I see the RIC as well. Is there a way to programmatically grab a RIC for a given mnemonic using pydatastream, or another package??

Best Answer

  • Shadab Hussain
    Answer ✓

    Hi @abdiat,

    Yes, it's possible to get RICs for the given mnemonics. Please find the code below:


    import DatastreamDSWS as DSWS
    ds = DSWS.Datastream(username ="*****", password='*****')
    ds.get_data (tickers="S&PCOMP,CBOEVIX,VIX050810C,CVX0206", fields=['RIC'], kind=0)

    Below is the output of the above code:

    1651098681701.png

    Let me know if this is what you are looking for and feel free to reach out if any more queries.

Answers