ENH: Allow passing additional adjustments to calculate_capital_changes

If subclasses have additional capital change information that
is required to correctly calculate the target values for
cash capital changes, it can now be provided via
"portfolio_value_adjustment".
This commit is contained in:
John Ricklefs
2016-09-01 16:04:46 -04:00
parent 5b1aa5ec55
commit 311284475a
2 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -2217,7 +2217,7 @@ def order_stuff(context, data):
'type': 'cash',
'target': value if change_type == 'target' else None,
'delta': 50000.0
})
})
# 1/03: price = 10, place orders
# 1/04: orders execute at price = 11, place orders