sammchardy / python-kucoin

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

Request. Level 3 MatchEngine #39

Open nielskool opened 5 years ago

nielskool commented 5 years ago

Hi,

First of all, great library. I've been using it for quite some time now. The new Kucoin API offers level 3 MatchEngine which I could use very much. So my question is, do you have any plans on implementing this? I might consider looking into your code and try to implement it myself.

source: https://docs.kucoin.com/#match-execution-data

sammchardy commented 5 years ago

Hi @nielskool I've started implementing websockets in a separate branch.

I will extend this to a local orderbook implementation for lvl2 and lvl3 market data.

For now if you can test out the websocket feature branch (note will only work for python3.6+) and requires websockets library.

See some short documentation can be found [here](https://github.com/sammchardy/python-kucoin/blob/feature/websockets/docs/websockets.rst

sammchardy commented 5 years ago

@nielskool have added websockets to v2.1.0, yet to add in local order book though. That will be next item.

MedAmineOrg commented 5 years ago

hello @sammchardy we are trying to make a trading bot on kucoin, but we get some access limitations because of requests frequency, we tried to use websockets, and we started testing the sample code as given in Doc but the balance doesn't show, can u provide any sort of assistance plz ? Thnx

sammchardy commented 5 years ago

Hi @MedAmineOrg if you didn't see the message on the other issue, make sure you're setting private=True when creating the KucoinSocketManager.

If you're having other issues find me on Telegram @sammchardy