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#
| Class | Description |
|---|---|
| SbeBlockV1Mixin | The body shared by a message and a group entry, which holds its fixed-length … |
| SbeBlockV2Mixin | The body shared by a message and a group entry, which holds its fixed-length … |
| SbeChoice | One of the alternatives of a set, which is one bit of its encoding |
| SbeElementV2 | Anything that sets of encodings or composites hold, and the name and text the… |
| SbeMemberV2 | Anything a composite may hold in the order it is sent |
| SbeCompositeV2 | An encoding built from members sent one after another, such as a decimal’s ma… |
| SbeEnumV2 | An encoding whose value is one of a listed set of valid values |
| SbeMemberTypeV2 | A simple encoding inside a composite, which may say it is optional or constan… |
| SbeRefV2 | A composite’s member that reuses an encoding defined elsewhere in the schema |
| SbeSetV2 | An encoding whose value is any combination of up to 64 choices, sent as a bit… |
| SbeSimpleTypeV2 | A simple encoding that stands alone in a set, backed by one primitive value, … |
| SbeEncodingSetV1 | A set of encodings, listed in any order, whose names are unique across the wh… |
| SbeEncodingSetV2 | A set of encodings, in any order, that may have its own package and may come … |
| SbeFieldV1 | A message’s or group entry’s field, which uses an encoding at a place in its … |
| SbeFieldV2 | A message’s or group entry’s field, which uses an encoding at a place in its … |
| SbeGroupV1 | A repeating group, whose entries each hold the same fields, and which must ha… |
| SbeGroupV2 | A repeating group, whose entries each hold the same fields, and which must ha… |
| SbeMemberV1 | Anything a composite may hold in the order it is sent |
| SbeEncodingV1 | An encoding of SBE 1 |
| SbeCompositeV1 | An encoding built from members sent one after another, such as a decimal’s ma… |
| SbeEnumV1 | An encoding whose value is one of a listed set of valid values |
| SbeSetV1 | An encoding whose value is any combination of up to 64 choices, sent as a bit… |
| SbeSimpleTypeV1 | An encoding backed by one primitive value, or several in an array |
| SbeRefV1 | A composite’s member that reuses an encoding defined elsewhere in the schema |
| SbeMessageSchemaV1 | One SBE 1 |
| SbeMessageSchemaV2 | One SBE 2 |
| SbeMessageSetV2 | Message templates held together, which may have their own package and may com… |
| SbeMessageV1 | A message template, whose number and block length are sent in each message’s … |
| SbeMessageV2 | A message template, whose number and block length are sent in each message’s … |
| SbeValidValue | One of the values an enumeration allows |
| SbeVersionedMixin | The two attributes that record when an element entered a schema and when it s… |
Slots#
| Slot | Description |
|---|---|
| alignment | The multiple of octets the start of this element is placed on |
| array_length | How many values of the primitive type the encoding holds, where zero means a … |
| bit_position | Which bit stands for this choice, counted from zero at the least significant |
| block_fields | Fixed-length fields, listed in wire order |
| block_length | The octets set aside for a message’s fixed-length fields, or for those of eac… |
| byte_order | How the octets of every number in this schema’s messages are ordered |
| character_encoding | Which character set, or which Unicode scheme, character data follows |
| choices | The alternatives of this set |
| composite_members | The members of this composite, in the order they are sent |
| deprecated_since | The schema version that retired this element, which stays only for older appl… |
| description | Free text about this element, for the people who read the schema |
| dimension_type | The composite, by name, that sends a repeating group’s entry count and entry … |
| element_value | The text of the XML element, which is the constant when presence is constant |
| encoding_kind | The class of this encoding or composite member, which stands for its XML elem… |
| encoding_name | Which encoding this element uses, by name |
| encoding_sets | The sets of encodings this schema’s messages use |
| encoding_type | The simple encoding or primitive type that an enumeration or set is sent as |
| encodings | The encodings of this set |
| header_type | The composite, by name, that sends each message’s header in this schema |
| max_value | The highest value allowed, written as text |
| message_sets | The sets of message templates of this schema |
| messages | The message templates of this set |
| min_value | The lowest value allowed, written as text |
| null_value | The value that stands for null in place of the primitive type’s default, writ… |
| offset | The octet this element starts at, counted from zero at the start of its block… |
| presence | Whether this element’s value is required, optional or constant |
| primitive_type | The wire type under this encoding |
| repeating_groups | Repeating groups, listed in wire order |
| sbe_id | The number that identifies this element |
| sbe_xml_base | The base address that the XML Inclusion mechanism records on an element it br… |
| schema_package | The name or category that a set of counterparties knows this schema or part o… |
| schema_version | The version of this message schema, starting at zero |
| semantic_type | What this element means at the FIX application layer |
| semantic_version | The version of FIX whose meanings this schema uses |
| since_version | The schema version that added this element |
| symbolic_name | What the schema calls this element |
| time_epoch | Where the period a time value counts from begins |
| time_unit | The unit of a time value |
| valid_value | The value as it is written in the schema, which must convert to the enumerati… |
| valid_values | The values this enumeration allows |
| value_ref | The valid value that gives a constant element its value |
| var_data_fields | Variable-length fields, listed in wire order |
Enumerations#
| Enumeration | Description |
|---|---|
| SbeByteOrder | The order of the octets in every multi-octet number of a message |
| SbeFixDatatype | The FIX datatypes a field’s or an encoding’s semantic type may name: those of… |
| SbePresence | Whether a value is on the wire, and whether it may be null |
| SbePrimitiveType | The wire types every encoding is finally built from |
Types#
| Type | Description |
|---|---|
| Boolean | A binary (true or false) value |
| Curie | a compact URI |
| Date | a date (year, month and day) in an idealized calendar |
| DateOrDatetime | Either a date or a datetime |
| Datetime | The combination of a date and time |
| Decimal | A real number with arbitrary precision that conforms to the xsd:decimal speci… |
| Double | A real number that conforms to the xsd:double specification |
| Float | A real number that conforms to the xsd:float specification |
| Integer | An integer |
| Jsonpath | A string encoding a JSON Path |
| Jsonpointer | A string encoding a JSON Pointer |
| Ncname | Prefix part of CURIE |
| Nodeidentifier | A URI, CURIE or BNODE that represents a node in a model |
| Objectidentifier | A URI or CURIE that represents an object in the model |
| SbeQualifiedName | An enumeration’s name and one of its valid values’ names, joined by a dot |
| SbeSymbolicName | A name of one to 64 letters, digits and underscores that starts with a letter… |
| SbeToken | Text with no line break, tab or doubled space, and no space at either end |
| Sparqlpath | A string encoding a SPARQL Property Path |
| String | A character string |
| Time | A time object represents a (local) time of day, independent of any particular… |
| Uri | a complete URI |
| Uriorcurie | a URI or a CURIE |