curl --request POST \
--url https://whitebit.com/api/v4/main-account/history \
--header 'Content-Type: application/json' \
--header 'X-TXC-APIKEY: <api-key>' \
--header 'X-TXC-PAYLOAD: <api-key>' \
--header 'X-TXC-SIGNATURE: <api-key>' \
--data '
{
"transactionMethod": 1,
"ticker": "BTC",
"offset": 0,
"limit": 100,
"request": "{{request}}",
"nonce": 1594297865000
}
'import requests
url = "https://whitebit.com/api/v4/main-account/history"
payload = {
"transactionMethod": 1,
"ticker": "BTC",
"offset": 0,
"limit": 100,
"request": "{{request}}",
"nonce": 1594297865000
}
headers = {
"X-TXC-APIKEY": "<api-key>",
"X-TXC-PAYLOAD": "<api-key>",
"X-TXC-SIGNATURE": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-TXC-APIKEY': '<api-key>',
'X-TXC-PAYLOAD': '<api-key>',
'X-TXC-SIGNATURE': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
transactionMethod: 1,
ticker: 'BTC',
offset: 0,
limit: 100,
request: '{{request}}',
nonce: 1594297865000
})
};
fetch('https://whitebit.com/api/v4/main-account/history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://whitebit.com/api/v4/main-account/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'transactionMethod' => 1,
'ticker' => 'BTC',
'offset' => 0,
'limit' => 100,
'request' => '{{request}}',
'nonce' => 1594297865000
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-TXC-APIKEY: <api-key>",
"X-TXC-PAYLOAD: <api-key>",
"X-TXC-SIGNATURE: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://whitebit.com/api/v4/main-account/history"
payload := strings.NewReader("{\n \"transactionMethod\": 1,\n \"ticker\": \"BTC\",\n \"offset\": 0,\n \"limit\": 100,\n \"request\": \"{{request}}\",\n \"nonce\": 1594297865000\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-TXC-APIKEY", "<api-key>")
req.Header.Add("X-TXC-PAYLOAD", "<api-key>")
req.Header.Add("X-TXC-SIGNATURE", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://whitebit.com/api/v4/main-account/history")
.header("X-TXC-APIKEY", "<api-key>")
.header("X-TXC-PAYLOAD", "<api-key>")
.header("X-TXC-SIGNATURE", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"transactionMethod\": 1,\n \"ticker\": \"BTC\",\n \"offset\": 0,\n \"limit\": 100,\n \"request\": \"{{request}}\",\n \"nonce\": 1594297865000\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://whitebit.com/api/v4/main-account/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-TXC-APIKEY"] = '<api-key>'
request["X-TXC-PAYLOAD"] = '<api-key>'
request["X-TXC-SIGNATURE"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"transactionMethod\": 1,\n \"ticker\": \"BTC\",\n \"offset\": 0,\n \"limit\": 100,\n \"request\": \"{{request}}\",\n \"nonce\": 1594297865000\n}"
response = http.request(request)
puts response.read_bodyGet deposit/withdraw history
The endpoint retrieves the history of deposits and withdraws.
A sub-account reads its own deposit and withdrawal history with its own API key.
Deposit status codes:
Successful- 3, 7Canceled- 4, 9 (status 9 sends no webhook)Unconfirmed by user- 5On hold- 21Uncredited- 22 (a deposit below the network minimum waits in this status; deposits to the same address add up and are credited together once the total reaches the minimum, otherwise the deposit is canceled with status 9 after 7 days)Pending- 15AML wait- 26: the deposit waits for the AML check result from the provider. The deposit is not credited until the check passes.
The history also returns status 29 (Credited, on hold): the funds are credited, and part may stay held until the network fully confirms the deposit. Status 23 is also reported as Pending: the deposit is in progress and not final.
Successful (3, 7) and Canceled (4, 9) are final states. A deposit in status 5, 21, 22, 23, 26 or 29 is not final and later ends as 3, 7, 4 or 9. A deposit in status 26 moves to 3 or 7 when the check passes, 21 when the check fails, 27 when Travel Rule data is required, or 9 if canceled. A successful deposit (3, 7) does not later transition to On hold (21) or Uncredited (22).
Travel Rule Deposit check status codes:
Awaiting verification- 27: the deposit is frozen because data required under the Travel Rule is missing. Where the Travel Rule API is enabled for the account, submit the data with Submit deposit originator data; otherwise the account holder provides it at whitebit.com.Confirmation in progress- 28: The Travel Rule data provided by the user is currently being verified by WhiteBIT.
⚠️ Due to regulatory requirements in Turkey and EU, the system places every inbound crypto deposit on hold (frozen) until confirming the transaction’s origin. The sender must provide certain details if the transaction is from another Virtual Asset Service Provider (VASP) or verify the address if from a self-hosted wallet. The system credits deposited funds to the account only after successful verification.
Withdraw status codes:
Pending- 1, 2, 6, 10–17 (withdrawal in progress).Successful- 3, 7Canceled- 4 (final; the amount returns to the balance)Unconfirmed by user- 5AML frozen- 21AML wait- 26: the withdrawal waits for the AML check result from the provider. The amount is already held from the balance. Not final: the withdrawal moves to aPendingcode when the check passes, 21 when the check fails, or 4 if canceled.Partially successful- 18
Rate limit: 200 requests/10 sec.
Requests with limit values above 100 return large payloads. Use high limits only when necessary and ensure the client application can handle large response sizes.
The API does not cache the response.
Results are sorted newest first (descending by timestamp).
No date filtering: the endpoint does not accept startDate / endDate parameters, and pagination is capped at offset + limit ≤ 10000 (requests beyond the cap return Offset is too big. Please use offset + limit less than 10000.). To read more than 10,000 records, narrow the result set with the available filters (transactionMethod, ticker, status) and paginate within each subset; for a complete history export beyond the cap, use the Report on the History page.
curl --request POST \
--url https://whitebit.com/api/v4/main-account/history \
--header 'Content-Type: application/json' \
--header 'X-TXC-APIKEY: <api-key>' \
--header 'X-TXC-PAYLOAD: <api-key>' \
--header 'X-TXC-SIGNATURE: <api-key>' \
--data '
{
"transactionMethod": 1,
"ticker": "BTC",
"offset": 0,
"limit": 100,
"request": "{{request}}",
"nonce": 1594297865000
}
'import requests
url = "https://whitebit.com/api/v4/main-account/history"
payload = {
"transactionMethod": 1,
"ticker": "BTC",
"offset": 0,
"limit": 100,
"request": "{{request}}",
"nonce": 1594297865000
}
headers = {
"X-TXC-APIKEY": "<api-key>",
"X-TXC-PAYLOAD": "<api-key>",
"X-TXC-SIGNATURE": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-TXC-APIKEY': '<api-key>',
'X-TXC-PAYLOAD': '<api-key>',
'X-TXC-SIGNATURE': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
transactionMethod: 1,
ticker: 'BTC',
offset: 0,
limit: 100,
request: '{{request}}',
nonce: 1594297865000
})
};
fetch('https://whitebit.com/api/v4/main-account/history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://whitebit.com/api/v4/main-account/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'transactionMethod' => 1,
'ticker' => 'BTC',
'offset' => 0,
'limit' => 100,
'request' => '{{request}}',
'nonce' => 1594297865000
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-TXC-APIKEY: <api-key>",
"X-TXC-PAYLOAD: <api-key>",
"X-TXC-SIGNATURE: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://whitebit.com/api/v4/main-account/history"
payload := strings.NewReader("{\n \"transactionMethod\": 1,\n \"ticker\": \"BTC\",\n \"offset\": 0,\n \"limit\": 100,\n \"request\": \"{{request}}\",\n \"nonce\": 1594297865000\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-TXC-APIKEY", "<api-key>")
req.Header.Add("X-TXC-PAYLOAD", "<api-key>")
req.Header.Add("X-TXC-SIGNATURE", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://whitebit.com/api/v4/main-account/history")
.header("X-TXC-APIKEY", "<api-key>")
.header("X-TXC-PAYLOAD", "<api-key>")
.header("X-TXC-SIGNATURE", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"transactionMethod\": 1,\n \"ticker\": \"BTC\",\n \"offset\": 0,\n \"limit\": 100,\n \"request\": \"{{request}}\",\n \"nonce\": 1594297865000\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://whitebit.com/api/v4/main-account/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-TXC-APIKEY"] = '<api-key>'
request["X-TXC-PAYLOAD"] = '<api-key>'
request["X-TXC-SIGNATURE"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"transactionMethod\": 1,\n \"ticker\": \"BTC\",\n \"offset\": 0,\n \"limit\": 100,\n \"request\": \"{{request}}\",\n \"nonce\": 1594297865000\n}"
response = http.request(request)
puts response.read_bodyUsed in these guides
- Payment Integration — crypto deposits, withdrawals, conversion, WhiteBIT Codes, and Express Withdraw.
- Crypto-as-a-Service integration — reconciling end-user deposits and payouts against the account history.
Authorizations
Body
Currency's ticker. Example: BTC
"BTC"
Can be used for filtering transactions by specific memo
"48565488244493"
Can be used for filtering transactions by status codes.
⚠️ Caution: Use this parameter with the appropriate transactionMethod and valid status codes for that method. See the status code lists in the endpoint description above for valid codes. Example: "status": [3,7]
A filter on the successful codes alone ([3,7]) leaves out transactions in every other status, such as canceled, on-hold or uncredited deposits. To follow a transaction to its final status, omit status.
Status 26 (AML wait) is accepted with transactionMethod 1, 2 or without it. A filter on Pending codes alone does not return transactions in status 26.
[3, 7]
Was this page helpful?