Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • TRTH /
avatar image
Question by Hubert CANEVET · Jul 21, 2017 at 08:02 AM · tick-history-rest-apirics

GetAllInstruments

Hello everybody,

I saw here :

https://hosted.datascopeapi.reuters.com/RestApi.Help/Context/Operation?ctx=Extractions&ent=InstrumentList&opn=GetAllInstruments

that the method GetAllInstruments, of object InstrumentList, should allow to get the list of instruments associated with an InstrumentList.

So, I typed this code :

instrumentList = new InstrumentList { Name = strInstrumentListName };
List<InstrumentIdentifier> lii = instrumentList.GetAllInstruments();

But, I then obtained this exception at compile time :

Error    CS1061    'InstrumentList' does not contain a definition for 'GetAllInstruments' and no extension method 'GetAllInstruments' accepting a first argument of type 'InstrumentList' could be found (are you missing a using directive or an assembly reference?)

Where is the problem ? Does the documentation refer to another context ? Am I supposed to declare another reference ?

Or is it better to do it like this ?

var fromInstrumentList = 

extractionsContext.InstrumentListOperations.GetAllInstruments(listId);

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 zoya faberov · Jul 21, 2017 at 12:48 PM

Hello @Hubert CANEVET,

In the usage as you describe first, your call is missing the argument, listId:

GetAllInstruments(string listId)

As per our example in .Net REST Example Application, please pass listId

 var instruments = extractionsContext.InstrumentListOperations.GetAllInstruments(instrumentList.ListId);

And if prior to this the list that is referenced has been created, and appended with instruments, this call should return all instruments.

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 Hubert CANEVET · Jul 24, 2017 at 03:28 AM

OK thank you, that is what I see in the example application.

Maybe the documentation can be seen a little ambiguous about that.

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 >
10 People are following this question.

Related Questions

Missing TRTH HistoricalChainResolution Constituents for 0#.AORD

Missing / Deleted RICs?

Using an existing Instrument List brings back no response

RICs for continuation futures

Historical Reference for RIC identifier: All identifier invalid. No Extraction performed

  • 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