fix-sbe
Theme
Text size
GitHub Menu

LinkML schema

FIX Simple Binary Encoding (SBE)

A LinkML model of FIX Simple Binary Encoding, a standard from the FIX Trading Community for encoding messages in binary. It describes SBE message schemas: encodings, message templates, fields, groups and variable-length data. The two editions differ on the wire and in their XML, so each has a module of its own.

Schema file: fix_sbe.yaml, from src/fix_sbe/schema/fix_sbe.yaml

URI: https://w3id.org/lmodel/fix-sbe

Name: fix_sbe

Diagram#

erDiagram
SbeEncodingSetV1 {

}
SbeEncodingV1 {
    string description  
    SbeToken semantic_type  
    integer deprecated_since  
    string encoding_kind  
    integer offset  
    integer since_version  
    SbeSymbolicName symbolic_name  
}
SbeFieldV1 {
    string description  
    SbeSymbolicName encoding_name  
    integer offset  
    SbePresence presence  
    integer sbe_id  
    SbeToken semantic_type  
    SbeSymbolicName symbolic_name  
    string time_epoch  
    string time_unit  
    SbeQualifiedName value_ref  
    integer deprecated_since  
    integer since_version  
}
SbeGroupV1 {
    SbeSymbolicName dimension_type  
    string description  
    integer block_length  
    integer deprecated_since  
    integer sbe_id  
    SbeToken semantic_type  
    integer since_version  
    SbeSymbolicName symbolic_name  
}
SbeMessageSchemaV1 {
    string description  
    SbeByteOrder byte_order  
    SbeSymbolicName header_type  
    integer sbe_id  
    string schema_package  
    integer schema_version  
    string semantic_version  
}
SbeMessageV1 {
    integer sbe_id  
    SbeToken semantic_type  
    string description  
    integer block_length  
    integer deprecated_since  
    integer since_version  
    SbeSymbolicName symbolic_name  
}

SbeEncodingSetV1 ||--}| SbeEncodingV1 : "encodings"
SbeGroupV1 ||--}o SbeFieldV1 : "var_data_fields"
SbeGroupV1 ||--}o SbeGroupV1 : "repeating_groups"
SbeGroupV1 ||--}| SbeFieldV1 : "block_fields"
SbeMessageSchemaV1 ||--}| SbeEncodingSetV1 : "encoding_sets"
SbeMessageSchemaV1 ||--}| SbeMessageV1 : "messages"
SbeMessageV1 ||--}o SbeFieldV1 : "block_fields, var_data_fields"
SbeMessageV1 ||--}o SbeGroupV1 : "repeating_groups"

Classes#

ClassDescription
SbeBlockV1MixinThe body shared by a message and a group entry, which holds its fixed-length …
SbeBlockV2MixinThe body shared by a message and a group entry, which holds its fixed-length …
SbeChoiceOne of the alternatives of a set, which is one bit of its encoding
SbeElementV2Anything that sets of encodings or composites hold, and the name and text the…
        SbeMemberV2Anything a composite may hold in the order it is sent
                SbeCompositeV2An encoding built from members sent one after another, such as a decimal’s ma…
                SbeEnumV2An encoding whose value is one of a listed set of valid values
                SbeMemberTypeV2A simple encoding inside a composite, which may say it is optional or constan…
                SbeRefV2A composite’s member that reuses an encoding defined elsewhere in the schema
                SbeSetV2An encoding whose value is any combination of up to 64 choices, sent as a bit…
        SbeSimpleTypeV2A simple encoding that stands alone in a set, backed by one primitive value, …
SbeEncodingSetV1A set of encodings, listed in any order, whose names are unique across the wh…
SbeEncodingSetV2A set of encodings, in any order, that may have its own package and may come …
SbeFieldV1A message’s or group entry’s field, which uses an encoding at a place in its …
SbeFieldV2A message’s or group entry’s field, which uses an encoding at a place in its …
SbeGroupV1A repeating group, whose entries each hold the same fields, and which must ha…
SbeGroupV2A repeating group, whose entries each hold the same fields, and which must ha…
SbeMemberV1Anything a composite may hold in the order it is sent
        SbeEncodingV1An encoding of SBE 1
                SbeCompositeV1An encoding built from members sent one after another, such as a decimal’s ma…
                SbeEnumV1An encoding whose value is one of a listed set of valid values
                SbeSetV1An encoding whose value is any combination of up to 64 choices, sent as a bit…
                SbeSimpleTypeV1An encoding backed by one primitive value, or several in an array
        SbeRefV1A composite’s member that reuses an encoding defined elsewhere in the schema
