Skip to content

Commit 3dc0a0f

Browse files
committed
Added an example of custom SecurityIdSource codeset
1 parent 47e81e3 commit 3dc0a0f

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

custom-applications/using-fixlatest-client/src/main/java/org/quickfixj/examples/fixlatest/custom/client/ClientApplicationAdapter.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ public void fromApp(Message message, SessionID sessionID)
6363
}
6464

6565
private static NewOrderSingle newOrderSingle() {
66-
6766
NewOrderSingle newOrderSingle = new NewOrderSingle();
6867
newOrderSingle.set(new ClOrdID(UUID.randomUUID().toString()));
6968
newOrderSingle.set(new OrdType(OrdType.LIMIT));
@@ -72,7 +71,7 @@ private static NewOrderSingle newOrderSingle() {
7271
newOrderSingle.set(new TransactTime(LocalDateTime.now()));
7372
Instrument instrument = new Instrument();
7473
instrument.set(new Symbol("EX.AMPLE"));
75-
instrument.set(new SecurityIDSource(SecurityIDSource.ISINNUMBER));
74+
instrument.set(new SecurityIDSource(SecurityIDSource.EXAMPLE_CUSTOM_SECURITY_ID_SOURCE));
7675
instrument.set(new SecurityID("202491685"));
7776
newOrderSingle.set(instrument);
7877
OrderQtyData orderQtyData = new OrderQtyData();

custom-legacy-codegen-application-messages/src/main/resources/FIX50SP2.modified.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5502,7 +5502,7 @@
55025502
<value enum="K" description="ISDA_FPML_PRODUCT_URL"/>
55035503
<value enum="L" description="LETTER_OF_CREDIT"/>
55045504
<value enum="M" description="MARKETPLACE_ASSIGNED_IDENTIFIER"/>
5505-
<value enum="100" description="EXAMPLE_CUSTOM_VALUE"/><!-- customisation example -->
5505+
<value enum="100" description="EXAMPLE_CUSTOM_SECURITY_ID_SOURCE"/><!-- customisation example -->
55065506
</field>
55075507
<field number="23" name="IOIID" type="STRING"/>
55085508
<field number="25" name="IOIQltyInd" type="CHAR">

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115

116116
<modules>
117117
<module>custom-application-messages</module>
118-
<!-- <module>custom-legacy-codegen-application-messages</module>-->
118+
<module>custom-legacy-codegen-application-messages</module>
119119
<module>custom-applications</module>
120120
</modules>
121121

src/main/resources/example-custom-orchestra.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,6 +1082,12 @@
10821082
Digital Token Identifier (ISO 24165)</fixr:documentation>
10831083
</fixr:annotation>
10841084
</fixr:code>
1085+
<fixr:code name="ExampleCustomSecurityIdSource" id="22034" value="100" sort="34">
1086+
<fixr:annotation>
1087+
<fixr:documentation purpose="SYNOPSIS">
1088+
Digital Token Identifier (ISO 24165)</fixr:documentation>
1089+
</fixr:annotation>
1090+
</fixr:code>
10851091
<fixr:annotation>
10861092
<fixr:documentation purpose="SYNOPSIS">
10871093
Identifies class or source of the SecurityID(48) value.</fixr:documentation>

0 commit comments

Comments
 (0)