Skip to navigation

Get bills (7 days)

Retrieve the bills of the account. The bill refers to all transaction records that result in changing the balance of an account. Data for the last 7 days.

Authentication

OK-ACCESS-KEYstring
Your API key.
OK-ACCESS-SIGNstring

Base64-encoded HMAC-SHA256 signature of the prehash string.

OK-ACCESS-TIMESTAMPstring

ISO 8601 UTC timestamp, e.g. 2020-12-08T09:08:57.715Z.

OK-ACCESS-PASSPHRASEstring
The passphrase you set when creating the API key.

Query parameters

instTypeenumOptional
Instrument type.
Allowed values:
ccystringOptional
Currency.
mgnModeenumOptional
Margin mode.
Allowed values:
ctTypeenumOptional
Contract type.
Allowed values:
typestringOptional

Bill type, e.g. 1 (Transfer), 2 (Trade), 8 (Interest deduction).

subTypestringOptional

Bill subtype, e.g. 1 (Buy), 2 (Sell).

afterstringOptional
Pagination of data to return records earlier than the requested bill ID.
beforestringOptional
Pagination of data to return records newer than the requested bill ID.
limitstringOptional
Number of results per request. Maximum 100, default 100.
beginstringOptional
Filter with a begin timestamp, Unix timestamp in milliseconds.
endstringOptional
Filter with an end timestamp, Unix timestamp in milliseconds.

Response

Successful response
codestringOptional

Result code. 0 means success; any other value is an error code.

msgstringOptional
Error message. Empty on success.
datalist of objectsOptional