For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 0 1

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

eikoneikon-data-apipythonworkspaceworkspace-data-apirefinitiv-dataplatform-eikonapidata
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Upvotes
Accepted
7.4k 10 6 8

@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

I hope this can help.


1614964384839.png (234.6 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.