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

Upvotes
Accepted
56.1k 145 45 65

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