Get Transaction Log
Description
Query funding transaction logs for the specified time period and type for the current user
HTTP Request
- POST
/api/v3/order/user/trans_log - Supported Products:
spot/linear - Rate Limit: 10 requests per second per UID
Request Parameters
| Field | Type | Required | Description |
|---|---|---|---|
symbol | string | No | Trading pair name |
category | string | Yes | spot for spot or linear for futures. |
pageIndex | integer | Yes | Page number. Use the cursor for subsequent pages to improve performance. |
pageSize | integer | Yes | Records per page. Defaults to 20 when omitted. |
cursor | string | No | Pagination cursor. Leave empty on the first request and use the returned cursor for the next page. |
baseCoin | string | No | Base asset, such as BTC. |
transTypeCode | List<Integer> | No | List <transType code>, multiple values: [3,4] See the Transaction Log Type (transType) enum. When transTypeCode is provided, the category filter will be ignored. |
startTime | Long | Yes | Start timestamp in milliseconds. The time range can span up to 90 days. |
endTime | Long | Yes | End timestamp in milliseconds. The time range can span up to 90 days. |
Response Parameters
| Field | Type | Description |
|---|---|---|
symbol | string | Trading pair name |
transLogId | string | Unique log ID. |
orderId | string | Associated order ID. Empty when the entry has no associated order. |
tradeId | string | Associated trade ID. Empty when the entry has no associated trade. |
transTypeCode | integer | code value of transType Enumeration definition: Transaction Log Type (transType) |
transType | string | description of transType Enumeration definition: Transaction Log Type (transType) |
side | string | BUY or SELL. Empty for non-trade entries. |
action | string | DEBIT or CREDIT. |
funding | string | Funding fee. Present only in futures funding entries. |
fee | string | Fee amount. Positive for debit and negative for credit. |
cashFlow | string | cash flow (account balance change amount. Positive = increase, negative = decrease) Cash flow from the transaction, typically profit and loss or executed value. |
change | string | Actual wallet balance change, including applicable fees and charges. |
cashBalance | string | Asset balance after the change. |
transLogTime | string | Log timestamp in milliseconds (UTC+8). |
category | Integer | 1 for spot, 2 for futures. |
settleCoin | string | Settlement asset. |
remark | string | Remarks. |
extraFee | string | Guaranteed take-profit or stop-loss fee. |
Request Example
POST /api/v3/order/user/trans_log 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
{
"symbol": "BTCUSDT",
"category": "linear",
"startTime": 1793241426035,
"endTime": 1793846226035,
"pageIndex": 1,
"pageSize": 10
}
Response Example
{
"code": 200,
"message": "success",
"data": {
"data": [
{
"symbol": "BTCUSDT",
"symbolId": 100163,
"orderId": "86f30462-0a11-490e-8b9a-5386daf9fc41",
"orderType": "LIMIT",
"cashBalance": "3.1",
"side": "SELL",
"change": "25.13"
}
],
"cursor": "",
"sumCount": 0,
"resultCode": 0,
"resultMessage": ""
},
"extras": null
}