Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Eikon COM /
avatar image
Question by Robby Stamper · Jan 27, 2021 at 09:32 PM · eikonapieikon-com-api

Invalid name of display parameter

I'm using the COM API to get market cap for a stock. I want weekly data rather than daily data.

When I make the following call, I can get all of the daily data.

Step3_CreateRData("MSFT.O", "TR.CompanyMarketCap(Scale=6)", "SDate=0 EDate=-100", "RH:Date CH:Fd");

Step4_RequestDex2Data();

But, if I change it to the following in order to get a weekly data series. I get the error "Invalid name of display parameter"

Step3_CreateRData("MSFT.O", "TR.CompanyMarketCap(Scale=6)", "SDate=0 EDate=-100", "FRQ:W RH:Date CH:Fd");

Step4_RequestDex2Data();

Also note that the following works in Excel just fine

=@TR("MSFT.O","TR.CompanyMarketCap","SDate=0 EDate=-100 Frq=W CH=Fd RH=Date",L22)


How do I get weekly market cap data instead of daily?

Many thanks in advance!

Robby


Here is the code for my two methods. It fails on the call to Step4_RequestDex2Data()

public void Step4_RequestDex2Data()

{

//Send the RData request to Dex2

if (MyRData != null)

MyRData.Subscribe(); // FAILS HERE

}

public void Step3_CreateRData(String instrumentsList, String fieldsList, String requestParametersList, String displayParametersList)

{

returnedText = "";

CreateRData(instrumentsList, fieldsList, requestParametersList, displayParametersList);

}


private void CreateRData(string InstrumentIDList,

string FieldList,

string RequestParam,

string DisplayParam)

{

// Create a RData

MyRData = MyDex2Mgr.CreateRData(MyDex2Cookie);

MyRData.OnUpdate += OnUpdate;

// Initialize the RData to request

if (MyRData != null)

{

MyRData.InstrumentIDList = InstrumentIDList;

MyRData.FieldList = FieldList;

MyRData.RequestParam = RequestParam;

MyRData.DisplayParam = DisplayParam;

}

}




People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

2 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Alex Putkov.1 · Jan 27, 2021 at 11:54 PM

FRQ is a request parameter, not a display parameter. You can use

Step3_CreateRData("MSFT.O", "TR.CompanyMarketCap(Scale=6)", "SDate=0 EDate=-100 FRQ:W", "RH:Date CH:Fd");
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Answer by Robby Stamper · Jan 28, 2021 at 02:10 AM

That just makes way too much sense... Clearly a user error! :) Thank you very much!

Robby

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
11 People are following this question.

Related Questions

Excel API: formula builder - retreive data from local server

Trying my question again from different code editor. I can get realtime data from the api using vb but not the non-realtime data. Hoping the form doesn't munge the code from this editor.

Is there a way to enter a formula from the formula builder via the COM API?

Can I download .HSI historical tick data using COM API?

API Code for Eikon

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • FX Venues
    • FX Trading – RFQ Maker
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • Yield Book Analytics
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges