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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 0 1 2

How do I use the Adfin Library in Python

Is there a Adfin package for Python?

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythonpackages
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

Upvote
Accepted
39.2k 75 11 27

sampleadcalibrateeikondesktopdataapipy.zipI presume you're asking about Adfin Analytics calculation library, right? There's no native Adfin Analytics package for Python, however you can use Adfin Analytics COM library in Python through win32com Python extension.
1. Install win32com Python extension, which you can download from https://sourceforge.net/projects/pywin32/files/pywin32/

2. Generate py files for each COM library you need to use by executing the following commands in Windows Command Prompt:

  • cd C:\Python33\Lib\site-packages\win32com\client
  • py makepy.py "C:\Program Files (x86)\Thomson Reuters\Eikon\EikonDesktopDataAPI.dll"
  • py makepy.py "C:\Program Files (x86)\Thomson Reuters\Eikon\X\Bin\adxfo.dll"

3. Use attached sample script, which demonstrates a basic example of calling AdCalibrate method implemented in Adfin Analytics Functions COM library.

Note that all Eikon COM APIs are 32-bit, hence you can only use them in 32-bit Python.


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