loan#

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

Module description#

Loan data structures.

  • When you do short and leveraged position by borrowing assets

Classes#

Loan

Borrowed out assets.

Functions#

calculate_sizes_for_leverage(...)

Calculate the collateral and borrow loan size to hit the target leverage with a starting capital.