Position Management
Close positions, swap collateral, and swap debt
📄️ Quote close transaction (withdraw and repay)
Returns quotes, approvals, and calldata for closing a margin position by withdrawing collateral and repaying debt.
📄️ Quote collateral swap transaction (withdraw & deposit)
Returns quotes, approvals, and calldata for swapping collateral assets in an existing margin position.
📄️ Quote debt swap transaction (borrow & repay)
Returns quotes, approvals, and calldata for swapping debt assets in an existing margin position.