If a market order is partially filled, does the algo keep trying to purchase it until is completed? The below fill model implies that that is what happens.

https://github.com/QuantConnect/Lean/blob/55cfa85eb53e19b5e8ab19f4241c151fda6c5692/Algorithm.Python/CustomModelsAlgorithm.py

 

Author