Translating Excel request to C# request

Hi,

I have the following query in Excel to pull up net income

=TR("MSFT.O","ZAV(TR.TotalRevenue(Scale=6))","SDate=0 EDate=-199 Period=FQ0 Frq=FQ",B2)

How do I convert that to the equivalent request in my C# code

request = timeSeries.SetupDataRequest("MSFT.O")

.WithView("BID")

.WithAllFields()

.WithInterval(CommonInterval.Quarterly)

.WithNumberOfPoints(10)

.OnDataReceived(DataReceivedCallback)

.CreateAndSend();


Many Thanks in advance,

Robby Stamper

Best Answer

Answers

  • Oops, typo. I am trying to retrieve Total Revenue not Net Income.

  • zoya faberov
    zoya faberov ✭✭✭✭✭

    Hello Robby @Robby.Stamper

    I am able to request what appears to be the same content via Python Eikon Data API this way:

    ek.get_data("MSFT.O",'TR.TotalRevenue(Scale=6, SDate=0, EDate=-199, Period=FQ0, Frq=FQ)')

    Resulting in:

    image

    Does this help?