Class in FIX Simple Binary Encoding (SBE)
SbeFieldV1
A message's or group entry's field, which uses an encoding at a place in its block.
classDiagram
class SbeFieldV1
click SbeFieldV1 href "../../classes/SbeFieldV1/"
SbeVersionedMixin <|-- SbeFieldV1
click SbeVersionedMixin href "../../classes/SbeVersionedMixin/"
SbeFieldV1 : deprecated_since
SbeFieldV1 : description
SbeFieldV1 : encoding_name
SbeFieldV1 : offset
SbeFieldV1 : presence
SbeFieldV1 --> "0..1" SbePresence : presence
click SbePresence href "../../enums/SbePresence/"
SbeFieldV1 : sbe_id
SbeFieldV1 : semantic_type
SbeFieldV1 : since_version
SbeFieldV1 : symbolic_name
SbeFieldV1 : time_epoch
SbeFieldV1 : time_unit
SbeFieldV1 : value_ref
Inheritance#
- SbeFieldV1 [ SbeVersionedMixin]
Slots#
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| symbolic_name | 1 SbeSymbolicName | What the schema calls this element | direct |
| sbe_id | 1 Integer | The field’s FIX tag number | direct |
| encoding_name | 1 SbeSymbolicName | Which encoding this element uses, by name | direct |
| offset | 0..1 Integer | The octet this element starts at, counted from zero at the start of its block… | direct |
| presence | 0..1 SbePresence | Whether this element’s value is required, optional or constant | direct |
| value_ref | 0..1 SbeQualifiedName | The valid value that gives a constant element its value | direct |
| semantic_type | 0..1 SbeToken | The FIX datatype this field carries | direct |
| description | 0..1 String | Free text about this element, for the people who read the schema | direct |
| time_epoch | 0..1 String | Where the period a time value counts from begins | direct |
| time_unit | 0..1 String | The unit of a time value | direct |
| since_version | 0..1 Integer | The schema version that added this element | SbeVersionedMixin |
| deprecated_since | 0..1 Integer | The schema version that retired this element, which stays only for older appl… | SbeVersionedMixin |
Usages#
Rules#
A reference to a value needs a constant#
| Rule Applied | Preconditions | Postconditions | Elseconditions |
|---|---|---|---|
| slot_conditions | {'value_ref': {'value_presence': 'PRESENT'}} | {'presence': {'equals_string': 'constant'}} |
Comments#
- The mapping to an Orchestra field is close, not exact. This field has a place in one block, and FIX’s transposer carries one with a composite encoding to a component reference, not a field.
Identifier and Mapping Information#
Annotations#
| property | value |
|---|---|
| xsd_type | fieldType |
| xml_element | field |
Schema Source#
- from schema: https://w3id.org/lmodel/fix-sbe
Mappings#
| Mapping Type | Mapped Value |
|---|---|
| self | fix_sbe:SbeFieldV1 |
| native | fix_sbe:SbeFieldV1 |
| close | fix_orchestra:OrchestraFieldV10 |
LinkML Source#
Direct#
YAML
name: SbeFieldV1
annotations:
xsd_type:
tag: xsd_type
value: fieldType
xml_element:
tag: xml_element
value: field
description: A message's or group entry's field, which uses an encoding at a place
in its block.
comments:
- The mapping to an Orchestra field is close, not exact. This field has a place in
one block, and FIX's transposer carries one with a composite encoding to a component
reference, not a field.
from_schema: https://w3id.org/lmodel/fix-sbe
close_mappings:
- fix_orchestra:OrchestraFieldV10
mixins:
- SbeVersionedMixin
slots:
- symbolic_name
- sbe_id
- encoding_name
- offset
- presence
- value_ref
- semantic_type
- description
slot_usage:
sbe_id:
name: sbe_id
description: The field's FIX tag number.
required: true
semantic_type:
name: semantic_type
description: The FIX datatype this field carries.
attributes:
time_epoch:
name: time_epoch
annotations:
sbe_section:
tag: sbe_section
value: '2: Date and time encoding'
description: Where the period a time value counts from begins.
from_schema: https://w3id.org/lmodel/fix-sbe/schema/fix_sbe_v1_0
aliases:
- epoch
rank: 1000
ifabsent: string(unix)
domain_of:
- SbeFieldV1
time_unit:
name: time_unit
description: The unit of a time value.
deprecated: The XSD keeps this only for schemas written against release candidate
2 of SBE 1.0.
from_schema: https://w3id.org/lmodel/fix-sbe/schema/fix_sbe_v1_0
aliases:
- timeUnit
rank: 1000
ifabsent: string(nanosecond)
domain_of:
- SbeFieldV1
rules:
- preconditions:
slot_conditions:
value_ref:
name: value_ref
value_presence: PRESENT
postconditions:
slot_conditions:
presence:
name: presence
equals_string: constant
annotations:
sbe_section:
tag: sbe_section
value: '4: Field attributes'
description: A value_ref is valid only on an element whose presence is constant.
title: A reference to a value needs a constant
Induced#
YAML
name: SbeFieldV1
annotations:
xsd_type:
tag: xsd_type
value: fieldType
xml_element:
tag: xml_element
value: field
description: A message's or group entry's field, which uses an encoding at a place
in its block.
comments:
- The mapping to an Orchestra field is close, not exact. This field has a place in
one block, and FIX's transposer carries one with a composite encoding to a component
reference, not a field.
from_schema: https://w3id.org/lmodel/fix-sbe
close_mappings:
- fix_orchestra:OrchestraFieldV10
mixins:
- SbeVersionedMixin
slot_usage:
sbe_id:
name: sbe_id
description: The field's FIX tag number.
required: true
semantic_type:
name: semantic_type
description: The FIX datatype this field carries.
attributes:
time_epoch:
name: time_epoch
annotations:
sbe_section:
tag: sbe_section
value: '2: Date and time encoding'
description: Where the period a time value counts from begins.
from_schema: https://w3id.org/lmodel/fix-sbe/schema/fix_sbe_v1_0
aliases:
- epoch
rank: 1000
ifabsent: string(unix)
owner: SbeFieldV1
domain_of:
- SbeFieldV1
range: string
time_unit:
name: time_unit
description: The unit of a time value.
deprecated: The XSD keeps this only for schemas written against release candidate
2 of SBE 1.0.
from_schema: https://w3id.org/lmodel/fix-sbe/schema/fix_sbe_v1_0
aliases:
- timeUnit
rank: 1000
ifabsent: string(nanosecond)
owner: SbeFieldV1
domain_of:
- SbeFieldV1
range: string
symbolic_name:
name: symbolic_name
description: What the schema calls this element.
from_schema: https://w3id.org/lmodel/fix-sbe
aliases:
- name
rank: 1000
owner: SbeFieldV1
domain_of:
- SbeValidValue
- SbeChoice
- SbeMemberV1
- SbeBlockV1Mixin
- SbeFieldV1
- SbeElementV2
- SbeBlockV2Mixin
- SbeFieldV2
range: SbeSymbolicName
required: true
pattern: ^[A-Za-z_][0-9A-Za-z_]{0,63}$
sbe_id:
name: sbe_id
annotations:
xsd_type:
tag: xsd_type
value: xs:unsignedShort
description: The field's FIX tag number.
from_schema: https://w3id.org/lmodel/fix-sbe
aliases:
- id
rank: 1000
owner: SbeFieldV1
domain_of:
- SbeMessageSchemaV1
- SbeBlockV1Mixin
- SbeFieldV1
- SbeMessageSchemaV2
- SbeBlockV2Mixin
- SbeFieldV2
range: integer
required: true
minimum_value: 0
maximum_value: 65535
encoding_name:
name: encoding_name
description: Which encoding this element uses, by name.
comments:
- It holds a name and not a class reference, because a name is unique only within
one schema document, where several documents may be listed side by side. tests/sbe_rules.py
checks that each names an encoding of its document.
from_schema: https://w3id.org/lmodel/fix-sbe
aliases:
- type
rank: 1000
owner: SbeFieldV1
domain_of:
- SbeRefV1
- SbeFieldV1
- SbeRefV2
- SbeFieldV2
range: SbeSymbolicName
required: true
pattern: ^[A-Za-z_][0-9A-Za-z_]{0,63}$
offset:
name: offset
annotations:
xsd_type:
tag: xsd_type
value: xs:unsignedInt
sbe_section:
tag: sbe_section
value: '3: Field offset specified by message schema'
description: The octet this element starts at, counted from zero at the start
of its block or composite.
from_schema: https://w3id.org/lmodel/fix-sbe
aliases:
- offset
rank: 1000
owner: SbeFieldV1
domain_of:
- SbeMemberV1
- SbeFieldV1
- SbeMemberV2
- SbeFieldV2
range: integer
minimum_value: 0
maximum_value: 4294967295
presence:
name: presence
description: Whether this element's value is required, optional or constant.
from_schema: https://w3id.org/lmodel/fix-sbe
aliases:
- presence
rank: 1000
ifabsent: string(required)
owner: SbeFieldV1
domain_of:
- SbeSimpleTypeV1
- SbeFieldV1
- SbeMemberTypeV2
- SbeFieldV2
range: SbePresence
value_ref:
name: value_ref
description: The valid value that gives a constant element its value.
from_schema: https://w3id.org/lmodel/fix-sbe
aliases:
- valueRef
rank: 1000
owner: SbeFieldV1
domain_of:
- SbeSimpleTypeV1
- SbeFieldV1
- SbeMemberTypeV2
- SbeFieldV2
range: SbeQualifiedName
pattern: ^[A-Za-z_][0-9A-Za-z_]*\.[A-Za-z_][0-9A-Za-z_]*$
semantic_type:
name: semantic_type
annotations:
xsd_type:
tag: xsd_type
value: xs:token
description: The FIX datatype this field carries.
from_schema: https://w3id.org/lmodel/fix-sbe
aliases:
- semanticType
rank: 1000
owner: SbeFieldV1
domain_of:
- SbeEncodingV1
- SbeBlockV1Mixin
- SbeFieldV1
- SbeBlockV2Mixin
- SbeFieldV2
range: SbeToken
pattern: ^\S+( \S+)*$
description:
name: description
description: Free text about this element, for the people who read the schema.
from_schema: https://w3id.org/lmodel/fix-sbe
aliases:
- description
rank: 1000
slot_uri: schema:description
owner: SbeFieldV1
domain_of:
- SbeValidValue
- SbeChoice
- SbeMessageSchemaV1
- SbeEncodingV1
- SbeBlockV1Mixin
- SbeFieldV1
- SbeMessageSchemaV2
- SbeEncodingSetV2
- SbeMessageSetV2
- SbeElementV2
- SbeBlockV2Mixin
- SbeFieldV2
range: string
since_version:
name: since_version
annotations:
xsd_type:
tag: xsd_type
value: xs:nonNegativeInteger
sbe_section:
tag: sbe_section
value: '5: Since version'
description: The schema version that added this element.
from_schema: https://w3id.org/lmodel/fix-sbe
aliases:
- sinceVersion
rank: 1000
ifabsent: int(0)
owner: SbeFieldV1
domain_of:
- SbeVersionedMixin
range: integer
minimum_value: 0
deprecated_since:
name: deprecated_since
annotations:
xsd_type:
tag: xsd_type
value: xs:nonNegativeInteger
sbe_section:
tag: sbe_section
value: '5: Deprecated elements'
description: The schema version that retired this element, which stays only for
older applications.
from_schema: https://w3id.org/lmodel/fix-sbe
aliases:
- deprecated
rank: 1000
owner: SbeFieldV1
domain_of:
- SbeVersionedMixin
range: integer
minimum_value: 0
rules:
- preconditions:
slot_conditions:
value_ref:
name: value_ref
value_presence: PRESENT
postconditions:
slot_conditions:
presence:
name: presence
equals_string: constant
annotations:
sbe_section:
tag: sbe_section
value: '4: Field attributes'
description: A value_ref is valid only on an element whose presence is constant.
title: A reference to a value needs a constant