Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Elektron /

For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

avatar image
Question by olymp · Jan 22, 2019 at 03:20 AM · elektronrefinitiv-realtimeelektron-sdkweb

Do you have an example to retrieve multiple Rics in a single request using C# Web Api

Hi,

I read on another post that it is possible to retrieve multiple Rics like EUR=, GBP=, JPY= in a single request by using json request.

The post i read about ti https://community.developers.refinitiv.com/questions/31705/python-api-get-timeseries-use-multiple-rics.html

I use C# for accessing Web api, can you give me a example how to get those mutliple Rics in a single request? I also want to get real time prices per milliseconds.

I know that i have to write code to parse the json.

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.

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by wasin.w · Jan 22, 2019 at 03:36 AM

Hello @0c62b574-a087-4b69-8ba8-1f3ad682f116

I am assuming that you are using the ERT in Cloud C# example. You can request a multiple RICs in a single request message with the Batch features. The JSON structure of Batch request message is following:

Example JSON request messages:

{
  "ID": 2,
  "Key": {
    "Name": ["GOOG.O","IBM.N","FB.O"]
  }
}

When the WebSocket server receives a Batch Request, it will respond on the same ID of the Request with a Status message that acknowledges receipt of the Batch by indicating a State object with a "Data":"Ok" and "State":"Closed".

The Batch stream closes because all additional responses are provided on individual streams. The ID values of the resulting streams are assigned sequentially according to the order of the entries in the Batch Request's "Key":{"Name":[...]} array, beginning with the ID of the original Batch Request message + 1. The Batch Response and Item Response tiles in the Context section below highlight this exchange.

Please note that you can find more detail regarding the Elektron WebSocket JSON message structure and reference from Elektron WebSocket API Development Guide page.


batch.png (17.7 KiB)
Comment
nawapoom.lohajarernvanich

People who like this

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

Related Questions

How can I know which legs of a strategy are being bought and sold?

How do i connect to the WEB API?

What is the rule you create guid for news in MRN in Elektron?

StreamState[Open]; DataState[Suspect]; StatusText[Comms Outage]

Why is DIRTY_PRC(field 3316) coming as a separate response and not with ASK, BID etc. Also, why is it not being returned sometimes?

  • 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
  • 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
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges