Add missing LIQUIDATION_FORCED (LF) code to Code enum#8
Merged
Conversation
Co-authored-by: vroonhof <38109466+vroonhof@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix missing LF enum Code value
Add missing FIFO (LF) code to Code enum
Feb 18, 2026
Owner
|
this code does not mean FIFO. Suggestion is that it means LIQUIDATION_FORCED |
vroonhof
requested changes
Feb 18, 2026
Owner
vroonhof
left a comment
There was a problem hiding this comment.
address comment from conversation about naming
Co-authored-by: vroonhof <38109466+vroonhof@users.noreply.github.com>
Author
Corrected in commit 7a36e4b. Changed from FIFO to LIQUIDATION_FORCED with comment "Forced Liquidation".
Fixed the naming issue in commit 7a36e4b. The enum is now LIQUIDATION_FORCED = "LF" instead of FIFO. |
Co-authored-by: vroonhof <38109466+vroonhof@users.noreply.github.com>
Copilot
AI
changed the title
Add missing FIFO (LF) code to Code enum
Add missing LIQUIDATION_FORCED (LF) code to Code enum
Feb 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
IBKR Flex XML statements use "LF" in Trade.notes for forced liquidation scenarios, but this code was undefined in the enum, causing parse failures.
Changes
LIQUIDATION_FORCED = "LF"toCodeenum (ibflex/enums.py)The LF code represents "Forced Liquidation", indicating trades that were liquidated by IB (e.g., due to margin violations or other forced closures).
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.