Skip to content

Conversation

@wilson-zh
Copy link
Contributor

@wilson-zh wilson-zh commented Nov 26, 2025

Fixes #968

Summary

This PR fixes validation failures in the Executor example when running FIX 4.1
and FIX 4.2 sessions. The previous implementation used ExecType.TRADE (value
F) for outgoing ExecutionReport messages, but this ExecType is only valid
beginning in FIX 4.3. The FIX 4.1/4.2 data dictionaries reject this value.

@wilson-zh wilson-zh marked this pull request as ready for review November 26, 2025 05:30
@chrjohn
Copy link
Member

chrjohn commented Nov 26, 2025

Thanks for the PR @wilson-zh

@chrjohn chrjohn changed the title Fix Tag 150 ExecType for FIX 4.1/4.2 in Executor example (Issue #968) Correct 150/ExecType for FIX 4.1/4.2 in Executor example Dec 1, 2025

quickfix.fix41.ExecutionReport accept = new quickfix.fix41.ExecutionReport(genOrderID(), genExecID(),
new ExecTransType(ExecTransType.NEW), new ExecType(ExecType.TRADE), new OrdStatus(OrdStatus.NEW), order
new ExecTransType(ExecTransType.NEW), new ExecType(ExecType.NEW), new OrdStatus(OrdStatus.NEW), order
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, my pleasure

@chrjohn chrjohn merged commit cbe8d5f into quickfix-j:master Dec 1, 2025
20 of 21 checks passed
@chrjohn chrjohn added this to the QFJ 3.0.0 milestone Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Executor example app: outgoing message failed validation

2 participants