Lean
Lean copied to clipboard
Implement NullMarginModel for Live Trading
Expected Behavior
Live trading should lean on the brokerage margin limitations and not impose them in LEAN.
Actual Behavior
LEAN models restrict brokerage margin.
Potential Solution
- Improve option margin models
- and Implement null margin model to disable restrictions for live trading.
Reproducing the Problem
Live trading straddles.
Checklist
- [x] I have completely filled out this template
- [x] I have confirmed that this issue exists on the current
masterbranch - [x] I have confirmed that this is not a duplicate issue by searching issues
Are there any updates on this request? Implementing a NullMarginModel will open up a much wider array of options strategies that can be deployed via QuantConnect. Thank you!
This would be very valuable to me as well.
+1
Has this issue been resolved? Is there a way to turn off margin limitations for options?
Very interested in this!
- Confirm if same or different to ConstantBuyingPowerModel
- If same; then add a shim NullMarginModel with default 0.001 (tiny incase account currency BTC)
- Add an example algorithm using it.
- https://github.com/QuantConnect/Lean/blob/master/Common/Securities/ConstantBuyingPowerModel.cs