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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
23 0 1 4

COT report using EIkon API

Hi,


I am trying to access the commitment of traders report for a market. The code I have used is follows:


data, err = e.get_data(["SB"], ["TR.COTR"],

{'SDate':str(dt.datetime.now().date()-dt.timedelta(days=14)),'EDate':str(dt.datetime.now().date()) })


The Error message is as follows:

'message': 'The formula must contain at least one field or function.',


I tried changing the TR.COTR with COTR and got the following message:

'message': "Error: Field 'COTR' was not found in response for the instrument 'SB'",


Please let me know how this data can be accessed. Thank you.

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.

1 Answer

Upvotes
Accepted
18k 21 12 20

Hi @varun.divakar

COTR or TR.COTR fields are not a valid field for SB ric code.

You can use Data Item Browser (type in DIB on Eikon to launch this app) to explore what fields are available.


You can also contact the Refinitiv Content Helpdesk at https://my.refinitiv.com/ to get help on the content such as if this field is available? if so, what is the field name.



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