like "ld.get_data"
Hi @rice ,
Can you try this?
import lseg.data as ld ld.open_session() ld.get_history("USDXAU=R")
This is using get_history() function, its example can be found in Example.DataLibrary.Python/Examples/1-Access/EX-1.01.02-GetHistory.ipynb at lseg-data-examples · LSEG-API-Samples/Example.DataLibrary.Python
For the get_data() function, its example is at Example.DataLibrary.Python/Examples/1-Access/EX-1.01.01-GetData.ipynb at lseg-data-examples · LSEG-API-Samples/Example.DataLibrary.Python
The Data Item Browser tool can be used to find the field's definition and search for the fields for get_data() function, more detail can be found in this tutorial video Data Item Browser | Devportal
Plus, the search bar in LSEG Workspace application can be used to search for instruments you're looking for, as below
Thank you for your help. I searched for XAUUSD and found both "USDXAU=R" and "XAUUSD=AU", but their prices differ significantly. May I ask why this is the case?
According to the search result in the Workspace search bar
For more information regarding the content in LSEG data platform, please raise a query to helpdesk viahttps://support.lseg.com/s/ , the helpdesk will contact content team and get back to you shortly.
@rice
According to my knowledge:
However, please contact the helpdesk support team directly via LSEG Support to confirm this.
Thank you very much!!