Client Request – 5-Minute Interval Data for RIC SBc2

Client wants to get the python code to get the data to retrieve 5-Minute Interval Data for RIC SBc2. Excel formula is

=@RDP .HistoricalPricing("SBc2","TRDPRC_1","START:01-Jan-2020 END:31-Dec-2024 INTERVAL:PT5M SOURCE:RFV",,"TSREPEAT:NO CH:Fd RH:Timestamp")

But client needs python code which provide 5 minutes interval data in Workspace

Answers

  • @Jeeva_1

    The corresponding Python formula for getting historical data using LD library would be -

    ld.get_history('SBc2', fields=["TRDPRC_1"], start='2020-01-01', end='2024-12-31', interval='5min')
    
    image.png

    The LD Library help and quickstart is available in the developers portal. The API samples are available in the GitHub.