The user is trying to replicate the financial data displayed on the Financials screen in Workspace using CodeCreator (CODECR)/CodeBook.
Using MAR.OQ as an example, the Financials screen displays multiple quarterly observations, such as Feb 2026, Nov 2025, Aug 2025, etc., whereas the current code returns only Feb 2026.
Current syntax:
Python
ld.get_history(
universe=rics[MAR.OQ],
fields=[
'TR.F.TotRevenue(Period=FQ0,ReportingState=Orig,Curn=USD,FXRate=PeriodEnd,ReportType=Prelim,ConsolBasis=All)'
],
start='2018-01-01',
end='2026-09-01'
)
I used-
import refinitiv.data as rd
rd.open_session()
df = rd.get_data(
universe = ['MAR.OQ'],
fields = ['TR.TotalRevenue'],
parameters = {
'SDate': '2016-01-01',
'EDate': '2026-10-14',
'Frq': 'FY'
}
)
display(df)
The requirement is to retrieve all applicable historical quarterly observations, replicating the following Financials screen settings:
Basis: Consolidated
Period: Quarter
Currency: USD
Source Document: Preliminary
Original vs. Restated: Original
Period Definition: Discrete
Date requirement: The displayed date should represent the date on which the financial numbers were released.
Assistance required: Please advise the correct LSEG Data Library/CodeBook syntax and parameters to replicate this Financials screen output for MAR.OQ and retrieve multiple historical quarterly periods rather than only the latest quarter.
Please help get consolidated syntax for the query.