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>' \
  --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
}

Authorizations

X-TXC-APIKEY
string
header
required

API key authentication using signed requests

Body

application/json
request
string
required

Request signature

nonce
string
required

Unique request identifier

limit
integer
default:30

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

Required range: 1 <= x <= 100
offset
integer
default:0

If you want the request to return entries starting from a particular line, you can use OFFSET clause to tell it where it should start.

Required range: 0 <= x <= 10000

Response

All validations succeeded and creating transaction is started

total
integer

Total number of code history entries

data
object[]
limit
integer
offset
integer