Account

private/get_account

Changed on

Returns account-level information for a given wallet address: the list of its subaccount IDs, WebSocket rate limits (matching, non-matching, perp, and option messages per second) and any per-endpoint overrides, cancel-on-disconnect and RFQ-maker flags, the account creation timestamp, and a fee_info block with fee discounts and per-instrument maker/taker fee overrides expressed as decimals. Returns an account-not-found error if the wallet has never been registered.

post/private/get_account

Request

  • Base URL
    https://api.derive.xyz/v3
  • Auth
    API key in header X-DeriveWallet and API key in header X-DeriveTimestamp and API key in header X-DeriveSignature

Request body

GetAccountRequest required
wallet, string required

20-byte Ethereum address as a 0x-prefixed lowercase hex string.

Response

Success

PrivateGetAccountResponse required
cancel_on_disconnect, boolean required
creation_timestamp_sec, integer nullable
fallback_subaccount_id, integer required

Subaccount that receives deposits whose requested destination is unusable — unknown manager id, or the per-wallet subaccount cap already reached. Allocated with the account, and always in the fallback risk universe (id 0).

fee_info, AccountFeeInfo required
is_rfq_maker, boolean required
per_endpoint_tps, object required
referral_code, string nullable
subaccount_ids, integer[] required
wallet, string required
websocket_matching_tps, integer required
websocket_non_matching_tps, integer required
websocket_option_tps, integer required
websocket_perp_tps, integer required
whitelisted_recipients, string[] required

Recipients that session keys may withdraw or transfer ERC-20s to. The owner and Admin-scoped session keys bypass this list.

Changes

    • info

      the endpoint scheme security DeriveWallet AND DeriveTimestamp AND DeriveSignature was added to the API

    • info

      added the media type application/json for the response with the status