This set of example programs demonstrates how to connect to TREP or to Refinitiv Data Platform using Websocket API. These examples are built using widely available Websocket frameworks and follow a protocol specification for message constructs. This API is governed by the same Apache 2 open source license as defined in the LICENSE.md file.
The examples demonstrate the following usage:
- Connecting, logging in, and requesting a single item
- Requesting multiple items with a view in one message via a Batch Request
- Posting content to an item
- Logging in via Authentication
- Monitoring connection health via Ping messages
The examples are found under the Applications/Examples folder. Examples are provided in the following languages:
- C#
- Java
- Python
- Perl
- Node.js
- Go
- R
- Ruby
More details for each example are included in a README.md file in its respective folder.
Examples in Python, CSharp and Java that demonstrate consuming content from the Refinitiv Data Platform Real-Time Service (formerly Elektron Data Plaform) are in Applications/Examples/EDP in the respective language folders. More details are included in a README.md file in each example folder.
In the event you would like to contribute to this repository, it is required that you read and sign the following:
Please email a signed and scanned copy to sdkagreement@refinitiv.com. If you require that a signed agreement has to be physically mailed to us, please email the request for a mailing address and we will get back to you on where you can send the signed documents.
Documentation for the TREP WebSocket API and a Question & Answer forum are available at the WebSocket API Section of the Refinitiv Developer Community.
Issues raised via GitHub will be addressed in a best-effort manner. For broad questions regarding Websocket API, please refer to documentation and Q&A forum on Developer Community which is supported by an existing active community of API users.