sammchardy / python-kucoin

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

Is there any way to check if a BUY/SELL order partially completed? #24

Closed CallumHemsley closed 6 years ago

CallumHemsley commented 6 years ago

We have get_active_orders() and get_dealt_orders() but if a order is partially filled, how do I know? Does it stay in active orders?

sammchardy commented 6 years ago

Hi @CallumHemsley yes it stays in active orders. And you have two values in the order details "dealtAmout" and "pendingAmount"

dealtAmount - is the amount that has been traded pendingAmount - is the remainder left to be traded