Skip to main content
POST /api/v1/account/spot_asset/withdraw
The operation type for signing is "withdraw_spot_asset".

Request Body

FieldTypeNeedDescriptionExample
”account”stringrequiredUser’s wallet address42trU9A5…
“signature”stringrequiredCryptographic signature5J3mBbAH…
“timestamp”integerrequiredCurrent timestamp in milliseconds1716200000000
”symbol”stringrequiredSpot asset symbolSOL
”amount”stringrequiredAmount to withdraw1.00000000
”idempotency_key”stringoptionalFull UUID string. Prevents duplicate withdrawals550e8400-e29b-41d4-a716-446655440000
”agent_wallet”stringoptionalAgent wallet address8zFqj1Kp…
“expiry_window”integeroptionalSignature expiry in milliseconds10000

Response

  • Status 200: Successfully submitted withdrawal
{
  "success": true,
  "data": {
    "symbol": "SOL",
    "batch_nonce": 42,
    "requested_amount": "1.00000000",
    "fee_amount": "0.00100000"
  }
}
FieldTypeDescription
'symbol'stringSpot asset symbol
'batch_nonce'integerNonce of the withdrawal batch
'requested_amount'decimal stringAmount requested for withdrawal
'fee_amount'decimal stringFee deducted from the withdrawal
  • Status 400: Invalid request parameters
  • Status 401: Unauthorized access
  • Status 409: Duplicate idempotency key
  • Status 500: Internal server error

Code Example (Python)

import requests

payload = {
    "account": "42trU9A5...",
    "signature": "5J3mBbAH...",
    "timestamp": 1716200000000,
    "symbol": "SOL",
    "amount": "1.00000000",
}

response = requests.post(
    "/api/v1/account/spot_asset/withdraw",
    json=payload,
    headers={"Accept": "*/*"},
)

data = response.json()