QuantConnect / Lean

Lean Algorithmic Trading Engine by QuantConnect (Python, C#)
https://lean.io
Apache License 2.0
9.55k stars 3.23k forks source link

Notify User About 5-Second Order Timeout #8326

Open AlexCatarino opened 1 week ago

AlexCatarino commented 1 week ago

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