balance_update#

API documentation for tradeexecutor.ethereum.balance_update Python module in Trading Strategy.

Module description#

Logic for managing reserve update events.

  • Sync between chain, reserve position and portfolio inflow/outflow events

Functions#

apply_balance_update_events(timestamp, ...)

Apply generic balance change events.

apply_reserve_update_events(state, ...[, ...])

Apply deposit and withdraws on reserves in the portfolio.

perform_balance_update(timestamp, state, ...)

  • Very similar to calculate_account_corrections