fields and tickers with Datastream/Python

RC05
RC05 Newcomer
edited 7:08AM in Datastream

Hi team

Where can I find more information on which tickers and fields to use to pull data via the API?

For example, I want to use the following mnemonics to get the total return time series for equity indices and fixed income indices, and then price return for gold.

However, the equity and fixed income mnemonics do not seem to work with 'RI' or 'PI' or 'P'.

GOLDBLN works with P as seen below, but the others do not work.

Please can you advice. Cheers

assets = ['MSIUKN', 'MSNAMR', 'MSEXUK', 'MSJPAN', # Equities
'IB£GL7T', 'IB£GLTX', 'MLG5LIL', 'IBTRYML', 'IBTRYCL', 'MLG5QIL', # Fixed income
'GOLDBN', 'GOLDBLN' # Alternatives (price return only)

Example.png
Tagged:

Answers

  • Hello @RC05

    There are a number of learning resources available for Datastream. You can start with the DataStream navigator. There is also Quickstart guide and other learning resources which can help with this.

    The documentation also contains the reference material for Datastream content.

    For any specific content question, please raise a ticket at LSEG MyAccount.

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @RC05

    I tested it with the following code and it works fine.

    assets = ['MSIUKN$', 'MSNAMR$', 'MSEXUK$', 'MSJPAN$', # Equities
    'IB£GL7T', 'IB£GLTX', 'MLG5LIL', 'IBTRYML', 'IBTRYCL', 'MLG5QIL',] # Fixed income
    ds.get_data(','.join(assets),fields=['PI'])
    
    image.png