Skip to navigation

Get bills (3 months)

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

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.
subTypestringOptional
Bill subtype.
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