python-kucoin icon indicating copy to clipboard operation
python-kucoin copied to clipboard

subscribe('/account/balance') not receiving any messages

Open CopyPasteJedi opened this issue 5 years ago • 4 comments

I was testing code from readthedocs.io doc. I subscribed just account balance, and was transfering between main and traiding account and even made few testing trades on one pair. In Kucoin doc there was note, that I should expect msg when: "an account balance changes" and "The message contains the details of the change", but I didn't recive any messages. Is this a bug or I'm doing something wrong?

CopyPasteJedi avatar Apr 20 '19 14:04 CopyPasteJedi

The same question

volkovartem77 avatar Jun 22 '19 07:06 volkovartem77

hello sam, the same problem i have can u assist us plz ? Thnx

MedAmineOrg avatar Jul 16 '19 17:07 MedAmineOrg

There's my solution https://github.com/volkovartem77/kucoin-websoket-private/blob/master/wsKucoinBalance.py This is a private websocket Kucoin with balance and orders updates

volkovartem77 avatar Jul 20 '19 08:07 volkovartem77

Hi @Full4me, @volkovartem77, @MedAmineOrg Make sure you initialise the KucoinSocketManager with private=true I'll update the docs and add a check for that account balance topic. The functionality is there though.

ksm = await KucoinSocketManager.create(loop, client, handle_evt, private=True)

sammchardy avatar Jul 20 '19 10:07 sammchardy