Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eikon

Package Overview
Dependencies
Maintainers
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eikon

Python package for retrieving Eikon data.

  • 1.1.18
  • PyPI
  • Socket score

Maintainers
3

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 the Eikon desktop application and Refinitiv Workspace.

Some examples

Import Eikon and set your App Key

import eikon as ek

ek.set_app_key('8e9bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1b035d')

Get real-time Snapshots

df, err = ek.get_data(
    instruments = ['GOOG.O','MSFT.O', 'FB.O'], 
    fields = ['BID','ASK']
)
display(df)
InstrumentBIDASK
0GOOG.O1350.481352.19
1MSFT.O152.38152.40
2FB.O203.08203.15

Get Real-time Streaming data

streaming_prices = ek.StreamingPrices(
    instruments = ['EUR=', 'GBP=', 'JPY=', 'CAD='], 
    fields = ['DSPLY_NAME', 'BID', 'ASK'],
    on_update = lambda streaming_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 data

df, 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 Employees
0GOOG.OWILMINGTON251 Little Falls Dr98771
1MSFT.OTUMWATER300 Deschutes Way SW Ste 304144000
2FB.OWILMINGTON251 Little Falls Dr35587

Get TimeSeries

ek.get_timeseries('AAPL.O', interval='minute')
AAPL.OHIGHLOWOPENCLOSECOUNTVOLUME
Date
2019-09-12 19:57:00223.2000222.8600223.1800222.96003387.0267258.0
2019-09-12 19:58:00223.1800222.8900222.9700223.17001925.0210251.0
2019-09-12 19:59:00223.2800223.0800223.1700223.15002106.0223191.0
.....................
2019-12-12 14:31:00268.3000267.3200267.8200267.93502974.0724278.0
2019-12-12 14:32:00268.3600267.6000267.9500268.30001721.0193413.0

50000 rows by 6 columns

Get News HeadLines

ek.get_news_headlines('IBM.N', count=100)
versionCreatedtextstoryIdsourceCode
2019-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:ASNEWS
2019-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:DATMTR
2019-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:ECLPCM
2019-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:GNW

100 rows by 4 columns

Get Symbology

ek.get_symbology(['MSFT.O', 'GOOG.O', 'IBM.N'])
CUSIPISINOAPermIDRICSEDOLticker
MSFT.O594918104US59491810454295907168MSFT.ONaNMSFT
GOOG.O02079K107US02079K10795030853586GOOG.ONaNGOOG
IBM.N459200101US45920010144295904307IBM.N2005973IBM

Learning materials

To learn more about the Eikon Data API Python library just connect to the Refinitiv Developer Community. By registering and login to the Refinitiv Developer Community portal you will get free access to a number of learning materials like Quick Start guides, Tutorials, Documentation and much more.

Help and Support

If you have any questions regarding the API usage, please post them on the Eikon Data API Q&A Forum. The Refinitiv Developer Community will be very pleased to help you.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc