Skip to main content

Get Broker Earning

danger

This endpoint has been deprecated, please move to new Get Exchange Broker Earning

info
  • Use exchange broker master account to query
  • The data can support up to past 6 months until T-1
  • startTime & endTime are either entered at the same time or not entered

HTTP Request

GET /v5/broker/earning-record

Request Parameters

ParameterRequiredTypeComments
bizTypefalsestringBusiness type. SPOT, DERIVATIVES, OPTIONS
startTimefalseintegerThe start timestamp(ms)
endTimefalseintegerThe end timestamp(ms)
limitfalseintegerLimit for data size per page. [1, 1000]. Default: 1000
cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

Response Parameters

ParameterTypeComments
listarrayObject
> userIdstringUID
> bizTypestringBusiness type
> symbolstringSymbol name
> coinstringCoin name. The currency of earning
> earningstringCommission
> orderIdstringOrder ID
> execTimestringExecution timestamp (ms)
nextPageCursorstringRefer to the cursor request parameter

Request Example

GET /v5/broker/earning-record?bizType=SPOT&startTime=1686240000000&endTime=1686326400000&limit=1 HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: XXXXX
X-BAPI-TIMESTAMP: 1686708862669
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json

Response Example

{
"retCode": 0,
"retMsg": "success",
"result": {
"list": [
{
"userId": "xxxx",
"bizType": "SPOT",
"symbol": "BTCUSDT",
"coin": "BTC",
"earning": "0.000015",
"orderId": "1531607271849858304",
"execTime": "1686306035957"
}
],
"nextPageCursor": "0%2C1"
},
"retExtInfo": {},
"time": 1686708863283
}