Max collateral swap range (with body)
POST/v1/data/loop/range/collateral-swap
Compute the maximum amount for a collateral swap.
The max swappable amount equals the user's collateral deposit in the source (input) asset.
Requires positions[] in the POST body (or account for GET) to read the user's collateral balances.
POST accepts a JSON body with the user's current portfolio state, avoiding an on-chain fetch.
Request
Responses
- 200
- 400
Max collateral swap range
Validation error