sammchardy / python-kucoin

Kucoin REST and Websocket API python implementation
https://python-kucoin.readthedocs.io/en/latest/
MIT License
351 stars 148 forks source link

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

Open CopyPasteJedi opened 5 years ago

CopyPasteJedi commented 5 years ago

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?

volkovartem77 commented 5 years ago

The same question

MedAmineOrg commented 5 years ago

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

volkovartem77 commented 5 years ago

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

sammchardy commented 5 years ago

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)