You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| name | Name of encoding | symbolicName\_t | required | Must be unique among all encoding types. |
180
+
| offset | The offset from the beginning of the composite. By default, the offset is the sum of preceding element sizes, but it may be increased to effect byte alignment. | unsignedInt | optional ||
180
181
| description | Documentation of the type | string | optional ||
181
182
| semanticType | Represents a FIX data type | token | optional | Same as field semanticType – see below. |
182
183
| sinceVersion | Documents the version of a schema in which a type was added | nonnegativeInteger | default = 0 | Must be less than or equal to the version of the message schema. |
@@ -229,14 +230,16 @@ A composite type often has its elements defined in-line within the `<composite>`
229
230
|\<ref\> attribute | Description | XML type | Usage | Valid values |
| name | Usage of the type in this composite | symbolicName\_t | required ||
232
-
| type | Name of referenced encoding | symbolicName\_t | required | Must match a defined type, enum or set name attribute. |
233
+
| type | Name of referenced encoding | symbolicName\_t | required | Must match a defined type, enum or set or composite name attribute. |
234
+
| offset | The offset from the beginning of the composite. By default, the offset is the sum of preceding element sizes, but it may be increased to effect byte alignment. | unsignedInt | optional ||
233
235
| sinceVersion | Documents the version of a schema in which a type was added | nonnegativeInteger | default = 0 | Must be less than or equal to the version of the message schema. |
234
236
| deprecated | Documents the version of a schema in which a type was deprecated. It should no longer be used in new messages. | nonnegativeInteger | optional | Must be less than or equal to the version of the message schema. |
235
237
236
-
#### Type reference example
238
+
#### Type reference examples
237
239
238
-
In this example, a futuresPrice is encoded as 64 bit integer mantissa, 8 bit exponent, and a reused enum type. Note that a
239
-
reference may carry an offset within the composite encoding that contains it.
240
+
**Reference to an enum**
241
+
242
+
In this example, a futuresPrice is encoded as 64 bit integer mantissa, 8 bit exponent, and a reused enum type.
In this example, a nested composite is formed by using a reference to another composite type. It supports the expresson of a monetary amount with its currency, such as USD150.45. Note that a reference may carry an offset within the composite encoding that contains it.
0 commit comments