OnixS C++ B3 BOE Binary Order Entry  1.2.0
API Documentation
Session Initialization and Binding

The Handler supports the following Initialization and Binding operations.

Beginning of Day Initialization and Binding

"Beginning of Day initialization and Binding" takes place during the very first connection establishment for the day.

B3 will internally reset its inbound and outbound sequence numbers to 1 at the start of each trading session (day). The customer should also reset their sequence numbers in both directions before negotiating and establishing a FIXP session at the beginning of the day.

To reset the inbound and outbound sequence numbers to 1 as well as to generate a unique Session Version Identification (sessionVerId), use the following sequence of calls:

if (session.negotiated())
session.reset();
session.connect(CounterpartyHost, CounterpartyPort);

Intra-day Binding (Binding without Initialization)

"Intra-day Binding" takes place when the session is connected again after a successful Beginning of Day Initialization and Binding. In this case, the same Session Version Identification (sessionVerId) is used, and the sequence number series is continued from the previous connection.

For example:

// "Beginning of Day Initialization and Binding".
// ...
session.disconnect();
assert(session.negotiated());
session.connect(CounterpartyHost, CounterpartyPort);
See also
Message Sequence Numbers
Session Storage
Session Version Identification (sessionVerId)