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.phuriphanvichai 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
- 6 AHS
- 39 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 370 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