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...)?

Best Answer

  • Jirapongse
    Jirapongse admin
    Answer ✓

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