Java EMA: Problem subscribing to realtime and delayed ticker at same time
I'm able to subscribe to delayed names like /IBM.N and /SPY.P, but if I try to subscript to SPY.P, I cannot subsequently subscribe to /SPY.P when the user I'm subscribing with isn't permissioned for real-time.
What I'm seeing is that I try to subscribe to "SPY.P", and I get back a NotAuthorized status in onStatusMsg. When I receive that, I call OmmConsumer.unregister(handle) to unregister the SPY.P subscription, and then attempt to subscribe to "/SPY.P".
However, the consumer thinks I'm just trying to subscribe to SPY.P - I get a second NotAuthorized error and msg.getName() is "SPY.P", whereas it should be "/SPY.P".
How can I successfully do this, or do I just have to do something like open up a second consumer for delayed subscriptions?
(I did try creating a second OmmConsumer just for delayed subscriptions, as a workaround, but then the delayed subscription on the second consumer results in a "Received an item event without user specified pointer or stream info" ItemCallbackException.
Looking for any advice on how to handle this.
Thanks,
Shawn
Answers
-
-
@Jirapongse I'm still getting the same error in 1.1.1.E2
0 -
My code may be too simple. Please see the attached file. consumerjava.txt
If I use EMA Java 1.1.1.E2, the output is:
StatusMsg
streamId="5"
domain="MarketPrice Domain"
state="Closed / Suspect / Not entitled / 'Access Denied: User req to IDN for Exch - NYS'"
name="IBM.N"
nameType="1"
serviceId="2115"
serviceName="API_ELEKTRON_EPD_RSSL"
StatusMsgEnd
RefreshMsg
streamId="6"
domain="MarketPrice Domain"
solicited
RefreshComplete
state="Open / Ok / None / 'All is well'"
itemGroup="00 01"
permissionData="03 08 43 40 17 c0"
name="/IBM.N"
nameType="1"
serviceId="2115"
serviceName="API_ELEKTRON_EPD_RSSL"
Payload dataType="FieldList"From the output, it can subscribe to /IBM.N when IBM.N is access denied.
However, if I use the same code with EMA Java 1.1.1.L1, I get this output.
StatusMsg
streamId="5"
domain="MarketPrice Domain"
state="Closed / Suspect / Not entitled / 'Access Denied: User req to IDN for Exch - NYS'"
name="IBM.N"
nameType="1"
serviceId="2115"
serviceName="API_ELEKTRON_EPD_RSSL"
StatusMsgEnd
StatusMsg
streamId="6"
domain="MarketPrice Domain"
state="Closed / Suspect / Not entitled / 'Access Denied: User req to IDN for Exch - NYS'"
name="IBM.N"
nameType="1"
serviceId="2115"
serviceName="API_ELEKTRON_EPD_RSSL"
StatusMsgEndThe subscribed item will always be IBM.N.
Could you please share your code?
0 -
Please kindly update the progress of this issue.
If you still see the problem, please share the code. Therefore, we can use it to replicate the issue.
0 -
Hello @shawn11
If the problem still occurs, please send us your source code as requested by Jirapongse. This will allow us to help you to investigate the problem.
0
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
- 684 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 249 ETA
- 554 WebSocket API
- 37 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
- 275 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
- 643 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
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 192 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