Skip to content

Correct 150/ExecType for FIX 4.1/4.2 in Executor example#1083

Merged
chrjohn merged 1 commit into
quickfix-j:masterfrom
wilson-zh:fix/968-executor-exectype-4.1-4.2
Dec 1, 2025
Merged

Correct 150/ExecType for FIX 4.1/4.2 in Executor example#1083
chrjohn merged 1 commit into
quickfix-j:masterfrom
wilson-zh:fix/968-executor-exectype-4.1-4.2

Conversation

@wilson-zh

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

Copy link
Copy Markdown
Contributor

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

chrjohn commented Nov 26, 2025

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
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