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 /
  • WebSocket API /

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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

avatar image
Question by mark.ringrose1 · Aug 16, 2018 at 05:56 AM · treprdp-apiwebsocketsrrtorkd-api

TRKD Websockets API unresolved reference MarketPriceAuthentication.java (Options addOption())

I am trying one of the sample streaming examples in Java from the TR Dev Portal with TRKD using websockets for streaming data. I seem to be missing a jar file to satisfy the reference to a couple of classes, which I think should be in cli-commons.jar. However, adding this to the build path (in Eclipse) does not help. The lines of source with unresolved references are pasted below. The particular example I am trying to run is MarketPriceAuthentication.java, but the unresolved references apply to all the java examples.

form the Websocket API downloads here:

https://developers.thomsonreuters.com/elektron/websocket-api/downloads

The unresolved references are (in all the Java examples): lines 53-61

options.addOption(Option.builder().longOpt("hostname").hasArg().desc("hostname").build());

options.addOption(Option.builder().longOpt("port").hasArg().desc("port").build()); options.addOption(Option.builder().longOpt("app_id").hasArg().desc("app_id").build()); options.addOption(Option.builder().longOpt("user").hasArg().desc("user").build()); options.addOption(Option.builder().longOpt("position").hasArg().desc("position").build()); options.addOption(Option.builder().longOpt("password").hasArg().desc("password").build()); options.addOption(Option.builder().longOpt("auth_hostname").hasArg().desc("auth_hostname").build()); options.addOption(Option.builder().longOpt("auth_port").hasArg().desc("auth_port").build()); options.addOption(Option.builder().longOpt("help").desc("help").build());

And in MarketPriceAuthentication.java: lines 114, 115

builder.loadTrustMaterial(null, new TrustSelfSignedStrategy());

SSLConnectionSocketFactory sslsf = new SSLConnectionSocketFactory(builder.build(), NoopHostnameVerifier.INSTANCE);

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 Gurpreet · Aug 16, 2018 at 09:45 AM

@mark.ringrose - TRKD is a different product and not related to the Elektron Websocket API, that you are referring to here. I am moving this question into appropriate category.

To compile the Java samples, look at ivy.xml file for a list of dependencies, or use ivy package manager to download and manage it automatically.

In my machine, I have following jar files in the classpath to compile and run:

commons-cli-1.4.jar
commons-logging-1.2.jar
httpclient-4.5.3.jar
httpcore-4.4.6.jar
json-20140107.jar
nv-websocket-client-2.3.jar
Comment

People who like this

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

Related Questions

What's the difference between WebSocket API and TRKD Streaming API that's expected to be available also soon? (from WebSocket API Webinar Nov 29)

What does this Websocket status message mean?

reverse proxy for websocket server

Not getting rate update message from Websocket Api java example after approx 9 minutes (using git web socket example)

Change password

  • 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