This use case builds on the Fast API Key via OAuth integration — the prerequisite flow for consent, key issuance, one-time secret retrieval, signing, and revocation. Complete that integration first. Copy-trading access is granted on top of an approved Fast API Key integration.
Architecture
Each follower keeps a personal WhiteBIT account — WhiteBIT performs KYC and holds custody — and grants the partner an OAuth-issued API key on the consent screen. One key is issued per follower. The partner backend computes the copy logic — which lead-trader orders to mirror, position sizing, and timing. The backend then places the resulting orders on the follower’s account, signing each request with that follower’s key. The account an order lands on is determined by which follower’s key signs the request. The V4 trade API has no account-selector parameter — a request always acts on the account that owns the API key in theX-TXC-APIKEY header. Mirroring the same lead trade across many followers means placing one signed order per follower, each with that follower’s own key.
Permissions and scope
Copy trading requires order placement and cancellation on the follower’s account. The follower selects the key’s permissions on the WhiteBIT consent screen — the partner does not pass a permission set in the authorization request and cannot influence the follower’s choice (see Key permissions). To mirror orders, the follower must grant trade-level access: order placement and cancellation, convert, and internal transfer between the follower’s own balances. External withdrawal is a separate, user-controlled grant behind an additional consent-screen confirmation and is not needed for copy trading. Named API key types — Read-only, Trade, and Custom — are being introduced for the Fast API Key flow. Once available, the operations above map to the Trade type, which caps a key at trade-level access and excludes external withdrawal. The partner reads the permissions a follower actually granted from thepermissions array on GET /oauth2/api-key/info, and branches on the locale-independent name value. See Key permissions for the full permission model.
Order placement
The partner places each mirrored order on the follower’s account through the V4 trade API, signing with the follower’s OAuth-issued key. Requests are authenticated by theX-TXC-APIKEY, X-TXC-PAYLOAD, and X-TXC-SIGNATURE headers — externalId is the value sent in X-TXC-APIKEY. The signing process is the same as for a manually-created key; see Private HTTP API authentication.
The fields below are the copy-trading-relevant subset of the limit-order request. The full request and response schemas, including all order types and the signed-payload fields, are on the API Reference pages linked at the end of each table.
Request — Create Limit Order (POST /api/v4/order/new):
For market and stop variants, see Create Market Order and the other order endpoints.
Response — order confirmation (subset of the shared order shape):
Full field list: Create Limit Order.
Endpoints
Copy trading composes the Fast API Key management endpoints with the standard V4 spot trading and monitoring endpoints. Every trade request acts on the account whose key signs it. A copy-trading backend calls the endpoints below, grouped by role. Key management, per follower (from the Fast API Key flow):
Order placement and management, signed with the follower’s key:
Fill monitoring and reconciliation, per follower:
Subscribing to a follower’s private WebSocket streams requires a WebSocket authentication token from
POST /api/v4/profile/websocket_token. Confirm that an OAuth-issued key can obtain this token for the follower’s account before making the WebSocket streams the primary fill-monitoring path; until then, poll executed-order history as the reliable per-follower fallback.Operational pitfalls
Copy trading fans one lead trade out to many independent accounts, which introduces failure modes a single-account integration does not have.- No batch or account selector. The V4 trade API acts only on the account that owns the signing key. Mirroring one lead trade means one signed request per follower; no endpoint places an order across multiple accounts.
- Rate limits apply per IP address, not per follower. REST rate limits are enforced per IP — the default is 10,000 requests per 10 seconds, and
/trade-account/executed-historyallows 12,000 per 10 seconds. A backend that serves many followers from one IP shares a single budget across every follower’s signed requests, so per-IP sharing — not a per-follower budget — is the fan-out constraint to design around. Pace requests across the window, handle429with backoff, and consider spreading a large follower base across egress IPs — see Rate limits. - Follower keys are revoked outside the partner’s control. An OAuth-issued key is revoked when the follower changes the account password or the account is blocked or frozen, and it is disabled after 14 days of inactivity. Signed requests then fail; re-run the consent flow to reissue. The OAuth access token used for key management lasts 4 hours with no refresh — obtain a new one through a fresh consent when it expires. See Fast API Key via OAuth.
- Permission grants vary per follower. The follower chooses permissions on the consent screen, so a follower can grant less than trade-level access. Read the
permissionsarray onGET /oauth2/api-key/infobefore mirroring, and skip followers without order-placement permission. External withdrawal is never required for copy trading — do not request it. - Balances and market minimums differ per follower. Size each mirrored order to the follower’s own balance and the market’s minimum order size. Expect per-follower rejections for insufficient balance and partial fills rather than uniform execution.
- Regional restrictions apply per follower. For EEA followers, USDT deposits, withdrawals, and WhiteBIT Codes are unavailable under MiCA — USDC and EURI are the documented alternatives — which constrains how those followers are funded and which stablecoins those followers hold. Account for per-follower differences rather than assuming a uniform asset set. See Regulatory Compliance.
- Retries can double-place. Set a
clientOrderIdon each mirrored order so a retried request reconciles to the same lead trade and follower instead of creating a duplicate. - The API secret is returned once. Capture and encrypt
apiSecretat issuance. A re-fetch returns409 Conflictand requires deleting and re-issuing the key.
Common questions
Common questions from copy-trading partners, beyond the eligibility and gating covered in the Embedded Trading FAQ.Copy-trading API availability
There is no copy-specific endpoint. Copy trading is an orchestration of the Fast API Key flow and the standard spot order endpoints — the partner backend supplies the copy logic.Follower connection and revocation
A follower grants an OAuth-issued key on the WhiteBIT consent screen; the partner capturesexternalId and the one-time secret. To disconnect, revoke the key with DELETE /oauth2/api-key/{externalId} — the platform emails the follower on revocation.
DELETE is authenticated with a Bearer access token that lasts 4 hours with no refresh, so revocation depends on holding a valid token: revoke during the follower’s active session, or obtain a fresh token through a new consent flow. A dormant follower’s key still winds down without action — an OAuth-issued key auto-deactivates after 14 days without API activity, and is revoked when the follower changes the account password or the account is blocked or frozen. If revoking a dormant follower’s key without fresh consent is required, confirm the available management path with WhiteBIT.
Per-follower fill tracking
Poll Query executed order history for per-follower fills, and subscribe to each follower’s Orders Executed and Deals account streams for real-time updates where an OAuth-issued key can obtain a WebSocket token (see the monitoring note under Endpoints). Reconcile each fill to its lead trade and follower with theclientOrderId set at placement.
Sandbox-free testing
WhiteBIT has no public testnet. Validate the flow on the live API with a small follower cohort and minimum order sizes; Demo Tokens (DBTC/DUSDT) allow risk-free spot practice. Work through the Go-Live Checklist before scaling.
Approval and commercial terms
Copy-trading access is approval-gated — it is not available by default and requires an internal review in addition to Fast API Key approval. To request it, contactinstitutional@whitebit.com with the intended use case, the jurisdiction where the partner’s legal entity is registered, and the licenses it holds. Whether attribution or commercial terms apply is confirmed with WhiteBIT during enrollment.
What’s next
Fast API Key via OAuth
The prerequisite flow: consent, key issuance, secret retrieval, signing, and revocation.
Create Limit Order
Full request and response schema for order placement.
App Builders Overview
What App Builders can build, who it is for, and how to get started.
App Builders FAQ
Key types, rate limits, revocation, and copy-trading gating questions.