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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 0 1

Calling the same TR_Field with better parameters?

I am calling the same TR_Field - TR.TotalReturn1Mo, with different dates as parameters but getting the same number returned.

fields = [ek.TR_Field('TR.TotalReturn1Mo',{'SDate': '2018-01-20'}), ek.TR_Field('TR.TotalReturn1Mo',{'SDate': '2018-01-10'})]

df,response = ek.get_data(list_RIC_Codes, fields)

The df response has the same number for both fields - suggesting that the first field is being queried twice.

Is there a problem calling the same TR_Field with different parameters?

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 @james.kennedy

I got the response successfully with different value.

You can use different parameters on the same field.


ahs.png (15.3 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
9.7k 49 38 60

Hi @james.kennedy,

Perhaps the results may be a due to the nature of the instruments and the time frames. Did you try the requests separately? Can you include a small example for us to try?

I did the following and the results came back different, i.e.


ahs.png (8.1 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
1 0 0 1

got it fixed - thanks very much for your help

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.

Click below to post an Idea Post Idea