MS
(See BTP Body Encoding).Market state updates are sent over the Order Entry and Pricefeed connections. The message structures are the same for each.
Byte Offset | Byte Length | Type | Name | Description |
---|---|---|---|---|
0 | 1 | char | marketState | See Market State Code |
1 | 8 | uint64 | ackId | Ack ID |
9 | 8 | uint64 | productId | Product ID |
17 |
Value | Market State |
---|---|
O |
Open |
H |
Halt |
C |
Closed |
There are 3 possible market states: Open, Halt, and Close.
Market State | Matching | New Orders | Cancels | Persist Book |
---|---|---|---|---|
Open | X | X | X | X |
Halt | X | X | ||
Closed |
The only market state update message that is useful when constructing the book is Close
. A Close
destroys the book,
where Open
and Halt
do not alter the book. Multiple Open
updates in a row do not imply any changes either.