BalanceUpdateCause#

API documentation for tradeexecutor.state.balance_update.BalanceUpdateCause Python class in Trading Strategy framework.

class BalanceUpdateCause[source]#

Bases: Enum

__init__(*args, **kwds)#

Attributes

deposit

Reserve was deposited in the vault

redemption

User redeemed assets

deposit_and_redemption

Lagoon settles both deposits and redemptions at the same time

interest

Position value has change due to accrued interest

correction

Accounting correction from on-chain balances to the state (internal ledger)

vault_flow

Velvet capital which puts deposits/redemptions directly to open positions

deposit = 'deposit'#

Reserve was deposited in the vault

redemption = 'redemption'#

User redeemed assets

deposit_and_redemption = 'deposit_and_redemption'#

Lagoon settles both deposits and redemptions at the same time

interest = 'interest'#

Position value has change due to accrued interest

correction = 'correction'#

Accounting correction from on-chain balances to the state (internal ledger)

vault_flow = 'vault_flow'#

Velvet capital which puts deposits/redemptions directly to open positions

Positive quantities are for deposits, negative quantities are for redemptions.