- End customers keep personal WhiteBIT accounts and the partner holds a user-scoped API key (trading bots, copy trading, portfolio apps) — see Fast API Key via OAuth.
- The product is a wallet: deposits, withdrawals, and conversion for each end customer on a sub-account — see Wallet-as-a-Service.
- The integration centers on deposits, withdrawals, payouts, or merchant flows — see Payment Integration. Corporate fiat ↔ crypto conversion on the partner’s own account is covered by the On/Off-Ramp Guide.
- For the full partner-type map, see Partner Solutions.
Prerequisites
Before building the sub-account integration:- Approved Embedded Trading enrollment — the program is approval-gated (see Eligibility and approval); apply via
institutional@whitebit.com. - Main-account KYB — completed through Institutional Onboarding.
- API access — HMAC-signed requests on the main account; store the secret per Security Best Practices.
- Model fit — this is Model A (partner-operated sub-accounts); confirm against the integration models concept.
Eligibility and approval
Embedded Trading enrollment is approval-gated. Every application is individually reviewed before sub-account provisioning is enabled. How to apply: emailinstitutional@whitebit.com with a description of the service. Include the registered legal entity (name, registration number, jurisdiction), licenses or registrations held (with the regulator and register reference), the intended account structure, who performs end-customer KYC, crypto-only or fiat scope, and the countries where the service is offered or marketed. The full application question list is on the Partner Solutions page. Main-account KYB via Institutional Onboarding is part of enrollment.
The end-customer KYC verification flow is WhiteBIT-branded and cannot be white-labeled.
Program terms
The revenue share is up to 40% of the trading fees generated by referred customers. Whether the share covers spot trading fees only or extends to other products is part of the commercial terms; the reconciliation walkthrough below computes on spot executed-history. The applicable rate and any additional commercial terms are agreed individually during enrollment; the canonical program terms are published on the Embedded Trading program page. Joint marketing activities — social media co-posts, blog posts, targeted email newsletters, AMA sessions, and trading competitions — are scheduled with WhiteBIT during onboarding. Referral-based earning without operating customer accounts is covered by the separate WhiteBIT Affiliate Program, which has its own terms.Account architecture
Each end customer trades from a dedicated sub-account under the partner’s main account:- Independent balances, scoped at creation via
permissions.spotEnabledandpermissions.collateralEnabled. Trades on one sub-account do not affect another. - Up to 50 API keys per sub-account, independent from the main account and from other sub-accounts, each with an IP whitelist and permission scope.
- Sub-account count — a main account holds up to 50 sub-accounts by default; the assigned account manager raises the limit on request.
- Withdrawal control at the main account — sub-account withdrawals surface on the main account for confirmation via the unconfirmed-withdrawals list and confirm endpoints; a waiting withdrawal does not expire and sends no webhook. The sub-account withdrawal endpoints are not available by default — request access through the assigned account manager; a
404response indicates the endpoints are not yet enabled for the account. - Crypto deposits to sub-accounts are disabled by default. Once deposits are enabled for the account (request via the assigned account manager), a sub-account generates deposit addresses through the standard deposit address endpoint using its own
type: 2API key, with/api/v4/main-account/addressenabled on the key through Edit Sub-Account API Key. Each sub-account also needs its own deposit and withdrawal permissions,permissions.depositsEnabledandpermissions.withdrawsEnabled.
After a block, every request signed with one of the sub-account’s API keys is refused with
401 and This user is blocked; a block on the main account does the same for the keys of all its sub-accounts. A block does not cancel open orders, and after the block a cancel request signed with the sub-account’s key is refused too, so cancel any order that must not fill before sending the block. A block does not stop deposits to the sub-account’s addresses or refuse transfers from the main account. A delete is refused while the sub-account has open spot orders, open margin or borrow positions, or active Flex or Fixed investments. The delete moves the remaining Main and Trade balances to the main account and removes the sub-account’s API keys, but a later deposit to the sub-account’s addresses is still credited to the deleted sub-account. See Block Sub-Account and Delete Sub-Account.
The sub-account endpoints in the table above share a rate limit of 1000 requests per 10 seconds; POST /api/v4/trade-account/executed-history allows 12000 requests per 10 seconds — see Rate limits.
Transfers between the main account and any sub-account are fee-free in both directions — main-to-sub for funding a customer account, sub-to-main for revenue collection. See the Sub-Accounts Overview for the full product reference.
Customer onboarding flow
TheshareKyc parameter and the email field select the KYC branch at creation. With shareKyc: true and no email, the sub-account shares the main account’s verification and is active at creation, and no separate customer KYC applies. With shareKyc: false (or omitted), the email field is required: WhiteBIT emails the end customer an invitation, and the end customer activates the sub-account and then completes verification individually. A request with email starts the invitation flow even with shareKyc: true.
Steps 2–3 apply to the dedicated-KYC branch (
shareKyc: false or omitted). With shareKyc: true and no email, the sub-account shares the main account’s verification — skip directly to Step 4 (Fund the account and enable trading) once the sub-account is created.1
Create the sub-account
Call
POST /api/v4/sub-account/create with alias and the permissions object (spotEnabled, collateralEnabled; with shareKyc: true and no email, also depositsEnabled and withdrawsEnabled), plus email when shareKyc is false or omitted; with shareKyc: true, leave email out — API Reference.2
Wait for activation and set the permissions (dedicated-KYC branch)
WhiteBIT emails the end customer an invitation, and the sub-account is activated once the customer opens the link and sets a password. The invitation link expires after three days and can be re-sent on whitebit.com, not through the API. Activation is a separate step from KYC. A KYC URL can be generated only for a sub-account that is activated, active, and does not use shared KYC. Poll
POST /api/v4/sub-account/list until the new sub-account’s status is active; until then its userId is null — API Reference. Until activation, kyc-url, balances, transfer and transfer/history return 422 "Account is not confirmed". Once status is active, set the deposit and withdrawal permissions with POST /api/v4/sub-account/edit (refused before activation): send the sub-account’s alias and the full permissions object, with spotEnabled and collateralEnabled as set at creation plus depositsEnabled and withdrawsEnabled — API Reference, FAQ. Create the API key and request the KYC URL after the edit.3
Generate the KYC URL and pass it to the customer
Call
POST /api/v4/sub-account/kyc-url with the sub-account id — API Reference. The end customer opens the temporary link and completes the WhiteBIT-branded identity verification. Track the verification state via the list endpoint. Once the sub-account is active, the API key can be created, deposit addresses requested and deposits credited before the verification completes; transfers from the main account wait for the KYC approval.4
Fund the account and enable trading
Transfer initial funds fee-free via
POST /api/v4/sub-account/transfer, and create a dedicated API key via POST /api/v4/sub-account/api-key/create for customers needing direct API access. The transfer credits the sub-account’s Main balance. To trade, move the amount to the Trade balance with POST /api/v4/main-account/transfer, signed with the sub-account’s key. Every URL starts switched off on a new key, so first switch on /api/v4/main-account/transfer for that key with POST /api/v4/sub-account/api-key/edit. Dedicated-KYC branch: WhiteBIT refuses the transfer from the main account until the end customer’s KYC is approved, and the refusal names the to field, so fund the sub-account after the approval.5
Handle deposits and withdrawals
Once crypto deposits are enabled for the account, the sub-account generates its own deposit address via the deposit address endpoint using its own
type: 2 API key. Enable /api/v4/main-account/address on the key first with Edit Sub-Account API Key, because every URL group starts switched off on a new key. The sub-account also needs its own deposit and withdrawal permissions, depositsEnabled and withdrawsEnabled, set in Step 1 or Step 2. Sub-account withdrawals require main-account confirmation — see Account architecture above for the unconfirmed-withdrawals list and confirm endpoints.- curl
- Python
Per-customer API keys
Each sub-account supports up to 50 API keys, managed via the sub-account API key endpoints (create, edit, delete, list, reset) with dedicated IP-address management.- Assign the minimum permission set per key (
Info + Tradingfor trading-only customers; deposit and withdrawal permissions only where funds movement is required) — see Security Best Practices for the permission model and key-handling rules. - Enable the URLs each key calls with Edit Sub-Account API Key: every URL group starts switched off on a new key. Deposit and withdrawal URLs can be enabled only on a
type: 2key; on atype: 1key the edit returns code5. - Configure the IP whitelist per key to match the customer’s infrastructure.
- The 14-day deactivation of unused keys applies to sub-account keys too. An unused key is disabled, not deleted: read
isEnabledfrom List Sub-Account API Keys, and enable the key again with Reset Sub-Account API Key, which keeps the key, the secret, the enabled URLs, and the IP whitelist.
clientOrderId naming conventions — see Client Order ID: account-operator implementation.
Revenue monitoring
Embedded Trading does not expose a dedicated fee-share endpoint. Earnings are reported through the WhiteBIT Analytical Dashboard, which tracks referral statistics and trading volumes. Payout mechanics and settlement schedule are agreed during enrollment. Programmatic reconciliation:- List sub-accounts via
POST /api/v4/sub-account/list. - For each sub-account, query trade history via
POST /api/v4/trade-account/executed-historyusing the sub-account’s own API key — API Reference. - For each executed deal, multiply the fee charged by the agreed fee-share percentage.
- Sum across all sub-accounts to produce earnings for the reporting window.
Fiat operations
Fiat deposits and withdrawals (EUR/SEPA) operate on the partner’s main account and require institutional fiat access — the second phase of Institutional Onboarding, completed through a fiat processing partner review. Sub-accounts support crypto operations; sub-account balances are funded and collected through fee-free internal transfers with the main account. See Payment Integration for fiat endpoint details.Testing
WhiteBIT has no public testnet or sandbox. Validate the full flow — sub-account creation, KYC, per-customer keys, funding, and a first trade — on the live API using a test sub-account and minimum order sizes. Activate Demo Tokens (DBTC/DUSDT) for risk-free spot practice on the DBTC_DUSDT pair, and check per-asset minimums via the Asset Status endpoint before placing orders. Sub-account creation, KYC, fee-free transfers, and revenue reconciliation can all be exercised on this test cohort before real customers are onboarded. Work through the Go-Live Checklist first.
Integration checklist
- Application — application sent to
institutional@whitebit.comwith the intake details and approved. - Main-account KYB — KYB verification completed for the partner entity.
- Main-account key — created with appropriate permissions.
- Sub-account creation — test sub-account created with the intended
permissionsscope and KYC branch. - Activation and KYC — invitation email opened and password set by the test customer,
status: activeobserved viasub-account/list, then deposit and withdrawal permissions set withsub-account/edit; KYC URL generated and completed; first transfer from the main account sent after the KYC approval (dedicated-KYC branch). - Deposit enablement (if per-customer deposits apply) — crypto-deposit enablement requested via the account manager.
depositsEnabledset on each sub-account that takes deposits. - Fund transfer — fee-free transfer between the main account and the sub-account verified in both directions.
- Per-customer API key — API key created for a sub-account with IP whitelist configured.
- Balance monitoring —
sub-account/balancesquery working across all sub-accounts. - Revenue reconciliation — per-sub-account trade-history collection and fee-share computation in place.
- Fiat access (if applicable) — institutional onboarding Phase 2 completed for SEPA access on the main account.
- Security review — IP whitelists, key permissions, and secret storage reviewed per Security Best Practices.
- Go-live review — all items on the Go-Live Checklist verified.
What’s next
Sub-Accounts
Sub-account isolation model, transfer mechanics, and per-key permission scopes.
Institutional Onboarding
Step-by-step KYB and fiat onboarding process.
Go-Live Checklist
Pre-production readiness verification.