Skip to main content
POST /api/v1/account/settings/spot
The operation type for signing is "update_account_spot_settings".

Request Body

FieldTypeNeedDescriptionExample
”account”stringrequiredUser’s wallet address42trU9A5…
“signature”stringrequiredCryptographic signature5J3mBbAH…
“timestamp”integerrequiredCurrent timestamp in milliseconds1716200000000
”symbol”stringrequiredSpot asset symbolSOL
”unified_margin_excluded”booleanrequiredWhether to exclude this asset from unified margin collateraltrue
”agent_wallet”stringoptionalAgent wallet address8zFqj1Kp…
“expiry_window”integeroptionalSignature expiry in milliseconds10000

Response

  • Status 200: Successfully updated spot settings
{
  "success": true
}
  • Status 400: Invalid request parameters
  • Status 401: Unauthorized access
  • Status 500: Internal server error

Code Example (Python)

import requests

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

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

data = response.json()