Bitget APIBitget API
UTAClassic
Legacy Doc
  • Overview
  • API Documentation
  • WebSocket
  • Agent Hub
  • SDK
  • Changelog
Copied to clipboard
API Document
Classic
    Affiliate · Customer Info
      Get Agent Commission DetailgetGet Agent Customer Assets ListpostGet Agent Customer Deposit ListpostGet Agent Customer Kyc ResultgetGet Agent Customer ListpostGet Agent Customer Trade Volume ListpostGet Agent Direct commissionsgetGet Sub-affiliate InfogetGet Agent SubCustomer Listget
Classic Affiliate Customer Info API
Classic Affiliate Customer Info API

Affiliate · Customer Info

Classic Account — Affiliate · Customer Info


Get Agent Commission Detail

GET
https://api.bitget.com
/api/v2/broker/agent-commission

Rate limit: 10/sec/UID

startTime and endTime should be set simultaneously or not set at all.

The maximum time span supported by startTime and endTime is 7 days.

This API supports retrieving data within the past 90 days.

If startTime and endTime are not set in the request, it will default to returning information for yesterday (00:00-23:

59 UTC+8).

Get Agent Commission Detail › Request Parameters

startTime
​string

Start time

Unix millisecond timestamp

endTime
​string

End time

Unix millisecond timestamp

limit
​string

max:100,default: 100

idLessThan
​string

Requests the content on the page before this ID (older data), the value input should be the endld of the corresponding interface.

Get Agent Commission Detail › Response Parameters

200

Successful response

code
​string
msg
​string
requestTime
​integer
​object
​object[]

Customer Commission List

uid
​string

Partner UID

bizType
​string

Trade type

spot

futures

subBizType
​string

subBizType

spot

margin

usdt_futures

coin_futures

usdc_futures

symbol
​string

symbol

coin
​string

coin

fee
​string

Total fee

Statistical values within the input time range

Precision is 8 decimal places

volume
​string

Transaction amount

Statistical value within the input time range

Precision is 8 decimal places

activityBonusDeduct
​string

Fees offset by experience funds

spotCouponDeduct
​string

Fees offset by spot cashback coupons

futuresCouponDeduct
​string

Fees offset by contract airdrop coupons

spotFeeDiscountDeduct
​string

Fees reduced by spot fee discounts

negativeMakerFeeDeduct
​string

Fees offset by negative maker fees

feePaid
​string

Actual paid fee

Statistical value within the input time period

Precision is 8 decimal places

directCommission
​string

Direct customer commission

Direct customers are first-level users directly invited by KOL

Statistical value within the participation period

Precision is 8 decimal places

subCommission
​string

Subordinate commission

Direct customer subordinates are second-level, third-level...(not first-level) indirect invitation relationship

Statistical value within the participation time period

Precision is 8 decimal places

partnerCommission
​string

Partner Commission (= direct customer commission + subordinate commission)

Statistical value within the entry time period

Precision is 8 decimal places

partnerActualCommission
​string

Partner's actual commission after deducting risk control portion and special scenario deductions

Statistical value within the entry time period

Precision is 8 decimal places

traderType
​string

Trader type commission

user: ordinary user — ordinary order commission

Trader: trader — trader order commission

apiType
​string

API commission type

api: API user non_api: non-API user

status
​string

status

settled

unsettled

notIssued

startCalculationTime
​string

Statistics start time Unix millisecond timestamp

endCalculationTime
​string

Statistics end time Unix millisecond timestamp

endId
​string

The last data ID. When used as a request, the id is used as an index for the next query

GET/api/v2/broker/agent-commission
curl https://api.bitget.com/api/v2/broker/agent-commission
Example Responses
{ "code": "00000", "msg": "success", "requestTime": 1694593273026, "data": { "endId": "6624", "commissionList": [ { "uid": "3125195374", "bizType": "futures", "subBizType": "usdt_futures", "symbol": "BTCUSDT", "coin": "BTC", "fee": "0.0000111", "volume": "2.2", "activityBonusDeduct": "0.00001", "spotCouponDeduct": "0.00001", "futuresCouponDeduct": "0.00001", "spotFeeDiscountDeduct": "0.00001", "negativeMakerFeeDeduct": "0.00001", "feePaid": "0.00005", "directCommission": "0.00001", "subCommission": "0.00001", "partnerCommission": "0.000001", "partnerActualCommission": "0.00001", "traderType": "trader", "apiType": "non_api", "status": "settled", "startCalculationTime": "1728635651441", "endCalculationTime": "1728635651441" } ] } }
json
application/json

