Scaled down order in simulated broker mentioned but not implemented?
pmkenny1234 opened this issue · 0 comments
pmkenny1234 commented
On line 584 of simulated_broker.py (in _execute_order()), there is a comment about scaling down the order if there isn't available cash. However, a few lines later scaled_quantity is set to just order.quantity. Is it desired that the scaling actually happen? I'm definitely seeing a negative cash balance commonly when running simulations, which makes sense since orders may be placed well before they're actually filled.