MarketDataItemSub, MarketDataSubscriberInterestSpec and MarketDataSubscriber class

Best Answer
-
Hello @Catherine Wong
MarketDataItemSub,MarketDataSubscriber and
MarketDataSubscriberInterestSpec class are used in RFA Market Data Consumer
application(SSL connection which default port is 8101).The MarketDataItemSub class represents a subscription for a
single Market Data Item specified by item name(RIC) to request Market Data
Events i.e. data of the RIC. For the class details and its methods, please
refer to <RFA Java
Package>\Legacy\Docs\refman\rfalegacy_java\com\reuters\rfa\session\MarketDataItemSub.html.The MarketDataSubscriberInterestSpec interface represents an
interest in receiving events e.g. Service Events or Connection Events which are
not related to Market Data Events. For the class details and its methods,
please refer to <RFA Java
Package>\Legacy\Docs\refman\rfalegacy_java\com\reuters\rfa\session\MarketDataSubscriberInterestSpec.htmlThe
MarketDataSubscriber class provides a proxy to make market data subscriptions
for a MarketDataItemSub or register for a MarketDataSubscriberInterestSpec. For
the class details and its methods, please refer to <RFA Java
Package>\Legacy\Docs\refman\rfalegacy_java\com\reuters\rfa\session\MarketDataSubscriber.htmlFor example:
- To monitor the service(s) and the
connection, the application registers for Service Events and Connection
Events as an example source code shown below:
//Create a MarketDataSubscriber event source using the Session reference
//and calls the createEventSource() method with EventSource.MARKET_DATA_SUBSCRBER type
MarketDataSubscriber _marketDataSubscriber =(MarketDataSubscriber)_session.createEventSource(EventSource.MARKET_DATA_SUBSCRIBER,"myMarketDataSubscriber");
//Create MarketDataSubscriberInterestSpec and
//set which the application interests i.e. setMarketDataSvcInterest(true) to receive Service Events
//setConnectionInterest(true) to receive Connection Events
MarketDataSubscriberInterestSpec marketDataSubscriberInterestSpec = new MarketDataSubscriberInterestSpec();
marketDataSubscriberInterestSpec.setMarketDataSvcInterest(true);
marketDataSubscriberInterestSpec.setConnectionInterest(true);
//register for MarketDataSubscriberInterestSpec
Handle _mdsClientHandle = _marketDataSubscriber.registerClient(_eventQueue,marketDataSubscriberInterestSpec,myClient, null);- To get data of any item/RIC, the
application makes market data subscriptions using MarketDataSubscriber
instance. Anyway, MarketDataSubscriber instance can be reused as an
example source code below:
//create MarketDataItemSub
MarketDataItemSub marketDataItemSub = new MarketDataItemSub();
//itemName is the RIC e.g. TRI.N
marketDataItemSub.setItemName(itemName);
//set service that the application requests data from
marketDataItemSub.setServiceName(_serviceName);
//use _marketDataSubscriber which has been created in the source code of the first bullet to make market data subscriptions
_marketDataSubscriber.subscribe(_eventQueue, marketDataItemSub, myClient, null);Please refer to MDSubDemo application which demonstrates how to
use these classes. The application is in <RFA Java
Package>\Legacy\Examples\com\reuters\rfa\legacyexample\session\mdsub\For details of developing RFA Market Data applications, please
refer to RFAJ_DeveloperGuide.pdf in <RFA Java Package>\Legacy\DocsNote: the latest RFA version providing these classes and
theirs documents are 7.6.1.L2 which can be downloaded at RFA Java Downloads
Page. RFA version 8.x or higher does not support MarketData interface using these classes so the classes and their documents have been removed from the
packages.0 - To monitor the service(s) and the
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 688 Datastream
- 1.4K DSS
- 625 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 557 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 276 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 695 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 105 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 92 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