Get Agent Customer Assets List

POST
https://api.bitget.com
/api/v2/broker/customer-asset

Rate limit: 10/sec/UID

Data update frequency: 10 minutes

Get Agent Customer Assets List › Request Parameters

pageNo
​string

Page number

pageSize
​string

Page size, 100 default, Max 500

uid
​string

UID

showSub
​string

Whether to Display Subordinate User Information of Direct Clients

yes: Yes

no: No

Get Agent Customer Assets List › Response Parameters

200

Successful response

code
​string
msg
​string
requestTime
​integer
​object[]
uid
​string

UID

balance
​string

Account Balance

uTime
​string

Account Last update Time

remark
​string

When the user has too many sub-accounts, it prompts that there are too many sub-accounts and the account balance cannot be queried

POST/api/v2/broker/customer-asset
curl https://api.bitget.com/api/v2/broker/customer-asset \ --request POST \ --header 'Content-Type: application/json' \ --data '{ "pageNo": "pageNo", "pageSize": "pageSize", "uid": "uid", "showSub": "showSub" }'
Example Request Body
{ "pageNo": "pageNo", "pageSize": "pageSize", "uid": "uid", "showSub": "showSub" }
json
Example Responses
{ "code": "00000", "msg": "success", "requestTime": 163123213132, "data": [ { "balance": "1234", "uid": "23423432", "uTime": "23423423423", "remark": "sub account exceed 5" } ] }
json
application/json

Get Agent Customer Deposit List

POST
https://api.bitget.com
/api/v2/broker/customer-deposit

Rate limit: 10/sec/UID

The API response includes the user's on-chain deposits and internal transfers

startTime and endTime should be both set or both left blank

startTime and endTime should be within 30days

This API endpoint can only query the data in 90 days. If you need older data, please contact BD to export it manually.

It will return yesterday's data (00:00-23:59 UTC+8) by default if there is no startTime/endTime set.

The data is updated in real time

Get Agent Customer Deposit List › Request Parameters

startTime
​string

Start time (ms)

endTime
​string

End time (ms)

pageNo
​string

Page number

pageSize
​string

Page size, 100 default, Max 1000

uid
​string

UID

showSub
​string

Whether to Display Subordinate User Information of Direct Clients

yes: Yes

no: No

Get Agent Customer Deposit List › Response Parameters

200

Successful response

code
​string
msg
​string
requestTime
​integer
​object[]
uid
​string

UID

orderId
​string

Deposit Order ID

depositTime
​string

Deposit Time (ms)

depositCoin
​string

Deposit Coin

depositAmount
​string

Deposit Amount

POST/api/v2/broker/customer-deposit
curl https://api.bitget.com/api/v2/broker/customer-deposit \ --request POST \ --header 'Content-Type: application/json' \ --data '{ "startTime": "startTime", "endTime": "endTime", "pageNo": "pageNo", "pageSize": "pageSize", "uid": "uid", "showSub": "showSub" }'
Example Request Body
{ "startTime": "startTime", "endTime": "endTime", "pageNo": "pageNo", "pageSize": "pageSize", "uid": "uid", "showSub": "showSub" }
json
Example Responses
{ "code": "00000", "msg": "success", "requestTime": 163123213132, "data": [ { "orderId": "3423423", "uid": "234342343", "depositTime": "11234342343", "depositCoin": "USDT", "depositAmount": "500" } ] }
json
application/json

Get Agent Customer Kyc Result

GET
https://api.bitget.com
/api/v2/broker/customer-kyc-result

Rate limit: 10/sec/UID

startTime and endTime should be both set or both left blank

It will return yesterday's KYC or KYB data(00:00-23:59UTC+8) by default if there is no startTime/endTimeset.

Data update frequency: 5 minutes

Get Agent Customer Kyc Result › Request Parameters

startTime
​string

Start time, maximum range of 90 days

endTime
​string

End time, maximum range of 90 days.

idLessThan
​string

Retrieve data before this endId

limit
​string

Limit number of data(default 100,max 1000)