SbeMessageSchemaV1One SBE 1
SbeMessageSchemaV2One SBE 2
SbeMessageSetV2Message templates held together, which may have their own package and may com…
SbeMessageV1A message template, whose number and block length are sent in each message’s …
SbeMessageV2A message template, whose number and block length are sent in each message’s …
SbeValidValueOne of the values an enumeration allows
SbeVersionedMixinThe two attributes that record when an element entered a schema and when it s…

Slots#

SlotDescription
alignmentThe multiple of octets the start of this element is placed on
array_lengthHow many values of the primitive type the encoding holds, where zero means a …
bit_positionWhich bit stands for this choice, counted from zero at the least significant
block_fieldsFixed-length fields, listed in wire order
block_lengthThe octets set aside for a message’s fixed-length fields, or for those of eac…
byte_orderHow the octets of every number in this schema’s messages are ordered
character_encodingWhich character set, or which Unicode scheme, character data follows
choicesThe alternatives of this set
composite_membersThe members of this composite, in the order they are sent
deprecated_sinceThe schema version that retired this element, which stays only for older appl…
descriptionFree text about this element, for the people who read the schema
dimension_typeThe composite, by name, that sends a repeating group’s entry count and entry …
element_valueThe text of the XML element, which is the constant when presence is constant
encoding_kindThe class of this encoding or composite member, which stands for its XML elem…
encoding_nameWhich encoding this element uses, by name
encoding_setsThe sets of encodings this schema’s messages use
encoding_typeThe simple encoding or primitive type that an enumeration or set is sent as
encodingsThe encodings of this set
header_typeThe composite, by name, that sends each message’s header in this schema
max_valueThe highest value allowed, written as text
message_setsThe sets of message templates of this schema
messagesThe message templates of this set
min_valueThe lowest value allowed, written as text
null_valueThe value that stands for null in place of the primitive type’s default, writ…
offsetThe octet this element starts at, counted from zero at the start of its block…
presenceWhether this element’s value is required, optional or constant
primitive_typeThe wire type under this encoding
repeating_groupsRepeating groups, listed in wire order
sbe_idThe number that identifies this element
sbe_xml_baseThe base address that the XML Inclusion mechanism records on an element it br…
schema_packageThe name or category that a set of counterparties knows this schema or part o…
schema_versionThe version of this message schema, starting at zero
semantic_typeWhat this element means at the FIX application layer
semantic_versionThe version of FIX whose meanings this schema uses
since_versionThe schema version that added this element
symbolic_nameWhat the schema calls this element
time_epochWhere the period a time value counts from begins
time_unitThe unit of a time value
valid_valueThe value as it is written in the schema, which must convert to the enumerati…
valid_valuesThe values this enumeration allows
value_refThe valid value that gives a constant element its value
var_data_fieldsVariable-length fields, listed in wire order

Enumerations#

EnumerationDescription
SbeByteOrderThe order of the octets in every multi-octet number of a message
SbeFixDatatypeThe FIX datatypes a field’s or an encoding’s semantic type may name: those of…
SbePresenceWhether a value is on the wire, and whether it may be null
SbePrimitiveTypeThe wire types every encoding is finally built from

Types#

TypeDescription
BooleanA binary (true or false) value
Curiea compact URI
Datea date (year, month and day) in an idealized calendar
DateOrDatetimeEither a date or a datetime
DatetimeThe combination of a date and time
DecimalA real number with arbitrary precision that conforms to the xsd:decimal speci…
DoubleA real number that conforms to the xsd:double specification
FloatA real number that conforms to the xsd:float specification
IntegerAn integer
JsonpathA string encoding a JSON Path
JsonpointerA string encoding a JSON Pointer
NcnamePrefix part of CURIE
NodeidentifierA URI, CURIE or BNODE that represents a node in a model
ObjectidentifierA URI or CURIE that represents an object in the model
SbeQualifiedNameAn enumeration’s name and one of its valid values’ names, joined by a dot
SbeSymbolicNameA name of one to 64 letters, digits and underscores that starts with a letter…
SbeTokenText with no line break, tab or doubled space, and no space at either end
SparqlpathA string encoding a SPARQL Property Path
StringA character string
TimeA time object represents a (local) time of day, independent of any particular…
Uria complete URI
Uriorcuriea URI or a CURIE