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.

update_credit_supply_loan(position, trade, ...)

Close/increase/reduce credit supply loan.

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

Update the loan data tracking for short position.