assets
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseKuCoin Assets Skill
KuCoin资产管理Skill
Assets management on KuCoin using authenticated API endpoints. Requires API Key, API Secret, and Passphrase for all endpoints. Return the result in JSON format.
Note: This skill only supports Classic REST API GET endpoints (read-only operations).
通过已认证的API端点进行KuCoin资产管理所有端点均需要API Key、API SecretPassphrase返回结果为JSON格式.
注意本Skill仅支持Classic REST API的GET端点只读operations.
Quick Reference
快速参考
Classic API -- Account & Funding
Classic API --账户与资金
| Endpoint | Description | Required | Optional | Authentication |
|---|---|---|---|---|
| Get Account Summary Info | None | None | Yes |
| Get Apikey Info | None | None | Yes |
| Get Account Type - Spot | None | None | Yes |
| Get Account List - Spot | None | currency, type | Yes |
| Get Account Detail - Spot | accountId (path) | None | Yes |
| Get Account - Cross Margin. Note: Requires margin trading to be enabled on the account. | None | quoteCurrency, queryType | Yes |
| Get Account - Isolated Margin. Note: Requires margin trading to be enabled on the account. | None | symbol, quoteCurrency, queryType | Yes |
| Get Account - Futures. Note: Must use Futures base URL ( | None | currency | Yes |
| Get Account Ledgers - Spot/Margin | None | currency, direction, bizType, startAt, endAt, currentPage, pageSize | Yes |
| Get Account Ledgers - Trade_hf | None | currency, direction, bizType, lastId, limit, startAt, endAt | Yes |
| Get Account Ledgers - Margin_hf | None | currency, direction, bizType, lastId, limit, startAt, endAt | Yes |
| Get Account Ledgers - Futures. Note: Must use Futures base URL ( | None | currency, type, offset, forward, maxCount, startAt, endAt | Yes |
| Endpoint | 描述 | 必填参数 | 可选参数 | 认证要求 |
|---|---|---|---|---|
| 获取账户汇总信息 | None | None | Yes |
| 获取API密钥信息 | None | None | Yes |
| 获取账户类型 -现货 | None | None | Yes |
| 获取账户列表 -现货 | None | currency, type | Yes |
| 获取账户详情 -现货 | accountId path parameter | None | Yes |
| 获取账户 -Cross Margin. 注意账户需已开通margin trading. | None | quoteCurrency, queryType | Yes |
| 获取账户 -Isolated Margin. 注意账户需已开通margin trading. | None | symbol quoteCurrencyqueryType | Yes |
| 获取账户 -Futures注意必须使用Futures base URL ( | None | currency | Yes |
| 获取账户流水 -Spot/Margin | None | currency directionbizTypestartAtendAtcurrentPagepageSize | Yes |
| 获取账户流水 -Trade_hf | None | currency directionbizTypelastIdlimitstartAtendAt | Yes |
| 获取账户流水 -Margin_hf | None | currency directionbizTypelastIdlimitstartAtendAt | Yes |
| 获取账户流水 -Futures注意必须使用Futures base URL ( | None | currency typeoffsetforwardmaxCountstartAtendAt | Yes |
| ---------- | ------------- | ---------- | ---------- | ---------------- |
| 获取子账户列表 -汇总信息 | None | currentPagepageSize | Yes |
| 获取子账户详情 -余额 | subUserId path parameter | includeBaseAmountbaseCurrencybaseAmount | Yes |
| 获取子账户列表 -Spot Balance V2 | None | currentPagepageSize | Yes |
| 获取子账户列表 -Futures Balance V2注意必须使用Futures base URL ( | None | currency | Yes |
| ---------- | ------------- | ---------- | ---------- | ---------------- |
| 获取子账户API列表 | subName | apiKey | Yes |
| ---------- | ------------- | ---------- | ---------- | ---------------- |
| 获取Deposit Address V3 | currency | chain | Yes |
| 获取Deposit History | currency | statusstartAtendAtcurrentPagepageSize | Yes |
| ---------- | ------------- | ---------- | ---------- | ---------------- |
| 获取Withdrawal Quotas | currency | chain | Yes |
| 获取Withdrawal History By ID | withdrawalId path parameter | None | Yes |
| 获取Withdrawal History | currency | statusstartAtendAtcurrentPagepageSize | Yes |
| ---------- | ------------- | ---------- | ---------- | ---------------- |
| 获取Transfer Quotas | currency type | tag | Yes |
| ---------- | ------------- | ---------- | ---------- | ---------------- |
| 获取Basic Fee -Spot/Margin | None | currencyType | Yes |
| 获取Actual Fee -Futures | symbols | None | Yes |
Classic API -- Sub Account
参数
—
通用参数
| Endpoint | Description | Required | Optional | Authentication |
|---|---|---|---|---|
| Get Sub-Account List - Summary Info | None | currentPage, pageSize | Yes |
| Get Sub-Account Detail - Balance | subUserId (path) | includeBaseAmount, baseCurrency, baseAmount | Yes |
| Get Sub-Account List - Spot Balance (V2) | None | currentPage, pageSize | Yes |
| Get Sub-Account List - Futures Balance (V2). Note: Must use Futures base URL ( | None | currency | Yes |
- **currency货币代码例如部分端点支持用逗号分隔查询多种货币.
BTCUSDTETH - chain货币的chain ID例如推荐用于多链货币.
ethtrxbsc ton2arbitrum - startAt / endAtUnix epoch毫秒级的起始结束时间.
- currentPage当前请求页码默认值1.
- pageSize每页结果数量不同端点有所差异典型最小值最大值.
- lastId上一批数据的最后一条ID用于cursor-based pagination.
- direction划转方向或
in.out
Classic API -- Sub Account API
Classic API账户参数
| Endpoint | Description | Required | Optional | Authentication |
|---|---|---|---|---|
| Get Sub-Account API List | subName | apiKey | Yes |
- typeSpot Account List账户类型tradetrade.
mainfunding - accountId账户IDaccount detail path parameter.
- quoteCurrency杠杆账户计价货币.
USDTKCSBTC - queryTypeCross MarginMARGINMARGIN_V2ALL.
- queryTypeIsolated MarginISOLATEDISOLATED_V2ALL.
- bizTypeSpot/Margin LedgerDEPOSITWITHDRAWTRANSFERSUB_TRANSFERTRADE_EXCHANGEMARGIN_EXCHANGEKUCOIN_BONUSBROKER_TRANSFER.
- bizTypeTrade_hf LedgerTRADE_EXCHANGETRANSFERSUB_TRANSFERRETURNED_FEESDEDUCTION_FEESOTHER.
- bizTypeMargin_hf LedgerTRANSFERSUB_TRANSFERMARGIN_EXCHANGEISOLATED_EXCHANGELIQUIDATIONASSERT_RETURN.
- typeFutures LedgerRealisedPNLDepositWithdrawalTransferInTransferOut.
- offsetFutures Ledger分页起始偏移量.
- forward布尔值true正向默认false反向.
- maxCountFutures Ledger每页显示数量默认.
- limitHF Ledger查询每页结果数量.
Classic API -- Deposit
Sub Account参数subUserId子账户用户IDpath parameter.
| Endpoint | Description | Required | Optional | Authentication |
|---|---|---|---|---|
| Get Deposit Address (V3) | currency | chain | Yes |
| Get Deposit History | currency | status, startAt, endAt, currentPage, pageSize | Yes |
subName子账户名称API key queries.
apiKey子账户API key过滤参数.
includeBaseAmount布尔值true显示所有货币包括零余额.
baseCurrency转换显示资产价值的货币.
baseAmount过滤条件余额≥该金额.
Classic API -- Withdrawals
Deposit & Withdrawal参数statusDeposit HistoryPROCESSINGSUCCESSFAILUREWAIT_TRM_MGTTRM_MGT_REJECTED.
| Endpoint | Description | Required | Optional | Authentication |
|---|---|---|---|---|
| Get Withdrawal Quotas | currency | chain | Yes |
| Get Withdrawal History By ID | withdrawalId (path) | None | Yes |
| Get Withdrawal History | currency | status, startAt, endAt, currentPage, pageSize | Yes |
statusWithdrawal HistoryPROCESSINGREVIEWWALLET_PROCESSINGSUCCESSFAILURE.
withdrawalId提现IDpath parameter.
Classic API -- Transfer
Transfer参数typeTransfer Quotas账户类型MAINTRADEMARGINISOLATEDMARGIN_V2ISOLATED_V2.
| Endpoint | Description | Required | Optional | Authentication |
|---|---|---|---|---|
| Get Transfer Quotas | currency, type | tag | Yes |
tagISOLATED账户类型时需交易对例如.
BTC-USDTClassic API -- Trade Fee
Trade Fee参数currencyType货币类型加密货币法币默认.
| Endpoint | Description | Required | Optional | Authentication |
|---|---|---|---|---|
| Get Basic Fee - Spot/Margin | None | currencyType | Yes |
| Get Actual Fee - Futures | symbols | None | Yes |
symbols合约手续费查询交易对例如XBTUSDTM.
Parameters
枚举值Account Types Classic API
Common Parameters
—
- currency: Currency code (e.g., ,
BTC,USDT). Some endpoints support querying multiple currencies separated by commas.ETH - chain: The chain ID of a currency (e.g., ,
eth,trx,bsc,ton2). Recommended for multi-chain currencies.arbitrum - startAt / endAt: Start and end time in milliseconds since Unix epoch.
- currentPage: Current request page, default 1.
- pageSize: Number of results per page. Varies by endpoint (typical min 10, max 100-500).
- lastId: The ID of the last set of data from the previous batch. Used for cursor-based pagination.
- direction: Direction of transfer: or
in.out
| 值 | 描述 | Value | Description |
|-------|-------------|
mainfunding account.
tradetrade account.
MAINfunding accounttransfer context.
TRADEtrade accounttransfer context.
CONTRACTfutures accounttransfer context.
MARGINmargin accountHF.
ISOLATEDisolated accountHF.
MARGIN_V2legacy margin accountphasing out.
ISOLATED_V2legacy isolated accountphasing out.
Classic API Account Parameters
Deposit StatusPROCESSING处理中SUCCESS成功FAILURE失败WAIT_TRM_MGT等待旅行规则TRM_MGT_REJECTED拒绝.
—
Withdrawal StatusREVIEW审核PROCESSING钱包处理SUCCESS成功FAILURE失败.
- type (Spot Account List): Account type: (funding),
main(spot).trade - accountId: Account ID (path parameter for account detail).
- quoteCurrency: Quote currency for margin accounts: ,
USDT,KCS.BTC - queryType (Cross Margin): ,
MARGIN,MARGIN_V2.ALL - queryType (Isolated Margin): ,
ISOLATED,ISOLATED_V2.ALL - bizType (Spot/Margin Ledger): ,
DEPOSIT,WITHDRAW,TRANSFER,SUB_TRANSFER,TRADE_EXCHANGE,MARGIN_EXCHANGE,KUCOIN_BONUS.BROKER_TRANSFER - bizType (Trade_hf Ledger): ,
TRADE_EXCHANGE,TRANSFER,SUB_TRANSFER,RETURNED_FEES,DEDUCTION_FEES.OTHER - bizType (Margin_hf Ledger): ,
TRANSFER,MARGIN_EXCHANGE,ISOLATED_EXCHANGE,LIQUIDATION.ASSERT_RETURN - type (Futures Ledger): ,
RealisedPNL,Deposit,Withdrawal,TransferIn.TransferOut - offset: Start offset for futures ledger pagination.
- forward: Boolean. for forward lookup (default),
truefor backward.false - maxCount: Displayed size per page for futures ledger. Default 50.
- limit: Number of results per page for HF ledger queries.
Sub Account Parameters
认证所有端点需提供KuCoin API凭证.
- subUserId: The user ID of a sub-account (path parameter).
- subName: Sub-account name (for API key queries).
- apiKey: API key of the sub-account (filter parameter).
- includeBaseAmount: Boolean. to display all currencies including zero-balance ones.
true - baseCurrency: Currency used to convert and display asset values.
- baseAmount: Filter: currency balance must be >= this amount.
必填凭证API KeyKuCoin API keyKC-API-KEY header. API SecretKuCoin API secretHMAC-SHA256签名. Passphrase创建API key时设置KC-API-PASSPHRASE headerAPI Key Version加密. 基础URL环境Production URLapi kucoincom.
Deposit & Withdrawal Parameters
安全共享凭证用户可发送文件提供格式如下bashyour-api-key your-api-secret your-passphrase.
- status (Deposit History): ,
PROCESSING,SUCCESS,FAILURE,WAIT_TRM_MGT.TRM_MGT_REJECTED - status (Withdrawal History): ,
PROCESSING,REVIEW,WALLET_PROCESSING,SUCCESS.FAILURE - withdrawalId: Withdrawal ID (path parameter).
切勿泄露API KeySecretPassphrase文件位置. 切勿发送至除KuCoin生产API外网站. 切勿显示完整凭证API Key显示前+后例如68d4a...841d. Secret Key仅显示最后例如***...b2340. Passphrase完全隐藏***... 示例回复账户mainAPI Key68d4a...841dSecret***...b2340Passphrase***...环境Production. 账户列表仅显示名称环境KuCoin账户mainProduction sub-keysProduction. 交易操作修改数据划转提现创建子账户需用户确认输入CONFIRM.
Transfer Parameters
KuCoin账户mainAPI Keyyour_api_keySecretyour_api_secretPassphraseyour_passphrase
- type (Transfer Quotas): Account type: ,
MAIN,TRADE,MARGIN,ISOLATED,MARGIN_V2.ISOLATED_V2 - tag: Trading pair required when account type is (e.g.,
ISOLATED).BTC-USDT
—
Trade Fee Parameters
—
- currencyType: Currency type: (crypto currency),
0(fiat currency). Default1.0 - symbols: Trading pair symbols for futures fee query (e.g., ).
XBTUSDTM
—
Enums
—
Account Types (Classic API)
—
| Value | Description |
|---|---|
| Funding account |
| Spot trading account |
| Funding account (transfer context) |
| Spot trading account (transfer context) |
| Futures account (transfer context) |
| Cross margin account (HF) |
| Isolated margin account (HF) |
| Cross margin account (legacy, phasing out) |
| Isolated margin account (legacy, phasing out) |
—
Deposit Status
—
| Value | Description |
|---|---|
| Deposit is being processed |
| Deposit completed successfully |
| Deposit failed |
| Waiting for travel rule management |
| Rejected by travel rule management |
—
Withdrawal Status
—
| Value | Description |
|---|---|
| Under review |
| Processing |
| Wallet processing |
| Withdrawal completed successfully |
| Withdrawal failed |
—
Authentication
—
For all endpoints, you must provide KuCoin API credentials.
Required credentials:
- API Key: Your KuCoin API key (sent as header)
KC-API-KEY - API Secret: Your KuCoin API secret (used for HMAC-SHA256 signing)
- Passphrase: The passphrase you set when creating the API key (sent as header, encrypted for API Key Version 2)
KC-API-PASSPHRASE
Base URLs:
| Environment | URL |
|---|---|
| Production | |
—
Security
—
Share Credentials
—
Users can provide KuCoin API credentials by sending a file where the content is in the following format:
bash
your-api-key
your-api-secret
your-passphrase—
Never Disclose API Key, Secret, and Passphrase
—
Never disclose the location of the API key, secret, and passphrase file.
Never send the API key, secret, or passphrase to any website other than the production KuCoin API.
—
Never Display Full Secrets
—
When showing credentials to users:
- API Key: Show first 5 + last 4 characters:
68d4a...841d - Secret Key: Always mask, show only last 5:
***...b2340 - Passphrase: Always fully mask:
***...
Example response when asked for credentials:
Account: main
API Key: 68d4a...841d
Secret: ***...b2340
Passphrase: ***...
Environment: Production
—
Listing Accounts
—
When listing accounts, show names and environment only -- never keys:
KuCoin Accounts:
- main (Production)
- sub-keys (Production)
—
Transactions
—
When performing operations that modify data (transfers, withdrawals, creating sub-accounts), always confirm with the user before proceeding by asking them to write "CONFIRM" to proceed.
—
KuCoin Accounts
—
main
—
- API Key: your_api_key
- Secret: your_api_secret
- Passphrase: your_passphrase
—