This set of example programs demonstrates how to connect to TREP using the Websocket API, this is part of the Elektron SDK but offered here in a separate repository because it supports a wider array of languages and technologies and can be used in other contexts. This 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
- Swift (iOS)
- Java (Android)
- R
- Ruby
More details for each example are included in a README.md file in its respective folder.
Examples in Python and Java that demonstrate consuming content from the Elektron Real-Time Service are in Applications/Examples/EDP/python
and Applications/Examples/EDP/java
. 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@thomsonreuters.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 Thomson Reuters 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.