QuantConnect / QuantConnect/Lean
Notify User About 5-Second Order Timeout
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 21.7k
- Forks
- 5.3k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 34
Description
Expected Behavior
When a market order doesn't fill in five seconds and times out, the order tag is updated to "timed out" (and the order status changes?). A brokerage message suggests the order might get filled and that they can increase the self.transactions.market_order_fill_timeout.
Actual Behavior
The user doesn't know why the order hasn't been filled. In some cases, the order is filled at the brokerage.
Potential Solution
N/A
Reproducing the Problem
It is not deterministic as it depends on the brokerage response time.
System Information
QuantConnect Cloud
Checklist
- I have completely filled out this template
- I have confirmed that this issue exists on the current
masterbranch - I have confirmed that this is not a duplicate issue by searching issues
- I have provided detailed steps to reproduce the issue
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the market-order timeout path around self.transactions.market_order_fill_timeout and how order tags, status, and user-facing brokerage messages are handled. Reproduce or simulate a delayed brokerage response, then verify that a timed-out order clearly communicates its state and possible brokerage fill without misreporting completion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- fintech-quant
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100