RD API Intraday Historical Prices

I am using historical_pricing.summaries.Definition RD API function and am trying to get intra-day prices at one minute intervals for a specific date. What should I set for the start and end dates ?

response = historical_pricing.summaries.Definition(

rics_list,

start=start_date_ts,

end=end_date_ts,

fields = fields_list,

interval= historical_pricing.Intervals.ONE_MINUTE).get_data()

resp = response.data.df

Welcome!

It looks like you're new here. Sign in or register to get started.

Best Answer

  • jason.ramchandani01
    Answer ✓

    @navtej.riyait Pls try this:

    rics_list = ['VOD.L','RR.L']
    start_date_ts = '01-05-2024'
    end_date_ts = '04-05-2024'
    fields_list = ['OPEN_PRC','HIGH_1','LOW_1','TRDPRC_1']
    response = historical_pricing.summaries.Definition(rics_list,
                                                       start=start_date_ts,
                                                       end=end_date_ts,
                                                       fields = fields_list,
                                                       interval= historical_pricing.Intervals.ONE_MINUTE).get_data()

    response.data.df

    1716402074562.png

    Is this what you mean? I hope this can help.


Answers

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.