mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-12 01:04:09 +08:00
Changes name of filled order variable.
So that we don't replace the orders variable with the list comp. No functional change, but easier to compare the original and the results of the list comp when debugging.
This commit is contained in:
@@ -107,11 +107,11 @@ class VolumeShareSlippage(object):
|
||||
if volume_share == self.volume_limit:
|
||||
break
|
||||
|
||||
orders = [x for x in orders
|
||||
if abs(x.amount - x.filled) > 0
|
||||
and x.dt.day >= event.dt.day]
|
||||
filled_orders = [x for x in orders
|
||||
if abs(x.amount - x.filled) > 0
|
||||
and x.dt.day >= event.dt.day]
|
||||
|
||||
open_orders[event.sid] = orders
|
||||
open_orders[event.sid] = filled_orders
|
||||
|
||||
if simulated_amount != 0:
|
||||
return create_transaction(
|
||||
|
||||
Reference in New Issue
Block a user