API Overview
Introduction
WhiteBIT API provides comprehensive access to our trading platform through both public
and private
endpoints. By using any WhiteBIT API endpoints, you confirm your agreement to the Terms of Use.
Public API Endpoints
Public endpoints provide access to market data and other non-account-specific information:
- Cache Policy: All public endpoints return cached data with specific refresh intervals documented for each endpoint
- HTTP Method: Use
GET
for all public requests - Parameters: Pass parameters via query string
- Documentation: Public HTTP API v4 | Public HTTP API v2 | Public HTTP API v1
Private API Endpoints
Private endpoints provide secure access to account-specific functions like trading and balance management:
- Authentication: Required for all private endpoints - Authentication Guide
- IP Restrictions: Up to 5 trusted IPs can be configured for security
- HTTP Method: Use
POST
with appropriate Body data and Headers - Documentation: Private API v4 - Main | Private API v4 - Trade
- Helper Library: API Quick Start Helper with examples in multiple languages
WebSocket API
WebSocket connections provide real-time data streaming and interaction:
- Public WebSocket API - Market data, klines, order book, trades, and statistics
- Private WebSocket API - Account data, balances, orders, and deals
Other Integration Options
- Webhooks - Receive events and notifications on your server
- OAuth - Implement secure third-party authorization
- Colocation - Low-latency trading infrastructure services
- Self-Trade Prevention - Mechanisms to prevent wash trading