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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 1 2

looking for nodeJS example vs python

Hi - for the Streaming API Quickstart for wealth.

Service": "ERT_FD3_LF1"

the example is provided in Python but we need it in node-js, is there any examples somewhere we can find this replica in node-js just as an example to confirm

current version is

$>python market_price_rdpgw_service_discovery.py --user <Machine-ID> --password <Password> --clientid <client_id/AppKey>

I just want to be clear as to how the Node-Js

streaming-datanode-js
icon clock
10 |1500

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

Hello @Wick ,

Your question was moved to Websocket API forums.

hello @Wick ,

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?
If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question.

Thanks,
AHS

@Wick

Hi,

Please be informed that a reply has been verified as correct in answering the question, and marked as such.

Thanks,

AHS

Upvotes
Accepted
32.2k 40 11 20

Hello @Wick ,

Please find articles How to implement Refinitiv Real-Time - Optimized Node.js application with TypeScript part 1 and How to implement Refinitiv Real-Time - Optimized Node.js application with TypeScript part 2,

that discuss the approach to integrating RRTO from NodeJs and go over the example RExample.RRTO.TypeScript.NodeJS.MarketPrice on GitHub.

In my view, as these articles and example use service discovery mechanism, you should be all set with the optimal endpoint selection, and the only modification you will need to make for Wealth, is to replace service name ELEKTRON_DD with ERT_FD3_LF1, while subscribing the instrument set that your userid is permissioned for.

Hope this information helps.

icon clock
10 |1500

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

All 3 links are dead as of 2022-11-02. Too bad

Hello @sp02

Sorry for the inconvenience. There is the Node.js - RTDS connection example available on https://github.com/Refinitiv/websocket-api/tree/master/Applications/Examples/node repository. You can apply the RTO workflow from other RTO WebSocket examples in https://github.com/Refinitiv/websocket-api/tree/master/Applications/Examples/RDP to your node application.


There is the RTO JavaScript web application example on the https://github.com/Refinitiv-API-Samples/Article.WebSocketAPI.Javascript.QuoteWidget example too.

Upvotes
24.6k 54 17 14

Hello @Wick

There is the RTO web application example on the https://github.com/Refinitiv-API-Samples/Article.WebSocketAPI.Javascript.QuoteWidget example too.

Please note that the steps and flows of the RTO application for each technology (Python, Node.js, C#, etc.) are the same. You can use the same application logic from the Python example in Node.js too.

icon clock
10 |1500

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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