sync#

tradeexecutor.state.sync module.

Module description#

Synchrone deposits/withdrawals of the portfolio.

Syncs the external portfolio changes from a (blockchain) source. See ethereum/hotwallet_sync.py for details.

Functions#

apply_sync_events(portfolio, new_reserves[, ...])

Apply deposit and withdraws on reserves in the portfolio.