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 /
avatar image
Question by javan.graham · Apr 06, 2020 at 02:03 PM · elektronwebsocketdatetimestamptime

How to retrieve timestamp for update messages via Elektron Websocket API

How can I get a timestamp for the quotes or trades with each update message coming in from the Websocket API? I've requested many fields that should have a time or date for trades and quotes but I don't get anything. This is what my update messages come in looking like:

[
  {
    "DoNotConflate":true,
    "Fields":{
      "ASK_YIELD":0.859,
      "BID_YIELD":0.966
    },
    "ID":750,
    "Key":{
      "Name":"DE159570487=",
      "Service":"ELEKTRON_DD"
    },
    "SeqNumber":31742,
    "Type":"Update",
    "UpdateType":"Unspecified"
  }
]

Is there a way to request a generated timestamp for each of these records, much like how rows in Tick History always have a datetime attached to them? How should I move forward if I must store this with a timestamp? Thank you.

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 · Apr 06, 2020 at 02:52 PM

If you do not filter out the fields when subscribing to the instrument, your application will receive all the fields in the updates. The fields received will however depend on the instrument and the asset class as well as the venue where it is traded. In this instrument, it seems the update message does not have any time field, i.e. venue isn't marking update time.

I do notice that an update message is always preceded by a trade message - which has VALUE_DT1 and VALUE_TS1 fields which seem to be time field. If you need clarification on these fields, please contact content helpdesk at my.refinitv.com.

Since the update messages are conflated by 300 ms, it would siffice to use the message received timestamp as the update timestamp.

Comment
javan.graham

People who like this

1 Show 2 · 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
javan.graham · Apr 06, 2020 at 03:08 PM 0
Share

Thank you very much Gurpreet, VALUE_DT1 and VALUE_TS1 are present in all of my update messages now. I focus primarily on pricing and yields for bonds. I am assuming that these times are UTC:

[
  {
    "DoNotConflate":true,
    "Fields":{
      "ASK_YIELD":0.751,
      "BID_YIELD":0.754,
      "VALUE_DT1":"2020-04-06",
      "VALUE_TS1":"15:02:57"
    },
    "ID":570,
    "Key":{
      "Name":"NL106732957=",
      "Service":"ELEKTRON_DD"
    },
    "SeqNumber":6126,
    "Type":"Update",
    "UpdateType":"Unspecified"
  }
]

I already tried to raise a help desk ticket but they pointed me here, once again thank you.

avatar image
REFINITIV
Gurpreet ♦♦ javan.graham · Apr 06, 2020 at 03:12 PM 0
Share

Yes, the date/time is UTC.

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

Related Questions

Websocket Update Rate

The WebSocket API documentation test environment ignores "ServiceId"

Electron over Cloud and Realtime Data bars

The WebSocket API doesn't always return the State information within a REFRESH

SSL Unknown Protocol Error - Elektron WebSocket API - executing market_price_edpgw_authentication.py

  • 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