Converts and withdraws specified assets as ETH.
The unique identifier of the portfolio
The ID of the portfolio (same as portfolioId in path)
Array of assets to withdraw
The asset ID in format “0xContractAddress:chainId”
The amount to withdraw in raw units (no decimals), or “max” to withdraw all
The number of decimals for the token
Your API key for authentication
Content-Type
string
default:"application/json"
The format of the request body
curl --request POST \
--url 'https://api.glider.fi/v1/portfolio/port_abc123/withdraw-as-eth' \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: your_api_key_here' \
--data '{
"strategyInstanceId": "port_abc123",
"assets": [
{
"assetId": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913:8453",
"amount": "500000",
"decimals": 6
},
{
"assetId": "0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb:8453",
"amount": "500000000000000000",
"decimals": 18
}
]
}'
{
"success": true,
"data": {
"workflowId": "swap-withdraw_abc123",
"runId": "run_def456",
"message": "Withdraw-as-ETH request submitted successfully",
"status": "submitted"
},
"correlationId": "corr_abc123",
"requestId": "req_xyz789",
"timestamp": "2023-05-21T13:45:12.345Z"
}