uid
​string

UID

showSub
​string

Whether to Display Subordinate User Information of Direct Clients

yes: Yes

no: No

Get Agent Customer Kyc Result › Response Parameters

200

Successful response

code
​string
msg
​string
requestTime
​integer
​object
uid
​string

UID

kycResult
​string

KYC or KYB result

passed

not_passed

endId
​string

The last userID on the page

GET/api/v2/broker/customer-kyc-result
curl https://api.bitget.com/api/v2/broker/customer-kyc-result
Example Responses
{ "code": "00000", "msg": "success", "requestTime": 163123213132, "data": { "userList": [ { "uid": "435435345", "kycResult": "passed" } ], "endId": "435435345" } }
json
application/json

Get Agent Customer List

POST
https://api.bitget.com
/api/v2/broker/customer-list

Rate limit: 10/sec/UID

startTime and endTime should be both set or both left blank

startTime and endTime should be within 30days

If startTime / endTime are not set, all registered clients will be returned with no time restriction.

It supports querying clients registered at any time, with no 90-day restriction.

If you want to confirm whether a specific UID is your referral client you invited, you can verify it by setting the

UID in the body, for example: {"uid":"123456"}.

The data is updated in real time

Get Agent Customer List › Request Parameters

startTime
​string

Start time (ms)

endTime
​string

End time (ms)

pageNo
​string

Page number

pageSize
​string

Page size, 100 default, Max 1000

uid
​string

UID

referralCode
​string

Referral code

Get Agent Customer List › Response Parameters

200

Successful response

code
​string
msg
​string
requestTime
​integer
​object[]
uid
​string

UID

registerTime
​string

Register time

POST/api/v2/broker/customer-list
curl https://api.bitget.com/api/v2/broker/customer-list \ --request POST \ --header 'Content-Type: application/json' \ --data '{ "startTime": "startTime", "endTime": "endTime", "pageNo": "pageNo", "pageSize": "pageSize", "uid": "uid", "referralCode": "referralCode" }'
Example Request Body
{ "startTime": "startTime", "endTime": "endTime", "pageNo": "pageNo", "pageSize": "pageSize", "uid": "uid", "referralCode": "referralCode" }
json
Example Responses
{ "code": "00000", "msg": "success", "requestTime": 1695785738672, "data": [ { "uid": 1235665663, "registerTime": "1679991960110" }, { "uid": 1235665663, "registerTime": "1679991960110" } ] }
json
application/json

Get Agent Customer Trade Volume List

POST
https://api.bitget.com
/api/v2/broker/customer-trade-volume

Rate limit: 10/sec/UID

This API response includes the trading volume for both spot and futures

startTime and endTime should be both set or both left blank

startTime and endTime should be within 30days

This API endpoint can only query the data in 90 days. If you need older data, please contact BD to export it manually.

It will return yesterday's data (00:00-23:59 UTC+8) by default if there is no startTime/endTime set.

Data update frequency: 1 hour

Get Agent Customer Trade Volume List › Request Parameters

startTime
​string

Start time (ms)

endTime
​string

End time (ms)

pageNo
​string

Page number

pageSize
​string

Page size, 100 default, Max 1000

uid
​string

UID

showSub
​string

Whether to show sub-customer information

yes: Show

no: Do not show

Get Agent Customer Trade Volume List › Response Parameters

200

Successful response

code
​string
msg
​string
requestTime
​integer
​object[]
uid
​string

UID

volumn
​string

Trade volume

spotVolume
​string

Spot trade volume

futuresVolume
​string

Futures trade volume

time
​string

Timestamp(ms)

POST/api/v2/broker/customer-trade-volume
curl https://api.bitget.com/api/v2/broker/customer-trade-volume \ --request POST \ --header 'Content-Type: application/json' \ --data '{ "startTime": "startTime", "endTime": "endTime", "pageNo": "pageNo", "pageSize": "pageSize", "uid": "uid", "showSub": "showSub" }'
Example Request Body
{ "startTime": "startTime", "endTime": "endTime", "pageNo": "pageNo", "pageSize": "pageSize", "uid": "uid", "showSub": "showSub" }
json
Example Responses
{ "code": "00000", "msg": "success", "requestTime": 163123213132, "data": [ { "uid": "435435345", "volumn": "34234.4", "spotVolume": "12000.0", "futuresVolume": "22234.4", "time": "1679991960110" }, { "uid": "435435345", "volumn": "34234.4", "spotVolume": "12000.0", "futuresVolume": "22234.4", "time": "1679991960110" } ] }
json
application/json

