Actions APIVaultsSlugUnloop
Validate a target-leverage unloop request against the current position.
Path Parameters
slug*string
Length
1 <= lengthRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
chainId*integer
Range
0 < valuemarketId*string
Match
^0x[0-9a-fA-F]{64}$sender*string
Position owner and signer of every returned transaction. Relayed execution is not supported.
Match
^0x[a-fA-F0-9]{40}$leverageBps*integer
0 fully exits; 10000 leaves an unborrowed collateral position (1x). Must be below current leverage.
Range
0 <= value <= 4294967295slippageBps?integer
Share-price slippage in basis points (50 = 0.5%). Supply this or the raw price limit, never both.
Range
0 <= value <= 9999minSharePriceE27?string
Minimum accepted redemption price in raw asset/share units, scaled by 1e27.
Match
^\d{1,78}$deadline?integer
Unix seconds; latest keeper execution time. Omit for now + 17 days; a future timestamp overrides the default.
Range
0 < valueDefault
1793089765Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/vaults/nest-wisdom-vault/unloop/quote" \ -H "Content-Type: application/json" \ -d '{ "chainId": 1, "marketId": "string", "sender": "string", "leverageBps": 0 }'{ "data": { "slug": "string", "chainId": 0, "marketId": "string", "sender": "string", "blockNumber": "string", "vaultAddress": "string", "loanToken": "string", "shareToken": "string", "unlooperAddress": "string", "adapterAddress": "string", "leverageBps": 0, "minSharePriceE27": "string", "deadline": 0, "currentCollateralShares": "string", "currentBorrowShares": "string", "execution": "keeper" }}