mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-19 11:22:06 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user