Hi ,
I need to know the ohlc values of one US asset ( e.g. CLF24 ) for 08th december 2023 at IST time 15:30 i.e. need the ohlc values for this specific minute...i have got lots of US assets for which i need these values ..how to do that
Hi ,
I need to know the ohlc values of one US asset ( e.g. CLF24 ) for 08th december 2023 at IST time 15:30 i.e. need the ohlc values for this specific minute...i have got lots of US assets for which i need these values ..how to do that
Hi,
Thank you for your participation in the forum.
Is the reply below satisfactory in answering your question?
If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question.
Otherwise please post again offering further insight into your question.
Thanks,
AHS
Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.
Thanks,
AHS
Hi @peeush ,
You can use get_history function from RD libraries and provide value for intevnal parameter, eg tick to get all quotes within the minute or minute to get minute bars:
import refinitiv.data as rd rd.open_session()
example with tick (please note tick level goes only 3 month back in time):
rd.get_history('CLF24', fields = ['HIGH_1', 'LOW_1', 'OPEN_PRC', 'TRDPRC_1'], start = '2023-12-08 10:00:00', end = '2023-12-08 10:01:00', interval = 'tick')
example with minute:
rd.get_history('CLF24', fields = ['HIGH_1', 'LOW_1', 'OPEN_PRC', 'TRDPRC_1'], start = '2023-12-08 09:59:00', end = '2023-12-08 10:02:00', interval = 'minute')
Please note that the timezone is returned in GMT and you need to convert these for IST separately.
Best regards,
Haykaz