question

Upvotes
Accepted
1 0 0 0

How to get COM_BASIS.Value and MID_BASIS.Value in python using get_data

Good afternoon,

I am looking to translate excel formulas to python using 'get_data()' and I am looking for the following two excel formula's.


@RHistory("SM-BRZPAR-A1";"COM_BASIS.Timestamp;'SM-FOBUSG-C1'!A1";"NBROWS:30001 INTERVAL:1D";;"TSREPEAT:NO CH:Fd";B1)

=@RHistory("SM-FOBUSG-C1";"MID_BASIS.Timestamp;MID_BASIS.Value";"NBROWS:30001 INTERVAL:1D";;"TSREPEAT:NO CH:Fd";B1)

I there a way to retrieve this information

eikoneikon-data-apipythonpython 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.

hi @snoep

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?
If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar 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.8k 250 52 74

@snoep

You can use the Refinitiv Data Platform library to retrieve this information.

import refinitiv.dataplatform as rdp
rdp.open_desktop_session('<app key>')
df = rdp.get_historical_price_summaries('SM-FOBUSG-C1')

The output is:

1646014490094.png



1646014490094.png (15.1 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.