Debt swap (simulate)
POST/v1/actions/loop/debt-swap
Swap debt between borrow positions and simulate post-trade state. Same parameters as GET. Send a JSON body with current portfolio state (balanceData, aprData, positions) to receive projected post-trade metrics in the simulation field. Use the data returned by the user-data endpoints directly — always include positions for accurate health-factor and borrow-capacity projections.
Request
Responses
- 200
- 400
Quote or full build with simulation
Validation error