curl --request POST \ --url 'https://api.glider.fi/v1/portfolio/port_abc123/withdraw' \ --header 'Content-Type: application/json' \ --header 'X-API-KEY: your_api_key_here' \ --data '{ "strategyInstanceId": "port_abc123", "assets": [ { "assetId": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE:8453", "amount": "50000000000000000", "decimals": 18 } ] }'
{ "success": true, "data": { "withdrawId": "withdraw_abc123", "workflowId": "withdraw_abc123", "runId": "run_def456", "message": "Withdraw request submitted successfully", "status": "submitted" }, "correlationId": "corr_abc123", "requestId": "req_xyz789", "timestamp": "2023-05-21T13:45:12.345Z" }
Initiate a withdrawal of specific assets from a portfolio
"max"
curl --request POST \ --url 'https://api.glider.fi/v1/portfolio/port_abc123/withdraw' \ --header 'Content-Type: application/json' \ --header 'X-API-KEY: your_api_key_here' \ --data '{ "strategyInstanceId": "port_abc123", "assets": [ { "assetId": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE:8453", "amount": "max", "decimals": 18 } ], "validateNonzeroBalance": true }'
{ "success": true, "data": { "withdrawId": "withdraw_def456", "workflowId": "withdraw_def456", "runId": "run_ghi789", "message": "Withdraw request submitted successfully", "status": "submitted" }, "correlationId": "corr_abc123", "requestId": "req_xyz789", "timestamp": "2023-05-21T13:45:12.345Z" }