API documentation for tradeexecutor.strategy.lending_protocol_leverage Python module in Trading Strategy.

Module description#

Lendindg protocol leveraged.

  • Various helpers related to lending protocol leverage


create_credit_supply_loan(position, trade)

Create a loan that supplies credit to a lending protocol.

create_short_loan(position, trade)

Create the loan data tracking for short position.

plan_loan_update_for_short(loan, position, trade)

Update the loan data tracking for short position.

update_credit_supply_loan(position, trade)

Close/increase/reduce credit supply loan.