Skip to main content

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​

FieldTypeRequiredDescription
symbolstringNoTrading pair name
categorystringYesspot for spot or linear for futures.
pageIndexintegerYesPage number. Use the cursor for subsequent pages to improve performance.
pageSizeintegerYesRecords per page. Defaults to 20 when omitted.
cursorstringNoPagination cursor. Leave empty on the first request and use the returned cursor for the next page.
baseCoinstringNoBase asset, such as BTC.
transTypeCodeList<Integer>NoList <transType code>, multiple values: [3,4]
See the Transaction Log Type (transType) enum.
When transTypeCode is provided, the category filter will be ignored.
startTimeLongYesStart timestamp in milliseconds. The time range can span up to 90 days.
endTimeLongYesEnd timestamp in milliseconds. The time range can span up to 90 days.

Response Parameters​

FieldTypeDescription
symbolstringTrading pair name
transLogIdstringUnique log ID.
orderIdstringAssociated order ID. Empty when the entry has no associated order.
tradeIdstringAssociated trade ID. Empty when the entry has no associated trade.
transTypeCodeintegercode value of transType
Enumeration definition:
Transaction Log Type (transType)
transTypestringdescription of transType
Enumeration definition:
Transaction Log Type (transType)
sidestringBUY or SELL. Empty for non-trade entries.
actionstringDEBIT or CREDIT.
fundingstringFunding fee. Present only in futures funding entries.
feestringFee amount. Positive for debit and negative for credit.
cashFlowstringcash flow (account balance change amount. Positive = increase, negative = decrease)
Cash flow from the transaction, typically profit and loss or executed value.
changestringActual wallet balance change, including applicable fees and charges.
cashBalancestringAsset balance after the change.
transLogTimestringLog timestamp in milliseconds (UTC+8).
categoryInteger1 for spot, 2 for futures.
settleCoinstringSettlement asset.
remarkstringRemarks.
extraFeestringGuaranteed 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
}