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
3 2 2 4

Deals MnA screen Eikon API Python returning results randomly

Hi there, I am using the Eikon API to return deals info from the MnA screen, however since yesterday (04-02-20) It's been having an unexpected behaviour. Some times the API is returning the deals with the requested fields, and some other times is returning the same info but missing fields like

"TR.MnASDCDealNumber"

to elaborate a bit more:

Running the same script 5-6 times (over the period of 5 - 10 minutes) to get deals would sometimes get all the data and fields and others would only return some of the fields.

This is the error that is being returned on those fields "{'code': 415, 'col': 1, 'message': 'Unable to collect data for some field(s).', 'row': 0}"

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

Hello @luis22

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

If yes, please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

AHS

Upvotes
Accepted
18.2k 21 13 21

Hi @luis22

Do you think you hit the API limitation described at https://developers.refinitiv.com/eikon-apis/eikon-data-api/docs?content=49692&type=documentation_item ?

I tried to check your account to see if you are a high usage user or not but I could not find Eikon account with the your email address (luis@maxxxxxxxxxx.io)


I also tried to reproduce the issue by running the same API call with you on 2 machines.

more than 10 times in 1 hour (so total is 20++ times, 10++ times on each machine).

I cannot reproduce the issue and I always get the identical data back, 477 rows x 2 columns.



ahs.png (145.9 KiB)
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
18.2k 21 13 21

Hi @luis22

Please share your API call.

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.

Hi! would it be possible to share it as a private message?

Hi @luis22

I was expected a single line API call

e.g. ek.get_data(rics, fields, parameter[if any])

Which it returns different data from several runs.

So I think just a single sample API call which you see the issue, it should be fine posting it here.

If not, please feel free to let me know, I will contact you via email.

Thanks.

Hi,

I keep tracking down the issue and found out that the results become unstable and (sometimes returns all the fields and sometimes return NaN)

the field causing the error is "TR.MnASynopsis" for my expression I am requesting Deals from the MNA universe, if rather requesting sypnosis I only request fields like:

"TR.MnASDCDealNumber", "TR.MNADealId", "TR.MnAAnnDate"

it works fine.

I tried to get the same info through Eikon Excel and it also brings the same error.

ek.get_data(instruments=expression,
                    fields=["TR.MnASynopsis"])
Show more comments

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.
Thanks,

AHS


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.