Universally Unique Identifier (UUID)
Each iLink 3 session is represented with a unique 64-bit identifier (UUID).
CME Group recommends using the system timestamp, which represents the number of microseconds since epoch (Jan 1, 1970) as the timestamp.
Business messages received from the exchange are recoverable for the sequence number + UUID
combination.
The Session automatically generates the UUID in the following cases:
- A new Session object is created, and the value from the previous run cannot be restored from "the session storage".
- The Reset(Boolean) method is called.
One can pass a UUID value manually to the Session(SessionSettings, Int32, SessionStorageType, UInt64, String) constructor.
To read the UUID value, use the Uuid property.
For example:
Console.WriteLine(session.SessionId.Uuid);
More details about UUID can be found in the Universally Unique Identifier (UUID) article.
Re-Setting UUID
To reset the UUID intra-session on the same trading day, use the Reset(Boolean) method.
Note
The Reset(Boolean) method can be called only when the session is disconnected.