Use this file to discover all available pages before exploring further.
The SpotClient account group covers everything related to your KuCoin identity and balance state: reading service health, inspecting your API key details, listing spot and margin balances, paging through account ledgers, and managing the full lifecycle of sub-accounts and their dedicated API keys. All authenticated endpoints require apiKey, apiSecret, and apiPassphrase to be provided when constructing the client. Public endpoints (such as getMyIp and getServiceStatus) can be called without credentials.
All authenticated methods automatically sign requests. Pass your credentials once at client construction and every subsequent call will include the correct HMAC signature.
import { SpotClient } from 'kucoin-api';const client = new SpotClient({ apiKey: 'apiKeyHere', apiSecret: 'apiSecretHere', apiPassphrase: 'apiPassPhraseHere',});const summary = await client.getAccountSummary();console.log(summary.data);
getApikeyInfo()
Returns details about the API key currently in use — remark, permissions, IP whitelist, expiry, and whether it belongs to a sub-account.Endpoint:GET api/v1/user/api-key — 🔒 Auth required
Returns whether the authenticated account is a high-frequency (HF) trading account (true) or a standard account (false).Endpoint:GET api/v1/hf/accounts/opened — 🔒 Auth required
Lists all accounts (spot, main, trade, margin) along with their available and hold balances. Optionally filter by currency or type.Endpoint:GET api/v1/accounts — 🔒 Auth required
Paginated list of transaction records (deposits, withdrawals, trades, transfers) for spot and margin accounts. Results are sorted newest-first.Endpoint:GET api/v1/accounts/ledgers — 🔒 Auth required
Paginated ledger for the high-frequency margin trading account. Supports multi-coin queries. Results are sorted by createdAt and id descending.Endpoint:GET api/v3/hf/margin/account/ledgers — 🔒 Auth required
Base currency for amount conversion (e.g. "USDT").
getSubAccountBalancesV2(params?)
Returns paginated spot balances for all sub-accounts.Endpoint:GET api/v2/sub-accounts — 🔒 Auth required
getSubAccountBalancesV2(params?: { currentPage?: number; pageSize?: number }): Promise<APISuccessResponse<SubAccountBalancesV2>>
getSubAccountsV1()
Returns a non-paginated list of all sub-accounts. Deprecated — use getSubAccountsV2 for new integrations.Endpoint:GET api/v1/sub/user — 🔒 Auth required
Returns spot balances for all sub-accounts using the legacy V1 endpoint. Deprecated — use getSubAccountBalancesV2 for new integrations.Endpoint:GET api/v1/sub-accounts — 🔒 Auth required