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 /
  • EMA /
avatar image
Question by vic · Feb 22, 2018 at 08:58 AM · emaelektron apirefreshtsetokyo stock exchange

How to handle prices that are added in an updateMsg after first added in a refreshMsg?

I am requesting market by price data for Tokyo Stock Exchange. At startup I get a refresh message with a lot of prices added.

But if we start up the service before market opens, then after the refresh is complete a lot of prices are added by update messages which were already added in the refresh message.

For example, in the refresh message we have this price added:

3738 3030 3030 3030 41 78000000A

dataType="FieldList"
FieldList
FieldEntry fid="3427" name="ORDER_PRC" dataType="Real" value="7800.0"
FieldEntry fid="3428" name="ORDER_SIDE" dataType="Enum" value="2"
FieldEntry fid="4356" name="ACC_SIZE" dataType="Real" value="193000"
FieldEntry fid="3430" name="NO_ORD" dataType="UInt" value="521"
FieldEntry fid="6527" name="LV_TIM_MS" dataType="UInt" value="20632459"
FieldEntry fid="6529" name="LV_DATE" dataType="Date" value="15 JAN 2018"
FieldEntry fid="3886" name="ORDER_TONE" dataType="Rmtes" value=" "
FieldEntry fid="14268" name="LV_TIM_NS" dataType="Time" value="05:43:52:459:589:000"
FieldListEnd
MapEntryEnd
MapEntry action="Add" key dataType="Buffer" value=

Then, in the first update message after refresh is complete, 78000000A is added again:

UpdateMsg
streamId="5"
domain="MarketByPrice Domain"
updateTypeNum="0"
seqNum="3"
name="7203.T"
nameType="1"
serviceId="289"
serviceName="DIRECT_FEED"
Payload dataType="Map"
Map
SummaryData dataType="FieldList"
FieldList
FieldEntry fid="17" name="ACTIV_DATE" dataType="Date" value="15 JAN 2018"
FieldEntry fid="4148" name="TIMACT_MS" dataType="UInt" value="82800056"
FieldEntry fid="6516" name="BOOK_STATE" dataType="Enum" value="1"
FieldEntry fid="6517" name="HALT_REASN" dataType="Rmtes" value=" "
FieldEntry fid="6614" name="TRD_STATUS" dataType="Enum" value="1"
FieldEntry fid="14269" name="TIMACT_NS" dataType="Time" value="23:00:00:056:187:000"
FieldListEnd
SummaryDataEnd
MapEntry action="Add" key dataType="Buffer" value=

3738 3030 3030 3030 41 78000000A

dataType="FieldList"
FieldList
FieldEntry fid="3427" name="ORDER_PRC" dataType="Real" value="7800.0"
FieldEntry fid="3428" name="ORDER_SIDE" dataType="Enum" value="2"
FieldEntry fid="4356" name="ACC_SIZE" dataType="Real" value="1900"
FieldEntry fid="3430" name="NO_ORD" dataType="UInt" value="1"
FieldEntry fid="6527" name="LV_TIM_MS" dataType="UInt" value="82800056"
FieldEntry fid="6529" name="LV_DATE" dataType="Date" value="15 JAN 2018"
FieldEntry fid="3886" name="ORDER_TONE" dataType="Rmtes" value=" C"
FieldEntry fid="14268" name="LV_TIM_NS" dataType="Time" value="23:00:00:056:187:000"
FieldListEnd
MapEntryEnd
MapEnd

PayloadEnd
UpdateMsgEnd

Is there some signal I failed to get, which signals that I have to clear the cache?

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.

3 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by nick.zincone.1 · Feb 22, 2018 at 10:48 AM

Hi @vic,

I do notice there is quite a gap in time between your Refresh and Update based on the LV_TIM_MS field. Typically, you receive an action for a price point within your book as either an "Add", "Update" or "Delete". In addition, you may also receive a Market By Price (MBP) status message which does carry an indication that you need to clear your cache. You can refer to the EMA documentation - RDM Usage Guide:

So perhaps you may have either missed/not processed a "Delete" action within a MBP update or the MBP status to clear the cache.

Hope this gives you some direction.

thanks.


ahs.png (33.7 KiB)
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.

avatar image
Answer by vic · Feb 22, 2018 at 11:22 AM

@nick.zincone.1. Thanks for your reply. I do not see a "Delete" action or ClearCache in between the adds. The second add is in the UpdateMsg that comes directly after the RefreshMsg which also adds the price. It seems like the first added price (added in refresh) is a price from a day before. Is there something else we could have missed?

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.

avatar image
REFINITIV
Answer by nick.zincone.1 · Feb 22, 2018 at 11:43 AM

Hi @vic,

Just to confirm, immediately after you received the complete refresh you received the update? When you say you didn't receive a ClearCache, I just want to confirm you are processing MBP status messages. It's quite common that applications will ignore these events. Other than that, the only explanation I have is it may be a data issue - especially if you only saw this once. You would have likely seen multiple instances of similar behavior if you are indeed not processing specific events such as "Delete" and "clearCache".

Although the time has passed, it would be interesting to resubscribe to that price book to see what the book would have looked like after the update.

Other than that, I would suggest to reach out to the support help desk to understand if the behavior you are seeing is a possible data issue.

thanks.

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

Related Questions

Vector on EMA

How can I Avoid making database call in onUpdateMsg but need result to be stored in database.Can I have an example?

Login Domain - Components and Elements in Login responses

How to configure EMA Java to use log4j as the underlying logging backend?​

How do I set GuaranteedOutputBuffer programatically?

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • 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
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges