Skip to content

Send EMSX_CFD_FLAG as Y instead of 1 - #9745

Open
Martin-Molinero wants to merge 1 commit into
QuantConnect:masterfrom
Martin-Molinero:bug-138-cfd-flag-yn
Open

Send EMSX_CFD_FLAG as Y instead of 1#9745
Martin-Molinero wants to merge 1 commit into
QuantConnect:masterfrom
Martin-Molinero:bug-138-cfd-flag-yn

Conversation

@Martin-Molinero

Copy link
Copy Markdown
Member

Description

Bloomberg EMSX expects and echoes "Y"/"N" for EMSX_CFD_FLAG, so TerminalLinkOrderProperties.IsCfdTrade sending "1" silently booked orders as Regular instead of CFD. The setter now sends "Y" (still clears the tag when false) and the getter compares against "Y".

Companion to QuantConnect/Lean.Brokerages.TerminalLink#143, which also translates legacy "1"/"0" values for backwards compatibility. Fixes QuantConnect/Lean.Brokerages.TerminalLink#138.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YMfMcmQohYN92aU1wirKtZ

Bloomberg EMSX expects "Y"/"N" for EMSX_CFD_FLAG, so IsCfdTrade sending
"1" silently booked orders as Regular instead of CFD.

Companion to QuantConnect/Lean.Brokerages.TerminalLink#143 and closes
QuantConnect/Lean.Brokerages.TerminalLink#138

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YMfMcmQohYN92aU1wirKtZ
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.

1 participant