price.streams / Web App / react.js
Hi, I have a few questions regarding codebook?
Question 1: I am now on a trial of Workspace, and I am trying to open a pricing.sream using your kernels. The pricing.streams work for FX, but when I put in an Equity I get an NA. Any idea why?
Question 2: We are developing an internal web app, this web app collates data collected by analysts, the web app is made in react.js. If we need to get realtime pricing for equities we have in our universe / web app, how can we do it? Can we call the API directly from the web app and how?
Regards,
Best Answer
-
Hello @ajaber
Thank you for contacting us, please see the answers below.
Question 1: I am now on a trial of Workspace, and I am trying to open pricing.streams using your kernels. The pricing.streams work for FX, but when I put in an Equity I get an NA. Any idea why?Answer:
The data "NA" issue can happen for various reasons. Can you share your snippet code, the item name (or RIC name), and the screenshot when the problem occurs?
Question 2: We are developing an internal web app, this web app collates data collected by analysts, the web app is made in react.js. If we need to get realtime pricing for equities we have in our universe / web app, how can we do it? Can we call the API directly from the web app and how?
Answer:
If you want to get real-time streaming data for the web application, there are two suggested APIs as follows:
The first one is the Refinitiv Data (RD) Library for TypeScript which is an ease-of-use API defining a set of uniform interfaces providing the developer access to the Refinitiv Data Platform (RDP) in TypeScript language. If you are using the Codebook, you are using its cousin API, Refinitiv Data (RD) Library for Python. You can find more detail about the RD Library - TypeScript from the following resources:
- RD Library - TypeScript product page
- RD Library - TypeScript on the NPM page
- RD Library - TypeScript examples page
- Web Application allowing to find Option RICs example, this example uses RD Library- TypeScript (in the backend) with React.js
Note: The RD Library TypeScript is still in the beta phase.
The second one is Real-Time WebSocket API (aka WebSocket API) which is the core WebSocket protocol and specification to connect to the Refinitiv Real-Time (deployed RTDS or Cloud - RTO, the streaming service of RDP). It is a bit low-level but supports various programming languages that support WebSocket and JSON message format. You can find more detail about the WebSocket API from the following resources:
- WebSocket API product page
- WebSocket API step-by-step tutorials
- WebSocket API quickstart page
- WebSocket API examples page (note: The examples in the RDP folder are the cloud connection examples)
- WebSocket API with TypeScript for RTDS example, this example uses TypeScript to connect to the deployed RTDS server via the WebSocket API
- Websocket API for Pricing Streaming and Real-Time Service with TypeScript Example, this example uses JavaScript with Angular to connect with deployed RTDS or cloud RTO/RDP.
Hope this helps.
0
Answers
-
Thanks Wasin,
On Question 1: Attached is a small screen capture of whats going on.
On Question 2: I will check and get back to you.
0 -
Hello @ajaber
The code looks fine to me. It may be related to the permission issue, could you please try the following code instead?
rd.get_data(['EUR=', '/VOD.L'])
The "/VOD.L" is a delayed RIC. If you can get data, it means your account does not have permission to subscribe to that RIC. I recommend you contact your Refinitiv representative/Account manager to verify your permission.
Alternatively, you may try to enable the RD Library Python log file. Please see more detail in the "Troubleshooting" section of the RD Library - Getting Started with Python page.In the codebook, the refinitiv-data.config.json file is available at __RefinitivDataLibrary/ ("/home/jovyan/__RefinitivDataLibrary" in Jupyter term). You can right-click on the file and choose "Open with Editor" to edit the file.
Once you have enabled the log, you need to restart the Codebook's Jupyter kernel by clicking on "Kernel" --> "Shutdown all kernels"
Then, reopen the notebook file in the codebook.
0 -
Hi @ajaber,
I would like to point out that the data retrieved from Workspace using API etc, is licensed to the Workspace named user only. If you are developing a web app, which could be used by other individuals, it would violate the Workspace contract. We offer other RESTful API's like Refinitiv Data Platform, for those purposes.
1 -
Thank you, this is now clear. Yes delayed quotes did work. We will continue to test using this.0
-
@wasin.w I'm looking for something similar to this, but using reactjs instead for the front-end UI.
Any thoughts? Do you have something in place already?
https://github.com/Refinitiv-API-Samples/Example.RDPLibrary.DotNet.RdpRealTimePricing
0 -
Hello @ajaber
Thank you for reaching out to me. I am afraid we do not have many code examples that use ReactJS. The projects are as follows:
Both repositories use the Refinitiv Data Library for TypeScript.
The https://github.com/Refinitiv-API-Samples/Example.RDPLibrary.DotNet.RdpRealTimePricing projects use the "non-strategic" RDP Library - .NET. If you are looking for the .NET ease-of-use library, there is the Refinitiv Data Library for .NET library and the examples are available on GitHub too.
Please note that the Refinitiv Data Library (.NET, Python, or TypeScript) is the ease-of-use API that builds on top of the RESTful API Refinitiv Data Platform (RDP) APIs and WebSocket API (for Streaming), so you can use any programming languages, technologies that support HTTP REST, JSON, and WebSocket with RDP and WebSocket APIs.
0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