Skip to main content
Borrow History

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
asset
string

Filter to a single asset. Optional — when omitted or empty, returns borrow history for every asset the caller's region allows to borrow. An unknown or region-blocked asset returns a validation error.

Example:

"BTC"

startTime
integer

Start of the query window as a Unix timestamp in seconds. Optional, default 0. Must be less than endTime.

Example:

1700000000

endTime
integer

End of the query window as a Unix timestamp in seconds. Optional, default: now. Must be greater than startTime.

Example:

1700100000

limit
integer
default:50

Maximum number of records to return. Default: 50. Minimum: 1. Maximum: 100.

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

50

offset
integer
default:0

Number of records to skip. Default: 0. Maximum: 10000.

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

0

request
string
Example:

"{{request}}"

nonce
integer
Example:

1594297865000

Response

Successful response - returns paginated borrow history. records is an empty array, not omitted, when nothing matches.

records
object[]

One entry per borrow position, not per underlying engine state change.

limit
integer

Echoes the request's limit.

Example:

50

offset
integer

Echoes the request's offset.

Example:

0