Hello. Am new to Python coding. I want to retrieve EUR= & GBP= for last 3 previous days from today as at 16:30 local time. How do i proceed please. Thank you
@avishen.bablee
Thank you for reaching out to us.
Please confirm the product that you are using.
If you are using the LSEG Workspace, you can use the Codebook app or LSEG Data Library for Python to retrieve historical data.
You can refer to the Access__Get_History.ipynb on Codebook or the LSEG Data Library for Python on GitHub.
For example, the following code retrieves hourly data.
df4 = ld.get_history( universe=['EUR=','GBP='], fields=["BID", "ASK"], interval="1h", start="2025-04-06T00:00:00", end="2025-04-09T16:30:00") df4