sync#

API documentation for tradeexecutor.state.sync Python module in Trading Strategy.

Module description#

“Store information about caught up chain state.

  • Treasury understanding is needed in order to reflect on-chain balance changes to the strategy execution

  • Most treasury changes are deposits and redemptions

  • Interest rate events also change on-chain treasury balances

  • See tradeexecutor.strategy.sync_model how to on-chain treasuty

Classes#

Accounting

State of accounting corrections.

BalanceEventRef

Register the balance event in the treasury model.

Deployment

Information for the strategy deployment.

InterestSync

Track the interest sync for on-chain rebase tokens.

Sync

On-chain sync state.

Treasury

State of syncind deposits and redemptions from the chain.