Skip to content

Add LIT (Limit If Touched) to OrderType enum#10

Merged
vroonhof merged 2 commits intomasterfrom
copilot/fix-issue-264
Mar 5, 2026
Merged

Add LIT (Limit If Touched) to OrderType enum#10
vroonhof merged 2 commits intomasterfrom
copilot/fix-issue-264

Conversation

Copy link

Copilot AI commented Mar 5, 2026

Parsing IB Flex reports containing LIT (Limit If Touched) orders raises ValueError: 'LIT' is not a valid OrderType. This order type appears in 2025 flex reports but was absent from the enum.

Changes

  • ibflex/enums.py: Add LIT = "LIT" to OrderType
  • tests/test_types.py: Add TradesOrderLITTestCase covering orderType="LIT"enums.OrderType.LIT
class OrderType(str, enum.Enum):
    ...
    MIT = "MIT"
    LIT = "LIT"  # Limit If Touched

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: vroonhof <38109466+vroonhof@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix issue 264 related to project functionality Add LIT (Limit If Touched) to OrderType enum Mar 5, 2026
@vroonhof vroonhof marked this pull request as ready for review March 5, 2026 00:05
@vroonhof vroonhof merged commit f7d7ff0 into master Mar 5, 2026
0 of 4 checks passed
@vroonhof vroonhof deleted the copilot/fix-issue-264 branch March 5, 2026 00:35
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.

2 participants