How to export portfolio data from Eikon to Python

Client wants to export portfolio data/file from Eikon to Python

Best Answer

  • zoya faberov
    zoya faberov ✭✭✭✭✭
    Answer ✓

    Hello @MaeAnthea.Diaz ,

    There is no "one API call" approach, please see this previous discussion thread for the detailed information.

    1. One approach could be to request the list of instruments from portfolio using EDAPI python, and, also using EDAPI python, to request any available fields on the lust of instruments.

    For example, I have portfolio SAMPLE_UK_LRGCORE defined:

    port1.gif

    2. Another approach could be:

    1. From Refinitiv Workspace/Eikon, open Portfolio holdings into Excel

    2. From Excel, Save File as CSV-formatted

    3. Lastly, using EDAPI python, read CSV into pandas Dataframe the complete holdings from file:

    port2.gif


    Hope this information helps

Answers