Skip to content

feat: add trigger order support (TriggerMarket, TriggerLimit)#113

Open
ChesterSim wants to merge 2 commits intomasterfrom
chester/be-253-enable-oracle-limit-orders-on-swift
Open

feat: add trigger order support (TriggerMarket, TriggerLimit)#113
ChesterSim wants to merge 2 commits intomasterfrom
chester/be-253-enable-oracle-limit-orders-on-swift

Conversation

@ChesterSim
Copy link
Copy Markdown

Summary

  • Add OrderType::TriggerMarket and OrderType::TriggerLimit to validate_signed_order_params allowed order types
  • Extend no-auction-params validation branch to accept trigger orders (same path as no-auction limit orders)
  • Add test cases for trigger order validation

Test plan

  • test_validate_trigger_order_params passes — TriggerMarket/TriggerLimit accepted without auction params
  • test_validate_trigger_order_params passes — TriggerMarket/TriggerLimit rejected with auction params
  • Existing tests pass (no regressions)

🤖 Generated with Claude Code

ChesterSim and others added 2 commits March 31, 2026 16:13
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Trigger orders with valid auction params pass through the auction
validation branch (same as limit orders), so asserting they fail
with InvalidOrderAuction was wrong.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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