Skip to main content
Create a sub-account, transfer funds into the sub-account, generate a dedicated API key, and verify the balance — all via API.

Prerequisites

  • A WhiteBIT account with completed KYC (register)
  • An API key with Trade permission and sub-account management capability (create key)
  • Funds in Main balance (sub-account transfers draw from Main balance)
  • HMAC-SHA512 signing configured (authentication guide)
  • curl and jq installed (for command-line examples)
1

Create a sub-account

Create a new sub-account with an alias and permissions.
For Go and PHP examples, see SDKs.Required fields: alias (display name), permissions (object with spotEnabled and collateralEnabled). When shareKyc is false or omitted, email is also required.Expected response: An object containing the sub-account id. Save the id for subsequent steps.
2

Transfer funds to the sub-account

Move assets from the main account to the newly created sub-account.
Required fields: id (sub-account UUID), direction (main_to_sub or sub_to_main), ticker, amount. Transfers are instant and fee-free.Expected response:
3

Create an API key for the sub-account

Generate a dedicated API key for the sub-account to enable independent trading.
Required fields: subAccountId (UUID), type (1 = info and trading, 2 = info, trading, deposits, withdrawals). Optional: title (custom name for the key).
Save the secretKey immediately — the API does not return the secret key again after creation.
4

Check sub-account balances

Verify that the transferred funds appear in the sub-account balance.
Expected response: A balance object showing the transferred USDT funds.
The sub-account now has an independent balance and API key. The API key can be used independently for trading operations on the sub-account. To manage IP whitelists for the new key, use POST /api/v4/sub-account/api-key/ip-address/create.

What’s Next

Sub-Accounts Overview

Integration patterns for fund managers, brokers, and prop trading firms.

Broker Guide

End-to-end integration guide for the Broker Program.
For Go and PHP examples, see SDKs.