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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 0 0

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

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythonapidata
icon clock
10 |1500

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

1 Answer

Upvotes
Accepted
6.7k 8 6 7

@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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea