Skip to content

Commit a4eabae

Browse files
committed
#4 Example schema added as xml
1 parent 40ba3b9 commit a4eabae

File tree

2 files changed

+284
-0
lines changed

2 files changed

+284
-0
lines changed

v1-0-RC3/resources/Examples.xml

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<messageSchema
3+
xmlns:sbe="https://github.com/FIXTradingCommunity/fix-simple-binary-encoding/blob/master/v1-0-RC3/resources"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" package="Examples"
5+
id="91" version="0" byteOrder="littleEndian"
6+
xsi:schemaLocation="https://github.com/FIXTradingCommunity/fix-simple-binary-encoding/blob/master/v1-0-RC3/resources SimpleBinary1-0.xsd">
7+
<types>
8+
<type name="date" primitiveType="uint16" semanticType="LocalMktDate" />
9+
<type name="enumEncoding" primitiveType="char" />
10+
<type name="idString" length="8" primitiveType="char"
11+
semanticType="String" />
12+
<type name="intEnumEncoding" primitiveType="uint8" />
13+
<type name="timestampEncoding" primitiveType="uint64"
14+
semanticType="UTCTimestamp" />
15+
<composite name="DATA">
16+
<type name="length" primitiveType="uint16" semanticType="Length" />
17+
<type name="varData" length="0" primitiveType="uint8"
18+
semanticType="data" />
19+
</composite>
20+
<composite name="MONTH_YEAR" semanticType="MonthYear">
21+
<type name="year" primitiveType="uint16" />
22+
<type name="month" primitiveType="uint8" />
23+
<type name="day" primitiveType="uint8" />
24+
<type name="week" primitiveType="uint8" />
25+
</composite>
26+
<composite name="groupSizeEncoding">
27+
<type name="blockLength" primitiveType="uint16" semanticType="Length" />
28+
<type name="numInGroup" primitiveType="uint16" semanticType="NumInGroup" />
29+
</composite>
30+
<composite name="messageHeader">
31+
<type name="blockLength" primitiveType="uint16" />
32+
<type name="templateId" primitiveType="uint16" />
33+
<type name="schemaId" primitiveType="uint16" />
34+
<type name="version" primitiveType="uint16" />
35+
</composite>
36+
<composite name="optionalDecimalEncoding">
37+
<type name="mantissa" presence="optional" primitiveType="int64" />
38+
<type name="exponent" presence="constant" primitiveType="int8">-3
39+
</type>
40+
</composite>
41+
<composite name="qtyEncoding">
42+
<type name="mantissa" primitiveType="int32" />
43+
<type name="exponent" presence="constant" primitiveType="int8">0</type>
44+
</composite>
45+
<enum name="businessRejectReasonEnum" encodingType="intEnumEncoding">
46+
<validValue name="Other">0</validValue>
47+
<validValue name="UnknownID">1</validValue>
48+
<validValue name="UnknownSecurity">2</validValue>
49+
<validValue name="ApplicationNotAvailable">4</validValue>
50+
<validValue name="NotAuthorized">6</validValue>
51+
</enum>
52+
<enum name="execTypeEnum" encodingType="enumEncoding">
53+
<validValue name="New">0</validValue>
54+
<validValue name="DoneForDay">3</validValue>
55+
<validValue name="Canceled">4</validValue>
56+
<validValue name="Replaced">5</validValue>
57+
<validValue name="PendingCancel">6</validValue>
58+
<validValue name="Rejected">8</validValue>
59+
<validValue name="PendingNew">A</validValue>
60+
<validValue name="Trade">F</validValue>
61+
</enum>
62+
<enum name="ordStatusEnum" encodingType="enumEncoding">
63+
<validValue name="New">0</validValue>
64+
<validValue name="PartialFilled">1</validValue>
65+
<validValue name="Filled">2</validValue>
66+
<validValue name="DoneForDay">3</validValue>
67+
<validValue name="Canceled">4</validValue>
68+
<validValue name="PendingCancel">6</validValue>
69+
<validValue name="Rejected">8</validValue>
70+
<validValue name="PendingNew">A</validValue>
71+
<validValue name="PendingReplace">E</validValue>
72+
</enum>
73+
<enum name="ordTypeEnum" encodingType="enumEncoding">
74+
<validValue name="Market">1</validValue>
75+
<validValue name="Limit">2</validValue>
76+
<validValue name="Stop">3</validValue>
77+
<validValue name="StopLimit">4</validValue>
78+
</enum>
79+
<enum name="sideEnum" encodingType="enumEncoding">
80+
<validValue name="Buy">1</validValue>
81+
<validValue name="Sell">2</validValue>
82+
</enum>
83+
</types>
84+
<sbe:message name="BusinessMessageReject" id="97"
85+
blockLength="9" semanticType="j">
86+
<field name="BusinesRejectRefId" id="379" type="idString"
87+
offset="0" semanticType="String" />
88+
<field name="BusinessRejectReason" id="380" type="businessRejectReasonEnum"
89+
offset="8" semanticType="int" />
90+
<data name="Text" id="58" type="DATA" semanticType="data" />
91+
</sbe:message>
92+
<sbe:message name="ExecutionReport" id="98" blockLength="42"
93+
semanticType="8">
94+
<field name="OrderID" id="37" type="idString" offset="0"
95+
semanticType="String" />
96+
<field name="ExecID" id="17" type="idString" offset="8"
97+
semanticType="String" />
98+
<field name="ExecType" id="150" type="execTypeEnum" offset="16"
99+
semanticType="char" />
100+
<field name="OrdStatus" id="39" type="ordStatusEnum" offset="17"
101+
semanticType="char" />
102+
<field name="Symbol" id="55" type="idString" offset="18"
103+
semanticType="String" />
104+
<field name="MaturityMonthYear" id="200" type="MONTH_YEAR"
105+
offset="26" semanticType="MonthYear" />
106+
<field name="Side" id="54" type="sideEnum" offset="31"
107+
semanticType="char" />
108+
<field name="LeavesQty" id="151" type="qtyEncoding" offset="32"
109+
semanticType="Qty" />
110+
<field name="CumQty" id="14" type="qtyEncoding" offset="36"
111+
semanticType="Qty" />
112+
<field name="TradeDate" id="75" type="date" offset="40"
113+
semanticType="LocalMktDate" />
114+
<group name="FillsGrp" id="2112" blockLength="12" dimensionType="groupSizeEncoding">
115+
<field name="FillPx" id="1364" type="optionalDecimalEncoding"
116+
offset="0" semanticType="Price" />
117+
<field name="FillQty" id="1365" type="qtyEncoding" offset="8"
118+
semanticType="Qty" />
119+
</group>
120+
</sbe:message>
121+
<sbe:message name="NewOrderSingle" id="99" blockLength="54"
122+
semanticType="D">
123+
<field name="ClOrdId" id="11" type="idString" offset="0"
124+
semanticType="String" />
125+
<field name="Account" id="1" type="idString" offset="8"
126+
semanticType="String" />
127+
<field name="Symbol" id="55" type="idString" offset="16"
128+
semanticType="String" />
129+
<field name="Side" id="54" type="sideEnum" offset="24"
130+
semanticType="char" />
131+
<field name="TransactTime" id="60" type="timestampEncoding"
132+
offset="25" semanticType="UTCTimestamp" />
133+
<field name="OrderQty" id="38" type="qtyEncoding" offset="33"
134+
semanticType="Qty" />
135+
<field name="OrdType" id="40" type="ordTypeEnum" offset="37"
136+
semanticType="char" />
137+
<field name="Price" id="44" type="optionalDecimalEncoding"
138+
offset="38" semanticType="Price" />
139+
<field name="StopPx" id="99" type="optionalDecimalEncoding"
140+
offset="46" semanticType="Price" />
141+
</sbe:message>
142+
</messageSchema>

v1-0-RC4/resources/Examples.xml

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<messageSchema
3+
xmlns:sbe="https://github.com/FIXTradingCommunity/fix-simple-binary-encoding/blob/master/v1-0-RC4/resources"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" package="Examples"
5+
id="91" version="0" byteOrder="littleEndian"
6+
xsi:schemaLocation="https://github.com/FIXTradingCommunity/fix-simple-binary-encoding/blob/master/v1-0-RC4/resources SimpleBinary1-0.xsd">
7+
<types>
8+
<type name="date" primitiveType="uint16" semanticType="LocalMktDate" />
9+
<type name="enumEncoding" primitiveType="char" />
10+
<type name="idString" length="8" primitiveType="char"
11+
semanticType="String" />
12+
<type name="intEnumEncoding" primitiveType="uint8" />
13+
<type name="timestampEncoding" primitiveType="uint64"
14+
semanticType="UTCTimestamp" />
15+
<composite name="DATA">
16+
<type name="length" primitiveType="uint16" semanticType="Length" />
17+
<type name="varData" length="0" primitiveType="uint8"
18+
semanticType="data" />
19+
</composite>
20+
<composite name="MONTH_YEAR" semanticType="MonthYear">
21+
<type name="year" primitiveType="uint16" />
22+
<type name="month" primitiveType="uint8" />
23+
<type name="day" primitiveType="uint8" />
24+
<type name="week" primitiveType="uint8" />
25+
</composite>
26+
<composite name="groupSizeEncoding">
27+
<type name="blockLength" primitiveType="uint16" semanticType="Length" />
28+
<type name="numInGroup" primitiveType="uint16" semanticType="NumInGroup" />
29+
</composite>
30+
<composite name="messageHeader">
31+
<type name="blockLength" primitiveType="uint16" />
32+
<type name="templateId" primitiveType="uint16" />
33+
<type name="schemaId" primitiveType="uint16" />
34+
<type name="version" primitiveType="uint16" />
35+
</composite>
36+
<composite name="optionalDecimalEncoding">
37+
<type name="mantissa" presence="optional" primitiveType="int64" />
38+
<type name="exponent" presence="constant" primitiveType="int8">-3
39+
</type>
40+
</composite>
41+
<composite name="qtyEncoding">
42+
<type name="mantissa" primitiveType="int32" />
43+
<type name="exponent" presence="constant" primitiveType="int8">0</type>
44+
</composite>
45+
<enum name="businessRejectReasonEnum" encodingType="intEnumEncoding">
46+
<validValue name="Other">0</validValue>
47+
<validValue name="UnknownID">1</validValue>
48+
<validValue name="UnknownSecurity">2</validValue>
49+
<validValue name="ApplicationNotAvailable">4</validValue>
50+
<validValue name="NotAuthorized">6</validValue>
51+
</enum>
52+
<enum name="execTypeEnum" encodingType="enumEncoding">
53+
<validValue name="New">0</validValue>
54+
<validValue name="DoneForDay">3</validValue>
55+
<validValue name="Canceled">4</validValue>
56+
<validValue name="Replaced">5</validValue>
57+
<validValue name="PendingCancel">6</validValue>
58+
<validValue name="Rejected">8</validValue>
59+
<validValue name="PendingNew">A</validValue>
60+
<validValue name="Trade">F</validValue>
61+
</enum>
62+
<enum name="ordStatusEnum" encodingType="enumEncoding">
63+
<validValue name="New">0</validValue>
64+
<validValue name="PartialFilled">1</validValue>
65+
<validValue name="Filled">2</validValue>
66+
<validValue name="DoneForDay">3</validValue>
67+
<validValue name="Canceled">4</validValue>
68+
<validValue name="PendingCancel">6</validValue>
69+
<validValue name="Rejected">8</validValue>
70+
<validValue name="PendingNew">A</validValue>
71+
<validValue name="PendingReplace">E</validValue>
72+
</enum>
73+
<enum name="ordTypeEnum" encodingType="enumEncoding">
74+
<validValue name="Market">1</validValue>
75+
<validValue name="Limit">2</validValue>
76+
<validValue name="Stop">3</validValue>
77+
<validValue name="StopLimit">4</validValue>
78+
</enum>
79+
<enum name="sideEnum" encodingType="enumEncoding">
80+
<validValue name="Buy">1</validValue>
81+
<validValue name="Sell">2</validValue>
82+
</enum>
83+
</types>
84+
<sbe:message name="BusinessMessageReject" id="97"
85+
blockLength="9" semanticType="j">
86+
<field name="BusinesRejectRefId" id="379" type="idString"
87+
offset="0" semanticType="String" />
88+
<field name="BusinessRejectReason" id="380" type="businessRejectReasonEnum"
89+
offset="8" semanticType="int" />
90+
<data name="Text" id="58" type="DATA" semanticType="data" />
91+
</sbe:message>
92+
<sbe:message name="ExecutionReport" id="98" blockLength="42"
93+
semanticType="8">
94+
<field name="OrderID" id="37" type="idString" offset="0"
95+
semanticType="String" />
96+
<field name="ExecID" id="17" type="idString" offset="8"
97+
semanticType="String" />
98+
<field name="ExecType" id="150" type="execTypeEnum" offset="16"
99+
semanticType="char" />
100+
<field name="OrdStatus" id="39" type="ordStatusEnum" offset="17"
101+
semanticType="char" />
102+
<field name="Symbol" id="55" type="idString" offset="18"
103+
semanticType="String" />
104+
<field name="MaturityMonthYear" id="200" type="MONTH_YEAR"
105+
offset="26" semanticType="MonthYear" />
106+
<field name="Side" id="54" type="sideEnum" offset="31"
107+
semanticType="char" />
108+
<field name="LeavesQty" id="151" type="qtyEncoding" offset="32"
109+
semanticType="Qty" />
110+
<field name="CumQty" id="14" type="qtyEncoding" offset="36"
111+
semanticType="Qty" />
112+
<field name="TradeDate" id="75" type="date" offset="40"
113+
semanticType="LocalMktDate" />
114+
<group name="FillsGrp" id="2112" blockLength="12" dimensionType="groupSizeEncoding">
115+
<field name="FillPx" id="1364" type="optionalDecimalEncoding"
116+
offset="0" semanticType="Price" />
117+
<field name="FillQty" id="1365" type="qtyEncoding" offset="8"
118+
semanticType="Qty" />
119+
</group>
120+
</sbe:message>
121+
<sbe:message name="NewOrderSingle" id="99" blockLength="54"
122+
semanticType="D">
123+
<field name="ClOrdId" id="11" type="idString" offset="0"
124+
semanticType="String" />
125+
<field name="Account" id="1" type="idString" offset="8"
126+
semanticType="String" />
127+
<field name="Symbol" id="55" type="idString" offset="16"
128+
semanticType="String" />
129+
<field name="Side" id="54" type="sideEnum" offset="24"
130+
semanticType="char" />
131+
<field name="TransactTime" id="60" type="timestampEncoding"
132+
offset="25" semanticType="UTCTimestamp" />
133+
<field name="OrderQty" id="38" type="qtyEncoding" offset="33"
134+
semanticType="Qty" />
135+
<field name="OrdType" id="40" type="ordTypeEnum" offset="37"
136+
semanticType="char" />
137+
<field name="Price" id="44" type="optionalDecimalEncoding"
138+
offset="38" semanticType="Price" />
139+
<field name="StopPx" id="99" type="optionalDecimalEncoding"
140+
offset="46" semanticType="Price" />
141+
</sbe:message>
142+
</messageSchema>

0 commit comments

Comments
 (0)