Balance
wss://ws-api-futures.kucoin.com
Topic:/contractAccount/wallet
Description
Subscribe Message
{
"id": 1545910660739,
"type": "subscribe",
"topic": "/contractAccount/wallet",
"response": true,
"privateChannel": "true"
}
Response
Data SchemaCurrency Symbol Equity Wallet Balance Available Balance Frozen Balance Total margin under cross margin mode Margin of the cross margin position Margin of the cross margin order Unrealized PNL in cross margin mode Margin of the isolated margin position, including isolated margin funding fees Margin of the isolated margin order Isolated margin funding fee Unrealized PNL in isolated margin mode Version. When holding a cross margin position, the available balance may change with fluctuations in the mark price, leading to discrepancies in the available balance for the same version number. Last modified time
balance
topic
string
required
type
string
required
subject
string
required
id
string
required
userId
string
required
channelType
string
required
data
object
required
currency
string
required
equity
string
required
walletBalance
string
required
availableBalance
string
required
holdBalance
string
required
totalCrossMargin
string
required
crossPosMargin
string
required
crossOrderMargin
string
required
crossUnPnl
string
required
isolatedPosMargin
string
required
isolatedOrderMargin
string
required
isolatedFundingFeeMargin
string
required
isolatedUnPnl
string
required
version
string
required
timestamp
string
required
Example
//Asset Overview by Currency Push
{
"topic": "/contractAccount/wallet",
"type": "message",
"subject": "walletBalance.change",
"id": "67c811885b87be0001a4880e",
"userId": "633559791e1cbc0001f319bc",
"channelType": "private",
"data": {
"crossPosMargin": "17.551016",
"isolatedOrderMargin": "0",
"holdBalance": "0",
"equity": "387.224858816",
"version": "2118",
"availableBalance": "285.652001096",
"isolatedPosMargin": "63.98342359",
"maxWithdrawAmount": "285.645841096",
"walletBalance": "371.394298816",
"isolatedFundingFeeMargin": "2.89220199",
"crossUnPnl": "2.95996",
"totalCrossMargin": "310.370835226",
"currency": "USDT",
"isolatedUnPnl": "12.8706",
"crossOrderMargin": "10.06002012",
"timestamp": "1741164936624"
}
}
//Order Margin Event(Deprecate)
{
"userId": "xbc453tg732eba53a88ggyt8c", // Deprecated, will detele later
"topic": "/contractAccount/wallet",
"subject": "orderMargin.change",
"data": {
"orderMargin": 5923, //Current order margin
"currency": "USDT", //Currency
"timestamp": 1553842862614
}
}
//Available Balance Event(Deprecate)
{
"userId": "xbc453tg732eba53a88ggyt8c", // Deprecated, will detele later
"topic": "/contractAccount/wallet",
"subject": "availableBalance.change",
"data": {
"availableBalance": 5923, //Current available amount
"holdBalance": 2312, //Frozen amount = positionMargin + orderMargin + frozenFunds
"currency": "USDT", //Currency
"timestamp": 1553842862614
}
}
//Withdrawal Amount & Transfer-Out Amount Event(Deprecate)
{
"userId": "xbc453tg732eba53a88ggyt8c", // Deprecated, will detele later
"topic": "/contractAccount/wallet",
"subject": "withdrawHold.change",
"data": {
"withdrawHold": 5923, // Current frozen amount for withdrawal
"currency": "USDT", //Currency
"timestamp": 1553842862614
}
}
Request
Query Params
token
string
required
Example:
2neAiuYvAU737TOajb2U3uT8AEZqSWYe0fBD4LoHuXJDSC7gIzJiH4kNTWhCPISWo6nDpAe7aUaaHJ4fG8oRjFgMfUI2sM4IySWHrBceFocY8pKy2REU1HwZIngtMdMrjqPnP-biofFWbNaP1cl0X1pZc2SQ-33hDH1LgNP-yg-Wt-I9quoduuP419Vg1VTH.Yo6N4Kw984ZF0vzkbXMdHw==
connectId
string
optional
Example:
121345
Modified at 2025-03-05 08:56:50