account_correction#
tradeexecutor.strategy.account_correction Python module in Trading Strategy framework.
Module description#
Apply accounting corrections on the strategy state.
Read on-chain balances
Compare them to the balances seen in the state
Adjust statebalacnes to match chain based ones
Generate the accounting events to reflect these changes
Classes#
Accounting correction applied to a balance. |
|
An enumeration. |
Functions#
|
Update the state to reflect the true on-chain balances. |
|
Figure out differences between our internal ledger (state) and on-chain balances. |
|
Get a table output of accounting corrections needed. |
|
Apply the accounting corrections on the state (internal ledger). |
Transfer away non-reserve assets that cannot be mapped to an open position. |