distribute_interest_for_assets#
API documentation for tradeexecutor.strategy.interest.distribute_interest_for_assets Python function.
- distribute_interest_for_assets(operation, state, asset, timestamp, block_number, new_amount, max_interest_gain)[source]#
Distribute the accrued interest of an asset across all positions holding this asset.
- Returns:
An event
- Parameters:
operation (InterestDistributionOperation) –
state (State) –
asset (AssetIdentifier) –
timestamp (datetime) –
block_number (int | None) –
new_amount (Decimal) –
max_interest_gain (float) –
- Return type: