is there a way to get refinery outages (new version) via API ? Thank you in advance

is there a way to get refinery outages (new version) via API ? Thank you in advance

Best Answer

  • @fgashi So this is a two step operations involving both our RDP library and also our Eikon Data API

    import refinitiv.dataplatform as rdp
    import refinitiv.dataplatform.eikon as ek
    import pandas as pd
    rdp.open_desktop_session('YOUR APP KEY HERE')
    ek.set_app_key('YOUR APP KEY HERE')

    dfRic = rdp.search(
        view = rdp.SearchViews.PhysicalAssets,
        filter = "RCSAssetTypeLeaf eq 'oil refinery'",
        top=10000
    )

    df, err = ek.get_data(instruments = dfRic['RIC'].astype(str).values.tolist(),fields = 
                          ["TR.AssetName","TR.AssetLongitude","TR.AssetLatitude","TR.AssetCapacity",
                           "TR.AssetStatus"])

    df

    image

    I hope this can help.