Rate limits and errors
Rate limit 429 errors
Rate limit 429 errors
- Wait for the rate limit window to reset
- Check the specific rate limit value in the endpoint documentation
- Implement rate limiting in code
CORS errors on ticker endpoint
CORS errors on ticker endpoint
Nonce error troubleshooting
Nonce error troubleshooting
- Debug the code implementation
- Recreate API keys
- Ensure system time is properly synchronized
Lending (Smartplan) endpoint 403 access errors
Lending (Smartplan) endpoint 403 access errors
/api/v4/main-account/smart/) and Flex (/api/v4/main-account/smart-flex/) endpoints. Until access is granted, these endpoints return 403 with the message You don't have permission to use this endpoint. Please contact support for more details. To gain access:- Fill the institutional services form at https://whitebit.com/institutional-services/b2b
- Provide use case details
Common API error codes quick reference
Common API error codes quick reference
422 — validation failed (check required parameters); 429 — rate limit exceeded (wait for window reset); 401 — authentication failed (check API key and HMAC signature); 403 — insufficient permissions (verify API key permissions). See Errors and Error Handling for the complete error code reference.WebSocket
Multiple time periods in WebSocket Kline
Multiple time periods in WebSocket Kline
- Open multiple WebSocket connections
- Use the equivalent HTTP method instead
Trade history limitations (24-hour window)
Trade history limitations (24-hour window)
- Subscribe to the WebSocket feed
- Accumulate and store the data
- Process the data as needed
Server locations and colocation regions
Server locations and colocation regions
Transfers and withdrawals
Transfer delays between balances
Transfer delays between balances
- Before the next step, check that the amount shows on the destination balance
- Avoid initiating withdrawals before transfer completion
- Implement proper error handling for transfer states; after a timeout or server error, do not resend automatically, and follow the between-balances row in Retry strategy by error type
Insufficient funds errors despite available balance
Insufficient funds errors despite available balance
Network confirmation requirements for deposits
Network confirmation requirements for deposits
confirmations_for_trading), the platform credits the deposit for trading only. At the later count (confirmations), the deposit also becomes available for blockchain withdrawal, for transfer to the Collateral balance, and for transfer from a sub-account to its main account. The webhook payload includes confirmations.actual and confirmations.required fields. Check the Asset Status endpoint for both counts per network.USDT alternatives for EEA users (MiCA compliance)
USDT alternatives for EEA users (MiCA compliance)
Below-minimum deposit handling
Below-minimum deposit handling
limits.deposit.<network>.min carries each network’s minimum when the response includes limits, and the top-level min_deposit can differ from the network limits. A deposit below the network minimum is not rejected and not returned. The deposit history shows the deposit with status 22 (uncredited), further deposits to the same address add up, and once the total reaches the network minimum, the deposits are credited together. Deposits that stay below the minimum are canceled after 7 days and move to status 9, which sends no webhook.Webhooks
Webhook HTTPS requirements and port
Webhook HTTPS requirements and port
- Communication occurs over port 443
- SSL/TLS encryption is mandatory
- HTTP connections are not supported
Webhook signature verification
Webhook signature verification
X-TXC-APIKEY header and an X-TXC-PAYLOAD + X-TXC-SIGNATURE for verification. Verify the HMAC-SHA512 signature using the webhook secret key to confirm the request originates from WhiteBIT. See the Webhook reference for the full verification flow.Webhook retry behavior
Webhook retry behavior
API and assets
Currency deposit and withdrawal availability
Currency deposit and withdrawal availability
- URL: https://whitebit.com/api/v4/public/assets
- The endpoint provides real-time status of all currencies
- Check the currency-specific enabled/disabled flags
Trading
Collateral endpoint naming — Margin vs Futures
Collateral endpoint naming — Margin vs Futures
BTC_USDT) and Futures Trading (up to 100x leverage on perpetual pairs like BTC_PERP). The market pair determines the product — not the endpoint path. All endpoints under /api/v4/order/collateral/ and /api/v4/collateral-account/ serve both products. See Margin Trading and Futures Trading.Minimum order sizes per market
Minimum order sizes per market
minAmount) and minimum order value (minTotal). Retrieve these values from GET /api/v4/public/markets (spot) or GET /api/v4/public/futures (futures). Orders below the minimum are rejected. See Markets & Trading Pairs.Kill-switch for emergency order cancellation
Kill-switch for emergency order cancellation
POST /api/v4/order/kill-switch with a timeout parameter (in seconds). Use POST /api/v4/order/kill-switch/status to check the current state. Designed as a safety mechanism for automated trading strategies. See the Market Maker Guide for usage patterns.Bulk order limits
Bulk order limits
POST /api/v4/order/bulk) accepts up to 20 limit orders in a single request. All orders in the batch must be for the same market pair. The collateral bulk endpoint (POST /api/v4/order/collateral/bulk) follows the same 20-order limit.Market order price in API response
Market order price in API response
POST /api/v4/trade-account/executed-history or subscribe to the WebSocket deals channel. See Order Types for market order execution details.Reduce-only order parameter
Reduce-only order parameter
reduceOnly: true on any collateral order creation endpoint. Available on margin and futures markets only.If no open position exists or the order direction matches the position direction, the API returns error code 116. If the order amount exceeds the current position size, the system reduces the order to match automatically.Pending reduce-only orders are auto-canceled with status AUTO_CANCELED_REDUCE_ONLY when the associated position closes.See Order Types — Reduce-only orders for full details.Security and API keys
API key security best practices
API key security best practices
Compromised API key response
Compromised API key response
API key auto-deactivation after inactivity
API key auto-deactivation after inactivity
Keeping spare API keys active
Keeping spare API keys active
POST /api/v4/main-account/balance is sufficient. Keys held in reserve without periodic traffic deactivate on the same schedule as unused keys. See Main balance.Reasons an API key becomes disabled
Reasons an API key becomes disabled
isEnabled in List Sub-Account API Keys shows the status, and Reset Sub-Account API Key re-enables the key. See Security best practices.API usage
High-frequency trading API optimization
High-frequency trading API optimization
API disconnection handling
API disconnection handling
Getting started with the WhiteBIT API
Getting started with the WhiteBIT API
Available SDKs and quickstart examples
Available SDKs and quickstart examples
Testing without a sandbox environment
Testing without a sandbox environment
DBTC_DUSDT pair via the standard API to validate the full
order lifecycle without real funds. For Margin, Futures, and fund-movement testing, use
minimum order sizes on the live API. See the
Go-Live Checklist for the complete testing strategy.REST API vs WebSocket — when to use each
REST API vs WebSocket — when to use each
Choosing the right SDK
Choosing the right SDK
API access levels and prerequisites
API access levels and prerequisites
Institutional and partner onboarding
Available institutional products
Available institutional products
Institutional onboarding process
Institutional onboarding process
Fee structure for institutional clients
Fee structure for institutional clients
Sandbox or testnet availability
Sandbox or testnet availability
DBTC_DUSDT
pair works with all standard Spot API endpoints. For Margin, Futures, and deposit/withdrawal
testing, use minimum order sizes on the live API. See the
Go-Live Checklist for the complete testing strategy.Regulatory licenses and certifications
Regulatory licenses and certifications
Colocation for low-latency trading
Colocation for low-latency trading
Deposit and withdrawal permissions on a sub-account created with an email
Deposit and withdrawal permissions on a sub-account created with an email
shareKyc: false) is inactive until the end customer activates it: WhiteBIT sends an invitation to that email, and the sub-account is activated once the customer opens the link and sets a password. The link expires after three days and can be re-sent on whitebit.com, not through the API. List of Sub-Accounts shows the sub-account’s status as active once activation is complete. Activation is a separate step from identity verification: POST /api/v4/sub-account/kyc-url returns 422 "Account is not confirmed" until the sub-account is activated.On a create request with an email, spotEnabled and collateralEnabled are kept after activation. Set depositsEnabled and withdrawsEnabled with POST /api/v4/sub-account/edit once the sub-account’s status is active; the edit is refused before activation. Send the sub-account’s alias and the full permissions object: spotEnabled and collateralEnabled with the values used at creation, plus depositsEnabled and withdrawsEnabled. Send the full permissions object on every later edit too: flags omitted from an edit request are turned off without a warning.A sub-account created with shareKyc: true and no email is active at creation, and its spotEnabled and collateralEnabled permissions apply at once; depositsEnabled and withdrawsEnabled go in the same create request. A request with an email starts the invitation flow even with shareKyc: true. See the Sub-account integration guide for the full flow.Compliance and regulatory
MiCA USDT restrictions for EEA users
MiCA USDT restrictions for EEA users
Travel Rule requirements for EEA withdrawals
Travel Rule requirements for EEA withdrawals
travelRule object in the withdrawal request body. The object uses a structured format: walletType (hosted or unhosted destination), beneficiary (receiver details), and vaspData (destination platform identification). See Regulatory Compliance for the field reference and code examples.Security certifications and audits
Security certifications and audits