Get Agent Direct commissions

GET
https://api.bitget.com
/api/v2/broker/customer-commissions

Rate limit: 10/sec/UID

startTime and endTime should be both set or both left blank

This API endpoint can only query the data in 90 days. If you need older data, please contact BD to export it manually.

It will return yesterday's data (00:00-23:59 UTC+8) by default if there is no startTime/endTime set.

Data update frequency: T+1 (UTC+8)

Get Agent Direct commissions › Request Parameters

startTime
​string

Start time, maximum range of 30 days

endTime
​string

End time, maximum range of 30 days.

idLessThan
​string

Retrieve data before this ID

limit
​string

Limit number of data(default 100,max 1000)

uid
​string

UID

coin
​string

Coin, e.g: BTC

symbol
​string

Symbol e.g:

BGBUSDT_SPBL spot

BTCUSDT_SPBL-MABL spot margin

BTCUSDT_UMCBL USDT-Futures

BTCUSD_DMCBL COIN-Futures

BTCPERP_CMCBL USDC-Futures

showSub
​string

Whether to Display Subordinate User Information of Direct Clients

yes: Yes

no: No

Get Agent Direct commissions › Response Parameters

200

Successful response

code
​string
msg
​string
requestTime
​integer
​object
​object[]

Commission List

uid
​string

Referred User UID

date
​string

Commission return date (UTC+8)

coin
​string

coin

symbol
​string

symbol

productType
​string

Product type

SPOT Spot trading

MARGIN Margin trading

USDT-FUTURES USDT futures

COIN-FUTURES Coin-M futures

USDC-FUTURES USDC futures

dealAmount
​string

Trading amount(maker+taker)

fee
​string

Trading fee(maker+taker)

The commission and fee amounts are denominated in the coin currency

feeDeduction
​string

Trading fee deducted(maker+taker)

activityBonusDeduct
​string

Fees offset by experience funds

spotCouponDeduct
​string

Fees offset by spot cashback coupons

futuresCouponDeduct
​string

Fees offset by contract airdrop coupons

spotFeeDiscountDeduct
​string

Fees reduced by spot fee discounts

negativeMakerFeeDeduct
​string

Fees offset by negative maker fees

feePaid
​string

Fees actually paid(maker+taker)

rebateAmount
​string

Commission returned to the direct upline partner (maker+taker)

Represents the agent rebate returned to the partner

userTotalRebateAmount
​string

Commission returned to the referred user by the partner (maker+taker)

Only applicable when the partner has configured user rebates for the direct client

dayTotalRebateAmount
​string

Total commission generated on that day (maker+taker)

= rebateAmount + userTotalRebateAmount

totalRebateAmount
​string

Cumulative commission for the past 90 days rolling from today, including the current day (maker+taker)

endId
​string

Last data ID. Used as an index for querying data when making a request

GET/api/v2/broker/customer-commissions
curl https://api.bitget.com/api/v2/broker/customer-commissions
Example Responses
{ "code": "00000", "msg": "success", "requestTime": 1694593273026, "data": { "endId": "6624", "commissionList": [ { "uid": "3125195374", "date": "1694275200000", "coin": "BTC", "symbol": "BTCUSDT_SPBL", "productType": "SPOT", "dealAmount": "222", "fee": "0.0000111", "feeDeduction": "0.00000333", "activityBonusDeduct": "0.00001", "spotCouponDeduct": "0.00001", "futuresCouponDeduct": "0.00001", "spotFeeDiscountDeduct": "0.00001", "negativeMakerFeeDeduct": "0.00001", "feePaid": "0.00000777", "rebateAmount": "0.00000388", "userTotalRebateAmount": "0", "dayTotalRebateAmount": "0.00000388", "totalRebateAmount": "0.00000388" } ] } }
json
application/json

Get Sub-affiliate Info

GET
https://api.bitget.com
/api/v2/broker/sub-affiliate-info

Rate limit: 10/sec/UID

Query sub-affiliate information.

Get Sub-affiliate Info › Request Parameters

uid
​string

