Exceptions¶
KucoinResponseException¶
Raised if a non JSON response is returned
KucoinAPIException¶
On an API call error a kucoin.exceptions.KucoinAPIException will be raised.
The exception provides access to the
- status_code - response status code
- response - response object
- message - Kucoin error message=
- request - request object if available
try:
client.get_coin_list()
except KucoinAPIException as e:
print(e.status_code)
print(e.message)
MarketOrderException¶
Raised if market order params are incorrect
LimitOrderException¶
Raised if limit order params are incorrect