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.

1 Answer

· Write an Answer
Upvotes
Accepted
83.1k 281 53 77

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