Skip to main content
POST
/
api
/
v4
/
main-account
/
codes
/
history
Get codes history
curl --request POST \
  --url https://whitebit.com/api/v4/main-account/codes/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 '
{
  "request": "{{request}}",
  "nonce": "{{nonce}}"
}
'
{
  "total": 29,
  "data": [
    {
      "amount": "+0.002",
      "code": "WBe11f4fce-2a53-4edc-b195-66b693bd77e3ETH",
      "date": 1598296734,
      "status": "Activated",
      "ticker": "ETH",
      "external_id": "cf7c3ff8-5eb0-11ed-9b6a-0242ac120002"
    },
    {
      "amount": "-0.002",
      "code": "WBe11f4fce-2a53-4edc-b195-66b693bd77e3ETH",
      "date": 1598296332,
      "status": "Activated",
      "ticker": "ETH",
      "external_id": "52995812-5eb1-11ed-9b6a-0242ac120002"
    }
  ],
  "limit": 100,
  "offset": 0
}

Documentation Index

Fetch the complete documentation index at: https://whitebit-mintlify-seo-descriptions-1776039202.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-TXC-APIKEY
string
header
required

The public WhiteBIT API key.

X-TXC-PAYLOAD
string
header
required

Base64-encoded JSON request body.

X-TXC-SIGNATURE
string
header
required

HMAC-SHA512 signature of the payload, hex-encoded. Computed as hex(HMAC-SHA512(payload, api_secret)).

Body

application/json
request
string
required

Request signature

Example:

"{{request}}"

nonce
string
required

Unique request identifier

Example:

"{{nonce}}"

limit
integer
default:30

LIMIT is a special clause used to limit records a particular query can return.

Required range: 1 <= x <= 100
Example:

100

offset
integer
default:0

Use the OFFSET clause to return entries starting from a particular line.

Required range: 0 <= x <= 10000
Example:

0

Response

All validations succeeded and creating transaction is started

total
integer

Total number of code history entries

data
object[]
limit
integer
offset
integer