Skip to main content

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​

FieldTypeRequiredDescription
coinstringNoAsset code.
statusintegerNoWithdrawal 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_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.
withdraw_order_idstringNoClient withdrawal order number.
page_nointegerYespage number, greater than 0
page_sizeintegerYesNumber of records per page, ranging from 1 to 100

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 use:

FieldTypeDescription
current_pageintegerCurrent page number, int32
page_lengthintegerNumber of items per page, int32
totalstringTotal record count, protobuf int64 output as string.
withdrawsarraywithdrawal record list. Empty array when no records exist
withdraws[].idstring/nullWithdrawal record ID
withdraws[].applyTimestring/nullApplication time, millisecond timestamp
withdraws[].coidstring/nullAsset code. Compatible with legacy interface using fixed field name
withdraws[].addressstring/nullwithdrawal address
withdraws[].amountstring/nullwithdrawal amount, decimal string
withdraws[].statusstring/nullWithdrawal status, returned as a string. Enum values: "1" = pending; "2" = canceled; "3" = failed; "4" = completed. Internal status is null if not set.
withdraws[].feestring/nullFee, in decimal string format
withdraws[].feeAssetCodestring/nullFee asset code
withdraws[].transferTypestring/nullTransfer 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[].networkNamestring/nullChain name
withdraws[].withdrawOrderIdstring/nullClient withdrawal order number.
withdraws[].txIdstring/nullon-chain transaction ID
withdraws[].infostring/nullWithdrawal 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
}