Skip to content

CryptoClients: Kucoin Balance Updates in cross margin mode #29

@PhilAlain

Description

@PhilAlain

Hello again Jan,

We are testing Balance updates for Kucoin.

Our use-case is the following: cross margin mode

As per Kucoin API documentation, when in cross margin mode:
the following subjects of this topic will stop pushing
"subject": "orderMargin.change",
"subject": "availableBalance.change",
"subject": "withdrawHold.change",
Use the following subject to replace
"subject": "walletBalance.change"

https://www.kucoin.com/docs-new/3470092w0?x=fr_FR&

CryptoClients does receive the update, but does not wire it back as a result (cf. trace below)

trce: Kucoin.SocketClient[2007]

      [Sckt 1] received {"topic":"/contractAccount/wallet","type":"message","subject":"walletBalance.change","id":"6a0c2a5cf971bd0001f27c1d","userId":"636b944f97990c00013aa786","channelType":"private","data":{"crossPosMargin":"1399.0495898612","isolatedOrderMargin":"0","holdBalance":"0","equity":"1504.751515604","version":"15004265","availableBalance":"55.5991729335","isolatedPosMargin":"0","maxWithdrawAmount":"55.5991729335","walletBalance":"1454.6487627947","isolatedFundingFeeMargin":"0","crossUnPnl":"50.1027528093","totalCrossMargin":"1504.751515604","currency":"USDT","isolatedUnPnl":"0","availableMargin":"105.7019257428","crossOrderMargin":"0","timestamp":"1779182172387"}}

trce: Kucoin.SocketClient[2026]

      [Sckt 1] sending periodic Ping

trce: Kucoin.SocketClient[2028]

Hope this helps,
Eric & Philippe

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions