Get Withdrawal History
Description
Query withdrawal record.
HTTP Request
- POST
/api/v3/spot/wallet/withdraws - Rate Limit: 10 requests per second per UID
Request Parameters
| Field | Type | Required | Description |
|---|---|---|---|
coin | string | No | Asset code. |
status | integer | No | Withdrawal status filtering. Enum values: 1 = pending; 2 = canceled; 3 = failed; 4 = completed. Omitting 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. |
withdraw_order_id | string | No | Client withdrawal order number. |
page_no | integer | Yes | page number, greater than 0 |
page_size | integer | Yes | Number of records per page, ranging from 1 to 100 |
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 use:
| 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. |
withdraws | array | withdrawal record list. Empty array when no records exist |
withdraws[].id | string/null | Withdrawal record ID |
withdraws[].applyTime | string/null | Application time, millisecond timestamp |
withdraws[].coid | string/null | Asset code. Compatible with legacy interface using fixed field name |
withdraws[].address | string/null | withdrawal address |
withdraws[].amount | string/null | withdrawal amount, decimal string |
withdraws[].status | string/null | Withdrawal status, returned as a string. Enum values: "1" = pending; "2" = canceled; "3" = failed; "4" = completed. Internal status is null if not set. |
withdraws[].fee | string/null | Fee, in decimal string format |
withdraws[].feeAssetCode | string/null | Fee asset code |
withdraws[].transferType | string/null | Transfer type, returned as an enumeration string. This interface only queries blockchain withdrawal records, returning "digital asset withdrawal". It is not the integer code of the withdrawal request type. |
withdraws[].networkName | string/null | Chain name |
withdraws[].withdrawOrderId | string/null | Client withdrawal order number. |
withdraws[].txId | string/null | on-chain transaction ID |
withdraws[].info | string/null | Withdrawal failure reasons come from the order's failureReason field. They are not order status descriptions. If no failure reason exists, it may be an empty string or unset. Whether an unset field is omitted or represented as null in HTTP depends on the gateway validation result. |
Request Example
POST /api/v3/spot/wallet/withdraws 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",
"withdraws": [
{
"id": "1001",
"applyTime": "1710000000000",
"coid": "usdt",
"address": "T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb",
"amount": "10.5",
"status": "4",
"fee": "1",
"feeAssetCode": "usdt",
"transferType": "数字资产提现",
"networkName": "trc20",
"withdrawOrderId": "client-20261026-001",
"txId": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
"info": null
}
]
},
"extras": null
}