interest_distribution#

API documentation for tradeexecutor.state.interest_distribution Python module in Trading Strategy.

Module description#

Distribute gained asset interest across positions holding those assets.

Data structures used in interest distribution.

Classes#

AssetInterestData

Per-asset data we track in interest calculations.

InterestDistributionEntry

Map interest distribution across different trading positions.

InterestDistributionOperation

One interest update batch we do.