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
66 3 5 7

EIKON API just hangs and nothing happens

Hi Team, One of our users experiencing following issue with Eikon API - iibrary(eikonapir). He says that when he runs the api, it just hangs without any error messages, etc. Also no issues when running in his colleagues pc. Looks like it is the user's pc or R package issue, but what else can cause these types of idiosyncratic problems? Your input will be highly appreciated. Thanks!

eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-api
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.

Upvote
Accepted
78.6k 248 52 74

@bob.kim

First, we need to verify if this is a problem in the R environment or eikonapir module.

The client can run the below code with the httr module to get data from Eikon.

library(httr)
APP_KEY <- "<api_key>"
URL <- "http://localhost:9000/api/v1/data"
Body <- '{
        "Entity": {
            "E": "DataGrid",
            "W": {
                "fields": [
                    {
                        "name": "CF_BID"
                    }
                ],
                "instruments": [
                    "AAPL.O"
                ]
            }
        }
    }'
Response <- httr::POST(URL,
                 add_headers("x-tr-applicationid" = APP_KEY),
                 content_type_json(),
                 body = Body)
data <- httr::content(Response, "parsed", "application/json", encoding="UTF-8")

If this code doesn't work, it could be a problem in the client's environment, not in eikonapir.

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.

Upvote
18.2k 21 13 21

Hi @bob.kim

The eikonapir is a community contribute package.

Please redirect the user to post their questions to the contributor (I believe it is on Github).

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.