- Sep 13, 2021 minor fixes and updates to all docs
- Jun 17, 2021 added webhook response examples
- Jun 14, 2021 added buy stock market order to API v4
Public WebSocket API - General methods
Private WebSocket API - Authentication + private methods (trade balance, orders, deals methods)
Public API V1 Documentation - General endpoints.
Public API V2 Documentation - Modified general endpoints + new endpoints.
Public API V4 Documentation - Modified general endpoints + new endpoints.
Private API Documentation - Authentication - How to use requests that require authentication on WhiteBIT.
Private API V4 Documentation - Main balance - Main balance & deposit/withdraw endpoints.
Private API V1 Documentation - Trade balance - Deprecated use V4 alternatives. Documentation for making private trading requests
Private API V4 Documentation - Trade balance - Additional endpoints.
Private Webhooks Documentation - Main balance - Documentation for processing webhooks
- WhiteBIT API supports
private
andpublic
endpoints. - Available API versions:
V1
,V2
,V4
. - Using Public endpoints:
- Public endpoints are cached. You can find specific cache refresh interval for each particular request in API documentation.
- Use HTTP method
GET
method when making a request. - Use
query string
if you need to send additional data.
- Using Private endpoints - full guide Private API Authentication Documentation:
- To make private API calls:
- Go to your account on whitebit.com and navigate to account settings.
- Click on the API keys tab.
- Select the appropriate configuration tab for your API keys. Different API keys allow access to different API calls.
- Generate an API key.
- Enable IP restrictions by specifying up to 5 trusted IPs (optional, recommended)
- Enable Endpoint access restrictions. Select only those endpoints, that you are going to use and click "Apply" button.
- Auth request should be using
POST
method and should include:- Body data - JSON that includes:
- 'request' - a request path without the domain name. Example:
'/api/v4/trade-account/balance'
. - 'nonce' - a number that is always larger than the previous request’s nonce number. Example:
'1594297865'
. A good method of creating a nonce is to use the unix timestamp in milliseconds. This way you'll always get an incrementing number, but make sure not to send two API calls at the same time, otherwise their nonce will be identical. - params of request - Example:
'ticker': 'BTC'
- 'request' - a request path without the domain name. Example:
- Headers:
'Content-type': 'application/json'
'X-TXC-APIKEY': api_key
- where api_key is your public WhiteBit API key'X-TXC-PAYLOAD': payload'
- where payload is base64-encoded body data'X-TXC-SIGNATURE': signature
- where signature ishex(HMAC_SHA512(payload), key=api_secret))
- Body data - JSON that includes:
- To help you get started with our API, we've created the API Quick start helper library. It supports the following languages:
Go
NodeJS
Python
PHP
Java
Kotlin
DotNet
Ruby
C++
- To make private API calls: