mirror of
https://github.com/wassname/catalyst.git
synced 2026-09-12 12:12:04 +08:00
ENH: Keep track of total commissions as attribute on Order
Value is summed from TRANSACTION and COMMISSION events. Defaults to None, meaning unset.
This commit is contained in:
@@ -1209,7 +1209,8 @@ class TestPerformanceTracker(unittest.TestCase):
|
||||
amount=-25,
|
||||
dt=foo_event_1.dt,
|
||||
price=10.0,
|
||||
commission=0.50)
|
||||
commission=0.50,
|
||||
order_id=order_event_1.id)
|
||||
benchmark_event_1 = Event({
|
||||
'dt': start_dt,
|
||||
'returns': 0.01,
|
||||
|
||||
Reference in New Issue
Block a user