Skip to content

CancelOpenOrders returns an empty list during warm up instead of throwing - #9862

Merged
Martin-Molinero merged 1 commit into
masterfrom
cancel-open-orders-warmup
Oct 2, 2026
Merged

Martin-Molinero merged 1 commit into
masterfrom
cancel-open-orders-warmup

Conversation

@Martin-Molinero

Copy link
Copy Markdown
Member

CancelOpenOrders() and CancelOpenOrders(symbol) threw during Initialize and warm up, ending the algorithm. Orders can't be placed while warming up (they come back invalid without stopping the algorithm), so there is never anything to cancel: both now return an empty list instead. Common case: a "flatten" or contract-roll handler that cancels open orders and runs during warm up.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Jg3xKmkXeokEBZtR28er8N

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Jg3xKmkXeokEBZtR28er8N
@Martin-Molinero
Martin-Molinero marked this pull request as ready for review October 2, 2026 20:30
@Martin-Molinero
Martin-Molinero merged commit 705b955 into master Oct 2, 2026
14 of 16 checks passed
@Martin-Molinero
Martin-Molinero deleted the cancel-open-orders-warmup branch October 2, 2026 20:45
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