Currency EndpointsΒΆ
-
class
kucoin.client.
Client
(api_key, api_secret, passphrase, sandbox=False, requests_params=None)[source] -
get_currencies
()[source] List known currencies
https://docs.kucoin.com/#get-currencies
currencies = client.get_currencies()
Returns: API Response [ { "currency": "BTC", "name": "BTC", "fullName": "Bitcoin", "precision": 8 }, { "currency": "ETH", "name": "ETH", "fullName": "Ethereum", "precision": 7 } ]
Raises: KucoinResponseException, KucoinAPIException
-
get_currency
(currency)[source] Get single currency detail
https://docs.kucoin.com/#get-currency-detail
# call with no coins currency = client.get_currency('BTC')
Returns: API Response { "currency": "BTC", "name": "BTC", "fullName": "Bitcoin", "precision": 8, "withdrawalMinSize": "0.002", "withdrawalMinFee": "0.0005", "isWithdrawEnabled": true, "isDepositEnabled": true }
Raises: KucoinResponseException, KucoinAPIException
-