Skip to main content

Get Trade Info For Analysis

Query aggregated spot trade analysis data for a symbol, including execution values, quantities, fees, and daily breakdown.

HTTP Request

GET/v5/account/trade-info-for-analysis

Request Parameters

ParameterRequiredTypeComments
symboltruestringSymbol name, e.g. BTCUSDT, ETHUSDT
startTimefalselongQuery start time (ms)
endTimefalselongQuery end time (ms)

Response Parameters

ParameterTypeComments
symbolRnlstringSymbol realised P&L
netExecQtystringNet execution quantity
sumExecValuestringTotal execution value
sumExecQtystringTotal execution quantity
avgBuyExecPricestringAverage buy execution price
sumBuyExecValuestringTotal buy execution value
sumBuyExecQtystringTotal buy execution quantity
sumBuyExecFeestringTotal buy execution fee
sumBuyOrderQtystringTotal buy order quantity
avgSellExecPricestringAverage sell execution price
sumSellExecValuestringTotal sell execution value
sumSellExecQtystringTotal sell execution quantity
sumSellExecFeestringTotal sell execution fee
sumSellOrderQtystringTotal sell order quantity
maxMarginVersionintegerMax margin version number
baseCoinstringBase coin
settleCoinstringSettle coin
sumPriceListarray<object>Daily aggregated price list
> daystringDate
> sumBuyExecValuestringDaily total buy execution value
> sumSellExecValuestringDaily total sell execution value
> sumExecValuestringDaily total execution value

Request Example

GET /v5/account/trade-info-for-analysis?symbol=ETHUSDT HTTP/1.1
Host: api.bybit.com
X-BAPI-SIGN: XXXXXX
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1773230920000
X-BAPI-RECV-WINDOW: 5000

Response Example

{
"retCode": 0,
"retMsg": "Success",
"result": {
"symbolRnl": "0",
"sumBuyExecValue": "0",
"sumBuyExecQty": "0",
"sumSellExecFee": "0",
"netExecQty": "0",
"sumExecQty": "0",
"settleCoin": "USDT",
"sumExecValue": "0",
"sumSellExecValue": "0",
"sumBuyOrderQty": "0",
"sumSellOrderQty": "0",
"maxMarginVersion": 0,
"avgSellExecPrice": "0",
"avgBuyExecPrice": "0",
"sumBuyExecFee": "0",
"sumSellExecQty": "0",
"baseCoin": "ETH"
},
"retExtInfo": {},
"time": 1773230927308
}