lending_protocol_leverage#

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

Functions#

create_credit_supply_loan(position, trade, ...)

Create a loan that supplies credit to a lending protocol.

create_short_loan(position, trade, timestamp)

Create the loan data tracking for short position.

reset_credit_supply_loan(position, ...[, ...])

Reset interest tracking on a loan.

update_credit_supply_loan(loan, position, ...)

Close/increase/reduce credit supply loan.

update_short_loan(loan, position, trade[, ...])

Update the loan data tracking for short position.