interest#
API documentation for tradeexecutor.strategy.interest Python module in Trading Strategy.
Module description#
Functions to refresh accrued interest on credit positions.
Functions#
|
Update the internal ledger to match interest accrued on on-chain balances. |
|
Distribute the accrued interest of an asset across all positions holding this asset. |
|
Update interest one position, one side of loan. |
|
Calculate new token amount, assuming fixed interest. |
|
Get all tokens in open positions that accrue interest. |
|
Record interest rate at the time opening position. |
|
Set the last updated at flag for rebase interest calcualtions at the internal state. |
|
Update position's interests on all tokens that receive interests |
|
Poke leverage position to increase its interest amount. |
|
Updates accrued interest on lending protocol leveraged positions. |