Leverage (loop)
GET/v1/actions/loop/leverage
Open a leveraged position via borrow → swap → deposit. Identify the debt market with marketUidIn and collateral market with marketUidOut. Omit account for quote-only (returns data.quotes with price deltas). Include account to build full transaction calldata (populates actions with alternatives, transactions, and permissions).
Response actions fields (when account is provided):
alternatives: DEX aggregator swap transactions sorted best-output-first. Pick one to execute.transactions: Pre-trade setup — e-mode switch (Aave V3) or collateral enable (Venus). Empty if not needed.permissions: ERC20 approvals (targeting the composer contract) and lender borrow delegations (targeting the lending protocol contract). Only missing approvals are returned. Execute these first.
Request
Responses
- 200
- 400
Quote or full build response
Validation error