Skip to main content

Get Deposit History

Description​

Query deposit transaction records

HTTP Request​

  • POST /api/v3/spot/wallet/deposit_history
  • Rate Limit: 10 requests per second per UID

Request Parameters​

FieldTypeRequiredDescription
coinstringNoAsset code.
statusintegerNoDeposit status filtering. Enum values: 1 = application in progress, unrecognizable internal statuses also returned as 1; 2 = deposit successful; 3 = deposit failed; 4 = canceled; 5 = transfer in progress. Not passing or passing 0 means no status filtering. Any other integer is invalid.
start_timestringNoStart time in milliseconds. If omitted or less than or equal to 0, it defaults to midnight 90 days before the current day in the server’s time zone. Earlier times are clipped to that boundary. The query includes records strictly after the start time.
end_timestringNoEnd time, in millisecond timestamp. If not provided or greater than or equal to 0, defaults to the last millisecond of the current day in the server timezone. Later times will be clipped to this boundary. Actual queries use a condition less than the end time. If the start time after clipping is later than the end time, error code 10003 is returned.
page_nointegerYespage number, greater than 0
page_sizeintegerYesNumber of records per page, 1 to 1000

Response Parameters​

Response outer structure:

FieldTypeDescription
codeintegerBusiness status code; 0 indicates success, other values refer to error codes at the end.
messagestringResult explanation. Success example is success
dataobject/nullReturns business data of the request upon success, see the table below. Failure returns null.
extrasobject/nullextended fields. Original example is null, specific structure is not defined and pending confirmation.

Data fields for internal business: amounts and fees use decimal strings. Int64 uses JSON string, int32 uses JSON integer.

FieldTypeDescription
current_pageintegerCurrent page number, int32
page_lengthintegerNumber of items per page, int32
totalstringTotal record count, protobuf int64 output as string.
depositOrdersarrayDeposit record list. Empty array if no records
depositOrders[].insertTimestring/nulldeposit timestamp, in milliseconds.
depositOrders[].coinstring/nullAsset code.
depositOrders[].amountstring/nullDeposit amount, decimal string.
depositOrders[].addressstring/nullDeposit address.
depositOrders[].networkNamestring/nullChain name
depositOrders[].statusstring/nullDeposit status returned as a string. Enum values: "1" = application in progress; "2" = deposit successful; "3" = deposit failed; "4" = revoked; "5" = transfer in progress. "1" is returned if internal status is empty or unrecognized.
depositOrders[].txIdstring/nullon-chain transaction ID

Request Example​

POST /api/v3/spot/wallet/deposit_history HTTP/1.1
Host: openapi.lbank.com
Content-Type: application/json
ex-api-key: <your_api_key>
ex-timestamp: <current_unix_timestamp_ns>
ex-nonce: <unique_random_hex>
ex-signature: <your_signature>
ex-client-type: API

{
"coin": "usdt",
"page_no": 1,
"page_size": 10
}

Response Example​

{
"code": 0,
"message": "success",
"data": {
"current_page": 1,
"page_length": 10,
"total": "1",
"depositOrders": [
{
"insertTime": "1710000000000",
"coin": "usdt",
"amount": "10.5",
"address": "T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb",
"networkName": "trc20",
"status": "2",
"txId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
]
},
"extras": null
}