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
1 0 1 0

MID_SPREAD For CDX HY Index

Hello,

I'm trying to get CDX HY spreads via Python Eikon API with the following request.

cdx_data = ek.get_timeseries('CDXHY5Y23=R', fields='MID_SPREAD.Close', start_date='2014-09-22', end_date='2019-10-20',interval='weekly'). It returns the following result:

DXHY5Y23=RMID_SPREAD.CLOSEDate
2014-10-10NaN2014-10-17NaN2014-10-24NaN


While in excel it works fine and I'm able to receive CDX spreads history using the field MID_SPREAD.Close. Could you please tell me what's wrong with my Python data request?

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.

@emitiukov

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 appropriate reply.

This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

AHS

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

Thanks,

AHS

1 Answer

· Write an Answer
Upvotes
Accepted
78.9k 250 52 74

@emitiukov

The get_timeseries function can return the OPEN, HIGH, LOW, and CLOSE fields, as shown below. It doesn't support MID_SPREAD.Close.

I assume that you get MID_SPREAD.Close from the RHistory excel function. Refer to this thread, the data from the RHistory function may not be available via Python Eikon Data APIs.


1574666157823.png (22.0 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.

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.