User ID

Pass a sub-affiliate's UID to query the info for that specific sub-affiliate

startTime
​string

Query start time

Unix millisecond timestamp

endTime
​string

Query end time

Unix millisecond timestamp

The interval between startTime and endTime cannot exceed 30 days

idLessThan
​string

Cursor ID

Used for pagination; retrieves data prior to this ID

limit
​string

Number of results to return

Default 100, maximum 100

includeDownLine
​string

Whether to include downline users

yes Yes

no No

Default yes if not provided

Get Sub-affiliate Info › Response Parameters

200

Successful response

code
​string
msg
​string
requestTime
​integer
​object
​object[]

Sub-affiliate list

uid
​string

User ID

uplineName
​string

Upline name

​object[]

Rebate rate list

rebateType
​string

Rebate type

futures Futures regular rebate

futures_api Futures API rebate

futures_trader Futures trading expert rebate

futures_trader_api Futures trading expert API rebate

spot Spot regular rebate

spot_api Spot API rebate

spot_trader Spot trading expert rebate

spot_trader_api Spot trading expert API rebate

onchain Onchain regular rebate

onchain_api Onchain API rebate

onchain_trader Onchain trading expert rebate

onchain_trader_api Onchain trading expert API rebate

cfd CFD regular rebate

cfd_api CFD API rebate

cfd_trader CFD trading expert rebate

cfd_trader_api CFD trading expert API rebate

stock Stock regular rebate

stock_api Stock API rebate

stock_trader Stock trading expert rebate

stock_trader_api Stock trading expert API rebate

rebateRate
​string

Rebate rate

Percentage value, e.g., 5 represents 5%

verificationStatus
​string

Verification status

verified Verified

not_verified Not verified

Includes both KYC and KYB results; a user who passes either KYC or KYB is considered verified

directReferrals
​string

Number of direct referrals

subAffiliates
​string

Number of sub-affiliates

subAffiliateDirectReferrals
​string

Number of direct referrals under sub-affiliates

volume
​string

Trading volume

Unit: USDT

deposit
​string

Deposit amount

Unit: USDT

transactionFee
​string

Transaction fee

Unit: USDT

rebate
​string

Rebate amount

Unit: USDT

Rebate paid back to the channel by the sub-affiliate

endId
​string

Pagination end ID

Used as the query cursor for the next request

GET/api/v2/broker/sub-affiliate-info
curl https://api.bitget.com/api/v2/broker/sub-affiliate-info
Example Responses
{ "code": "00000", "msg": "success", "requestTime": 1758512000000, "data": { "list": [ { "uid": "123456789", "uplineName": "agentUser001", "rebateRateList": [ { "rebateType": "futures", "rebateRate": "5" }, { "rebateType": "spot", "rebateRate": "5" } ], "verificationStatus": "verified", "directReferrals": "10", "subAffiliates": "2", "subAffiliateDirectReferrals": "20", "volume": "100000", "deposit": "5000", "transactionFee": "300", "rebate": "150" } ], "endId": "123456789" } }
json
application/json

Get Agent SubCustomer List

GET
https://api.bitget.com
/api/v2/broker/sub-customer-list

Rate limit: 10/sec/UID

startTime and endTime should be both set or both left blank

startTime and endTime should be within 30days

If startTime / endTime are not set, all registered clients will be returned with no time restriction.

It supports querying clients registered at any time, with no 90-day restriction.

Get Agent SubCustomer List › Request Parameters

startTime
​string

Start time (ms)

endTime
​string

End time (ms)

idLessThan
​string

Cursor ID

limit
​string

Items per page

uid
​string

UID

showSub
​string

Whether to Display Subordinate User Information of Direct Clients

yes: Yes

no: No

Get Agent SubCustomer List › Response Parameters

200

Successful response

code
​string
msg
​string
requestTime
​integer
​object
uid
​string

UID

registerTime
​string

Register time

GET/api/v2/broker/sub-customer-list
curl https://api.bitget.com/api/v2/broker/sub-customer-list
Example Responses
{ "code": "00000", "msg": "success", "requestTime": 1695785738672, "data": { "list": [ { "uid": 1235665663, "registerTime": "1679991960110" }, { "uid": 1235665663, "registerTime": "1679991960110" } ], "minId": "123456" } }
json
application/json