• Version 1.7.1
Show / Hide Table of Contents

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(bool) method is called.

One can pass a UUID value manually to the Session(SessionSettings, int, SessionStorageType, ulong, string, LogFactory) 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(bool) method.

Note

The Reset(bool) method can be called only when the session is disconnected.

See Also

Restoring Session State.

In this article
Back to top Copyright © Onix Solutions.
Generated by DocFX