SEQUENCE Field

A sequence is a repeating group of fields. A length field encoded as an unsigned int immediately precedes the fields contained in the sequence. The length field is defined in a template with a special attribute of <length, and it can be modified with byteLength attribute. If byteLength= "1", the encoded length field is a single 8-bit unsigned byte. All sequences transmitted to the CBOE Streaming Market use a single 8-bit unsigned length and can be no longer than 255 entries.

Sequences are encoded as follows:

Table 1. Encoded Sequences
Length Group #1 Group #1 Group #1 Group #2 Group #2 Group #2
FieldField #1Field #2...Field #NField #1Field #2...Field #N...

Below is an example sequence with 2 MDEntries elements:

Table 2. Example Sequence with 2 MDEntries Elements
FieldLength in BytesValueComments
NoMDEntries12Length of MDEntries Sequence
MDEntryType1'0'Bid entry
MDEntryPx5FE0000000AFE == -2 exponent, 0000000A == 10 mantissa, value == 0.10
MDEntryType1'1'Ask entry
MDEntryPx4FE00000010FE == -2 exponent, 00000010 == 16 mantissa, value == 0.16