apply_sync_events#
- apply_sync_events(portfolio, new_reserves, default_price=1.0)[source]#
Apply deposit and withdraws on reserves in the portfolio.
Note
This is only used with deprecated
tradeexecutor.strategy.sync_model.SyncMethodV0
- Parameters:
default_price – Set the reserve currency price for new reserves.
portfolio (Portfolio) –
new_reserves (List[ReserveUpdateEvent]) –