Prerequisites
- A terminal or HTTP client (curl, Postman, or any programming language with HTTP support)
- No WhiteBIT account needed
- No API key needed
Check server availability
Confirm the API is reachable and operational.Expected response:
- cURL
- Python
Fetch available markets
Retrieve the full list of trading pairs with minimum amounts and trading rules.Expected response (trimmed):The response contains 900+ markets. Key fields:
- cURL
- Python
name (pair), stock (base currency), money (quote currency), minAmount (minimum order quantity), minTotal (minimum order value).For Go and PHP examples, see SDKs.Get BTC_USDT ticker
Fetch 24-hour pricing and volume data. The ticker endpoint returns all pairs — filter for the desired market.Expected response (BTC_USDT entry):Key fields:
- cURL
- Python
last_price (most recent trade price), base_volume (24h volume in base currency), quote_volume (24h volume in quote currency), change (24h percentage change).Fetch BTC_USDT orderbook
Retrieve the current orderbook depth. The Expected response (trimmed):Each entry is a
limit parameter controls the number of price levels returned (1–100).- cURL
- Python
[price, quantity] pair. asks = sell orders (ascending by price), bids = buy orders (descending by price).What just happened?
What just happened?
No authentication — by design — Market Data endpoints are intentionally public. No API key, no HMAC signing, no account. WhiteBIT exposes pricing, orderbook, and trade data publicly to support price aggregators, data vendors, and integration testing without requiring account creation. Public endpoints have their own rate limits but no per-key restrictions.Polling vs streaming — The five steps above use REST (request → response). This is appropriate for one-time lookups but expensive for real-time monitoring: polling the ticker endpoint every second across hundreds of pairs exhausts rate limits quickly and adds latency. For continuous price or orderbook updates, use WebSocket instead — a single persistent connection streams updates as they occur, with no polling overhead.Response shape conventions —
asks and bids arrays in the orderbook are always sorted: asks ascending by price (lowest ask first = best ask), bids descending (highest bid first = best bid). The first entry in each array is the best available price at that moment. quote_volume in the ticker is denominated in the quote currency (USDT for BTC_USDT); base_volume is denominated in the base currency (BTC).What’s Next
Spot Trading Quickstart
Place a first trade — requires an API key with Trading permission.
WebSocket Quickstart
Stream real-time price updates instead of polling.
Authentication
Set up API keys and HMAC signing for authenticated endpoints.