Currency Endpoints

class kucoin.client.Client(api_key=None, api_secret=None, passphrase=None, sandbox=False, requests_params=None)[source]
get_currencies()[source]

List known currencies

https://www.kucoin.com/docs/rest/spot-trading/market-data/get-currency-list

currencies = client.get_currencies()
Returns:

API Response

{
    "code": "200000",
    "data": [
        {
            "currency": "BTC",
            "name": "BTC",
            "fullName": "Bitcoin",
            "precision": 8,
            "confirms": null,
            "contractAddress": null,
            "isMarginEnabled": true,
            "isDebitEnabled": true,
            "chains": [
                {
                    "chainName" : "BTC",
                    "withdrawalMinFee" : "0.001",
                    "withdrawalMinSize" : "0.0012",
                    "withdrawFeeRate" : "0",
                    "depositMinSize" : "0.0002",
                    "isWithdrawEnabled" : true,
                    "isDepositEnabled" : true,
                    "preConfirms" : 1,
                    "contractAddress" : "",
                    "chainId" : "btc",
                    "confirms" : 3
                },
                {
                    "chainName" : "KCC",
                    "withdrawalMinFee" : "0.00002",
                    "withdrawalMinSize" : "0.0008",
                    "withdrawFeeRate" : "0",
                    "depositMinSize" : null,
                    "isWithdrawEnabled" : true,
                    "isDepositEnabled" : true,
                    "preConfirms" : 20,
                    "contractAddress" : "0xfa93c12cd345c658bc4644d1d4e1b9615952258c",
                    "chainId" : "kcc",
                    "confirms" : 20
                },
                {
                    "chainName" : "BTC-Segwit",
                    "withdrawalMinFee" : "0.0005",
                    "withdrawalMinSize" : "0.0008",
                    "withdrawFeeRate" : "0",
                    "depositMinSize" : "0.0002",
                    "isWithdrawEnabled" : false,
                    "isDepositEnabled" : true,
                    "preConfirms" : 2,
                    "contractAddress" : "",
                    "chainId" : "bech32",
                    "confirms" : 2
                }
            ]
        }
    ]
}
Raises:

KucoinResponseException, KucoinAPIException

get_currency(currency, chain=None, **params)[source]

Get single currency detail

https://www.kucoin.com/docs/rest/spot-trading/market-data/get-currency-detail

Parameters:
  • currency (string) – Currency code

  • chain (string) – (optional) Chain name. The available value for USDT are OMNI, ERC20, TRC20.

# call with no coins
currency = client.get_currency('BTC')
currency = client.get_currency('BTC', 'ERC20')
Returns:

API Response

{
    "data" : {
        "isMarginEnabled" : true,
        "chains" : [
            {
                "chainName" : "BTC",
                "withdrawalMinFee" : "0.001",
                "withdrawalMinSize" : "0.0012",
                "withdrawFeeRate" : "0",
                "depositMinSize" : "0.0002",
                "isWithdrawEnabled" : true,
                "isDepositEnabled" : true,
                "preConfirms" : 1,
                "contractAddress" : "",
                "chainId" : "btc",
                "confirms" : 3
            },
            {
                "chainName" : "KCC",
                "withdrawalMinFee" : "0.00002",
                "withdrawalMinSize" : "0.0008",
                "withdrawFeeRate" : "0",
                "depositMinSize" : null,
                "isWithdrawEnabled" : true,
                "isDepositEnabled" : true,
                "preConfirms" : 20,
                "contractAddress" : "0xfa93c12cd345c658bc4644d1d4e1b9615952258c",
                "chainId" : "kcc",
                "confirms" : 20
            },
            {
                "chainName" : "BTC-Segwit",
                "withdrawalMinFee" : "0.0005",
                "withdrawalMinSize" : "0.0008",
                "withdrawFeeRate" : "0",
                "depositMinSize" : "0.0002",
                "isWithdrawEnabled" : false,
                "isDepositEnabled" : true,
                "preConfirms" : 2,
                "contractAddress" : "",
                "chainId" : "bech32",
                "confirms" : 2
            }
        ],
        "contractAddress" : null,
        "isDebitEnabled" : true,
        "fullName" : "Bitcoin",
        "precision" : 8,
        "currency" : "BTC",
        "name" : "BTC",
        "confirms" : null
    },
    "code" : "200000"
}
Raises:

KucoinResponseException, KucoinAPIException