question

Upvotes
Accepted
38 1 1 3

Commitment of Traders historical data for ICE EUA Futures using refinitiv.data with python api

I would like to get historical data for COT data.

Using the refinitiv.data.get_history function with following parameters

instruments = [
'1ICEEUAIFCITTLNG',
'1ICEEUAIFCITTSHT',
'1ICEEUAIFTTLNG',
'1ICEEUAIFTTSHT',
'1ICEEUAOIFTTLNG',
'1ICEEUAOIFTTSHT',
'1ICEEUACUTTLNG',
'1ICEEUACUTTSHT',
'1ICEEUAOOTTLNG',
'1ICEEUAOOTTSHT',
]

fields = [
'CL_LAST',
'CF_CLOSE',
'CF_NAME',
]
start = '2023-05-15'
end = '2023-05-30'

interval = '1D'


returns an empty dataframe.

The rd.get_data function works perfectly with similar arguments

Is it possible to get historical data for COT data for ICE EUA Futures?

#technologyrdprefinitiv-data-libraries
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.

@YBugnion

Hi,

Thank you for your participation in the forum.

Is the reply below satisfactory in answering your question?

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

1 Answer

· Write an Answer
Upvotes
Accepted
5k 16 2 7

Hi @YBugnion ,


Thank you for your question. The error while requesting these fields suggest that The universe does not support these fields. While trying not to specify the fields (which returns all available) I got PRIMACT_1 and OPEN1. Please see below:



rd.get_history(universe = [
'1ICEEUAIFCITTLNG',
'1ICEEUAIFCITTSHT',
'1ICEEUAIFTTLNG',
'1ICEEUAIFTTSHT',
'1ICEEUAOIFTTLNG',
'1ICEEUAOIFTTSHT',
'1ICEEUACUTTLNG',
'1ICEEUACUTTSHT',
'1ICEEUAOOTTLNG',
'1ICEEUAOOTTSHT',
],

start = '2023-05-15',
end = '2023-05-30',

interval = '1D')



screenshot-2023-05-31-at-202545.png


Hope this helps.


Best regard,

Haykaz


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.

suddenly this code does not work for me. I keep receiving timeout error (refinitiv.data._errors.RDError: Error code -1 | timed out)

Would you please be able to assist?

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.