Package: eikon
The Eikon Data API for Python allows your Python applications to access data
directly from Eikon or Refinitv Workspace, powering in-house or thirdparty
desktop apps with Refinitiv data. It provides seamless workflow with the same
data across all applications running on the desktop. It leverages Eikon data
and entitlements to simplify market data management and reporting.
The Eikon Data API for Python is a software library that works in conjunction
with theEikondesktop application andRefinitiv Workspace.Some examplesImport Eikon and set your App Keyimporteikonasekek.set_app_key('8e9bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1b035d')Get real-time Snapshotsdf,err=ek.get_data(instruments=['GOOG.O','MSFT.O','FB.O'],fields=['BID','ASK'])display(df)InstrumentBIDASK0GOOG.O1350.481352.191MSFT.O152.38152.402FB.O203.08203.15Get Real-time Streaming datastreaming_prices=ek.StreamingPrices(instruments=['EUR=','GBP=','JPY=','CAD='],fields=['DSPLY_NAME','BID','ASK'],on_update=lambdastreaming_price,instrument_name,fields:print("Update received for{}:{}".format(instrument_name,fields)))streaming_prices.open()Output:<StreamState.Open: 3>

Update received for JPY=: {'DSPLY_NAME': 'BARCLAYS     LON', 'BID': 109.59, 'ASK': 109.62}
Update received for GBP=: {'DSPLY_NAME': 'ASANPACIFIBK MOW', 'BID': 1.341, 'ASK': 1.3411}
Update received for EUR=: {'DSPLY_NAME': 'UBS          ZUR', 'BID': 1.117, 'ASK': 1.1174}
Update received for CAD=: {'DSPLY_NAME': 'HSBC         LON', 'BID': 1.3165, 'ASK': 1.3167}
Update received for JPY=: {'DSPLY_NAME': 'ASANPACIFIBK MOW', 'BID': 109.59, 'ASK': 109.61}
Update received for GBP=: {'DSPLY_NAME': 'INTERPROMBAN MOW', 'BID': 1.341, 'ASK': 1.3412}
Update received for EUR=: {'DSPLY_NAME': 'RBS          LON', 'BID': 1.117, 'ASK': 1.1174}
Update received for CAD=: {'DSPLY_NAME': 'CIBC         TOR', 'BID': 1.316, 'ASK': 1.3164}
Update received for JPY=: {'DSPLY_NAME': 'BARCLAYS     LON', 'BID': 109.59, 'ASK': 109.62}
Update received for GBP=: {'DSPLY_NAME': 'INTERPROMBAN MOW', 'BID': 1.341, 'ASK': 1.3413}
Update received for EUR=: {'DSPLY_NAME': 'BARCLAYS     LON', 'BID': 1.117, 'ASK': 1.1174}
Update received for CAD=: {'DSPLY_NAME': 'CIBC         TOR', 'BID': 1.316, 'ASK': 1.3164}
Update received for JPY=: {'DSPLY_NAME': 'ASANPACIFIBK MOW', 'BID': 109.59, 'ASK': 109.61}
Update received for GBP=: {'DSPLY_NAME': 'BARCLAYS     LON', 'BID': 1.341, 'ASK': 1.3414}Get Fundamental & Reference datadf,err=ek.get_data(instruments=['GOOG.O','MSFT.O','FB.O'],fields=['TR.LegalAddressCity','TR.LegalAddressLine1','TR.Employees'])display(df)InstrumentLegal Address CityLegal Address Line 1Full-Time Employees0GOOG.OWILMINGTON251 Little Falls Dr987711MSFT.OTUMWATER300 Deschutes Way SW Ste 3041440002FB.OWILMINGTON251 Little Falls Dr35587Get TimeSeriesek.get_timeseries('AAPL.O',interval='minute')AAPL.OHIGHLOWOPENCLOSECOUNTVOLUMEDate2019-09-12 19:57:00223.2000222.8600223.1800222.96003387.0267258.02019-09-12 19:58:00223.1800222.8900222.9700223.17001925.0210251.02019-09-12 19:59:00223.2800223.0800223.1700223.15002106.0223191.0.....................2019-12-12 14:31:00268.3000267.3200267.8200267.93502974.0724278.02019-12-12 14:32:00268.3600267.6000267.9500268.30001721.0193413.050000 rows by 6 columnsGet News HeadLinesek.get_news_headlines('IBM.N',count=100)versionCreatedtextstoryIdsourceCode2019-12-12 12:45:10.9582019-12-12 12:45:10.958IBM India calls for balance between protecting...urn:newsml:reuters.com:20191212:nNRAafsi86:1NS:ASNEWS2019-12-12 12:03:54.0562019-12-12 12:03:54.056Red Hat announces renewal of FIPS 140-2 securi...urn:newsml:reuters.com:20191212:nNRAafs2g9:1NS:DATMTR2019-12-12 08:07:44.7532019-12-12 08:07:44.753Engineer forever changed retail with creation ...urn:newsml:reuters.com:20191212:nNRAafpj8v:1NS:GLOBML...............2019-12-03 16:18:50.5322019-12-03 16:18:50.532United States : IBM Watson Health Demonstrates...urn:newsml:reuters.com:20191203:nNRAad1a5r:1NS:ECLPCM2019-12-03 13:00:10.6422019-12-03 13:00:10.642Nozomi Networks Works with IBM to Secure Indus...urn:newsml:reuters.com:20191203:nGNX8Yr8Hy:1NS:GNW100 rows by 4 columnsGet Symbologyek.get_symbology(['MSFT.O','GOOG.O','IBM.N'])CUSIPISINOAPermIDRICSEDOLtickerMSFT.O594918104US59491810454295907168MSFT.ONaNMSFTGOOG.O02079K107US02079K10795030853586GOOG.ONaNGOOGIBM.N459200101US45920010144295904307IBM.N2005973IBMLearning materialsTo learn more about the Eikon Data API Python library just connect to the Refinitiv Developer Community. Byregisteringandloginto the Refinitiv Developer Community portal you will get free access to a number of learning materials likeQuick Start guides,Tutorials,Documentationand much more.Help and SupportIf you have any questions regarding the API usage, please post them on theEikon Data API Q&A Forum. The Refinitiv Developer Community will be very pleased to help you.