prepare_interest_distribution#
API documentation for tradeexecutor.strategy.interest.prepare_interest_distribution Python function.
- prepare_interest_distribution(start, end, portfolio, pricing_model)[source]#
Get all tokens in open positions that accrue interest.
We use this data to sync the accrued interest since the last cycle
See
tradeexecutor.strategy.sync_model.SyncModel.sync_interests()
- Returns:
Interest bearing assets used in all open positions
- Parameters:
start (datetime) –
end (datetime) –
portfolio (Portfolio) –
pricing_model (PricingModel) –
- Return type: