.NET API - How to retrieve historical data for RIC<XAUFIXAM=> and <XDRUSD=>

Hello team

I'm using Workspace Desktop .NET API to retrieve historical data.

LSEG Data Library for .NET | Devportal

I need the daily historical data for below 2 RICs:

XAUFIXAM=

XDRUSD=

Could anyone help me with a sample C# scipt code with the 2 RICs above?

Thanks & Regards,

Dan

Best Answer

  • jason.ramchandani01
    Answer ✓

    @dan2025 Thanks for your question - have you seen the following example . You can just replace the VOD.L with the 2 RICs above - assuming you have permission for those RICs.

    // Retrieve Interday Summaries with P1D (1-day interval).  

    response = Summaries.Definition("XAUFIXAM=").Interval(Summaries.Interval.P1D).GetData();

    Let us know how you get on.

Answers