apply_balance_update_events#
API documentation for tradeexecutor.ethereum.balance_update.apply_balance_update_events Python function.
- apply_balance_update_events(timestamp, strategy_universe, state, pricing_model, asset_balances, asset_to_position)[source]#
- Apply generic balance change events. - Used for Velvet in-kind deposit/withdrawal flows 
- Reserve position is handled separately by - apply_reserve_update_events()
 - Parameters:
- timestamp (datetime) – 
- strategy_universe (TradingStrategyUniverse) – 
- state (State) – 
- pricing_model (PricingModel) – 
- asset_balances (Iterable[OnChainBalance]) – 
- asset_to_position (dict[tradeexecutor.state.identifier.AssetIdentifier, tradeexecutor.strategy.asset.AssetToPositionsMapping]) – 
 
- Return type: