Skip to main content
SBEschema 36 · market datatypes

Enumerations

OrderUpdateAction

Encoding: uint8

InstrumentUpdateAction

Encoding: uint8

Side

Encoding: uint8

AggressorSide

Encoding: uint8

InstrumentTradingStatus

Encoding: uint8

TradingSessionStatusCode

Applies to Spot and Futures only. US Perps does not expose a global trading session status; it provides the status per instrument (see InstrumentTradingStatus). Encoding: uint8

OrdTypeMD

Encoding: char

Primitive and composite encodings

messageHeader

Composite of: blockLength:uint16, templateId:uint16, schemaId:uint16, version:uint16.

groupSizeEncoding

Composite of: blockLength:uint16, numInGroup:uint16.

InstrumentId

Primitive uint64, length 1, required. Opaque, globally unique instrument identifier assigned by Instrument Registry.

OrderId

Composite of: low:uint64, high:uint64.

TradeId

Composite of: low:uint64, high:uint64.

TimestampNs

Primitive int64, length 1, required. Positive UTC timestamp in nanoseconds since the Unix epoch.

Scale

Primitive uint8, length 1, required. Maximum value 36. Number of supported decimal places.

Decimal

Composite of: mantissa:int64, exponent:int8. exponent ranges from -36 to 0.

Price

Composite of: decimal:ref.

OptionalPrice

Composite of: mantissa:int64, exponent:int8 (optional). Absolute price in the instrument currency. exponent ranges from -36 to 0. Exponent 127 means unavailable (null); ignore the mantissa when it is. Zero is a real value. Used by minPrice, maxPrice, variation and referencePrice.

Quantity

Composite of: decimal:ref.

SymbolEncoding

Composite of: length:uint16, varData:char. length is the number of UTF-8 encoded bytes, up to 128. Used by symbol.

StatusReasonEncoding

Composite of: length:uint16, varData:char. length is the number of UTF-8 encoded bytes, up to 128. An empty value means no reason was supplied.
Kraken constrains these values to the limits above before publishing and does not truncate identifiers.