Upgrade from Eikon -> Workspace. Learn about programming differences.

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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
0 1 2 8

ek.set_app_key when script is run by several users

Hi all,

When same jupyter script is run by several users, all of them with their own app key, is it possible to find a way to don't need to rewrite each personal copy of the script in order to change the app key code associated to this person?

eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-apiapp-key
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

@Nabil Edriss Sánchez

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?

If so please can you click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question.

Thanks,

AHS

Upvotes
Accepted
39.4k 77 11 27

@Nabil Edriss Sánchez
I can't be sure what the purpose of your question was, so consider the following as a general statement, which may or may not be applicable to your case.
The purpose of the application key is to identify the application, not the user. If multiple users run the same script, there's no need to generate an app key for each user. Multiple users can run the same script using the same app key. When you have multiple scripts that are sufficiently different, it is advisory to generate separate key for each script. This way if a user simultaneously runs multiple scripts, and one of them is misbehaving (e.g. exhausting the data retrieval limits by sending too many requests), we can identify which of the scripts is the culprit.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
1 0 0 1

import eikon as ek

f = open(r"C:\Eikon_key.txt", "r")
key =f.readline()
ek.set_app_key(key)

-----------------------------------------

you can put the key into a text file and put the Eikon_key.txt file in the correct path. Eikon_key.txt just contains key. Hope it can help.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
0 1 2 8

Great. Thank you :)

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.