When working with WebSocket subscriptions to receive execution data, you will come across two fields: timestamp and transactTime. While these fields often hold the same value, there are cases where they differ. In this article, we will explore the meaning of each field and the reasons why it may be different values.
The transactTime field represents the exact time when the transaction described by the ExecutionReport took place. It captures the moment of the original transaction and remains consistent throughout subsequent updates.
The timestamp field reflects the most recent time of update for the execution. It denotes the last time any changes or updates occurred related to the execution data.
Reasons for Discrepancies
The timestamp field may be different from the transactTime field in situations where there are updates or changes to the execution data after the initial transaction occurs.