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
| Field | Type | Required | Description |
|---|---|---|---|
coin | string | No | Asset code. |
status | integer | No | Deposit 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_time | string | No | Start 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_time | string | No | End 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_no | integer | Yes | page number, greater than 0 |
page_size | integer | Yes | Number of records per page, 1 to 1000 |
Response Parameters
Response outer structure:
| Field | Type | Description |
|---|---|---|
code | integer | Business status code; 0 indicates success, other values refer to error codes at the end. |
message | string | Result explanation. Success example is success |
data | object/null | Returns business data of the request upon success, see the table below. Failure returns null. |
extras | object/null | extended 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.
| Field | Type | Description |
|---|---|---|
current_page | integer | Current page number, int32 |
page_length | integer | Number of items per page, int32 |
total | string | Total record count, protobuf int64 output as string. |
depositOrders | array | Deposit record list. Empty array if no records |
depositOrders[].insertTime | string/null | deposit timestamp, in milliseconds. |
depositOrders[].coin | string/null | Asset code. |
depositOrders[].amount | string/null | Deposit amount, decimal string. |
depositOrders[].address | string/null | Deposit address. |
depositOrders[].networkName | string/null | Chain name |
depositOrders[].status | string/null | Deposit 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[].txId | string/null | on-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
}