create_credit_supply_loan#
API documentation for tradeexecutor.strategy.lending_protocol_leverage.create_credit_supply_loan Python function.
- create_credit_supply_loan(position, trade, timestamp, mode='plan')[source]#
Create a loan that supplies credit to a lending protocol.
This is a loan with
Collateral only
Borrowed is
None
- Parameters:
position (tradeexecutor.state.position.TradingPosition) –
trade (TradeExecution) –
timestamp (datetime) –
mode (Literal['plan', 'execute']) –