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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 0 3

how to create eikon.cfg to be in the current working directory?

@anbezhilasokan.frm

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

Upvotes
Accepted
18k 21 12 20

Hi @anbezhilasokan.frm

The sample code you tried to follow, it happens that the code expects you to store "appkey" in eikon.cfg

However, this is not necessary at all.

You can directly call the ek.set_app_key('<a_valid_appkey'>) with the value of your appkey.



ahs.jpg (94.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.

Upvotes
18k 21 12 20

Hi @anbezhilasokan.frm

Eikon Data API does not have eikon.cfg file.

Can you please clarify what you are trying to achieve?

What is this eikon.cfg about?

What sample code you are testing?

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.

Upvotes
1 0 0 3

i run this code i was getting empty . []

ek.set_app_key(cfg['eikon']['app_id']) #set_app_id function being deprecated
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
<ipython-input-4-eb162e0297c3> in <module>
----> 1 ek.set_app_key(cfg['eikon']['app_id']) #set_app_id function being deprecated

~\anaconda3\lib\configparser.py in __getitem__(self, key)
    958     def __getitem__(self, key):
    959         if key != self.default_section and not self.has_section(key):
--> 960             raise KeyError(key)
    961         return self._proxies[key]
    962 
KeyError: 'eikon'

ref1.png (22.0 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.

Upvotes
38.1k 71 35 53

@anbezhilasokan.frm

Please refer to an answer in this thread.

From my testing, the eikon.cfg should have the following entries:

[eikon]
app_id = <appkey>

To generate an application key, please refer to the Eikon Data API Quick Start.



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.

Hello @anbezhilasokan.frm

Please be informed that you need to manually create the file eikon.cfg and put the app_key in it as the format suggested by @jirapongse.phuriphanvichai

Click below to post an Idea Post Idea