Skip to main content

Transaction Log

Query transaction logs in Unified account.

HTTP Request

GET /unified/v3/private/account/transaction-log

Request Parameters

ParameterRequiredTypeComments
categorytruestringProduct type. linear,option
currencytruestringUSDC、USDT、BTC、ETH
baseCoinfalsestringbaseCoin
typefalsestringAll transaction logs under this category are returned (except transfer/exchange/given cash). Note: To query transfer-in and transfer-out logs, type=TRANSFER_IN, type=TRANSFER_OUT must be passed, otherwise the transfer log cannot be found.
startTimefalseintegerThe start timestamp (ms)
endTimefalseintegerThe end timestamp (ms)
directionfalsestringDirection: prev: previous page, next: next page, Default: next
limitfalseintegerLimit for data size per page. [1, 50]. Default: 20
cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

Response Parameters

ParameterTypeComments
categorystringProduct type
currencystringUSDC、USDT、BTC、ETH
listarrayObject
> transactionTimenumberTransaction timestamp (ms)
> typestringType
> symbolstringSymbol name
> sidestringSide. Buy,Sell,None
> qtystringQuantity
> sizeintegerSize
> tradePricestringTrade price
> fundingstringFunding fee
> feestringTrading fee,fees are positive and rebates are negative
> cashFlowstringCash flow
> changestringChange
> cashBalancestringCash balance
> feeRatestringTrading fee rate
> tradeIdstringTrade id
> orderIdstringOrder id
> orderLinkIdstringUser customised order id
nextPageCursorstringCursor. Used to pagination

Request Example

GET /unified/v3/private/account/transaction-log?category=linear&currency=USDC&limit=1&type=SETTLEMENT HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: XXXXX
X-BAPI-TIMESTAMP: 1672023156071
X-BAPI-RECV-WINDOW: 5000

Response Example

{
"retCode": 0,
"retMsg": "Success",
"result": {
"nextPageCursor": "1516%3A0%2C1516%3A0",
"currency": "USDC",
"category": "linear",
"list": [
{
"symbol": "BTCPERP",
"side": "None",
"funding": "0.00000000",
"orderLinkId": "",
"orderId": "",
"fee": "",
"change": "0.00000000",
"cashFlow": "0.00000000",
"transactionTime": 1666857600000,
"type": "SETTLEMENT",
"feeRate": "",
"size": "0.0000",
"qty": "",
"cashBalance": "22.96780168",
"tradePrice": "",
"tradeId": ""
}
]
},
"retExtInfo": {},
"time": 1672023157776
}