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 samara · Jul 17, 2017 at 09:52 AM · search

Search multiple RICS

I am trying to search multiple Instruments using the example given by Reuters.they have given example of three instruments if i mention 4 RICS and % RICS it is giving bad request.can someone explain how this works?

Reuters given the below code and iit is working with 4 RICS

put("Identifier", "US10YT=RRPS,JPY=,IBM.N, INVALID.RIC")

if i give the identifier string length bigeer than the above it is giving bad request error.can someone let me know how the alter the string length here

below is the code used to serch the RICS

public void searchByRICRequest() { try { HttpPost httppost = new HttpPost(urlHost + "/Search/InstrumentSearch"); httppost.addHeader("content-type", "application/json;odata.metadata=minimal"); httppost.addHeader("Authorization", "Token " + sessionToken); JSONObject searchJSONObject = new JSONObject() .put("SearchRequest", new JSONObject() .put("IdentifierType", "Ric") //.put("Identifier", "US10YT=RRPS") .put("Identifier", "US10YT=RRPS,JPY=,IBM.N, INVALID.RIC") .put("InstrumentTypeGroups", new JSONArray() .put("CollatetizedMortgageObligations") .put("Equities") .put("FuturesAndOptions") .put("GovCorp") .put("MortgageBackedSecurities") .put("Money") .put("Municipals") .put("Funds")) .put("PreferredIdentifierType", "Ric"));

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 veerapath.rungruengrayubkul · Jul 19, 2017 at 02:14 AM

@samara

I have tried the code with more instrument added and received a Bad Request error. Once I use the same request message in Postman, the response's body contains the following error. This should be the limitation of the identifier length. You may need to separate the Search request if the length exceed 50 characters.

{
    "error": {
        "message": "Validation Error:\r\n\r\nIdentifier can not exceed 50 characters"
    }
}
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 satish.shioshankar.gaidhane · Jul 26, 2017 at 07:15 AM

Anyone got answer to this? we are struggling on how to search multiple RICs

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

TRTH ric search gov bonds

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • 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
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • 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
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges