Kucoin official broker

From jiayaoqijia/cryptoskill · View interactive version

Kucoin official broker is an AI agent skill from the GitHub repository jiayaoqijia/cryptoskill. KuCoin Broker and Affiliate using the KuCoin API. Affiliate invite management, commission queries, Broker Pro user management, and ND (Exchange) Broker queries. Authentication requires API Key, API Secret, and Passphrase.

How to use this skill

Skill file

KuCoin Broker Skill

Broker and Affiliate operations on KuCoin using authenticated API endpoints. Covers Affiliate invite/commission management, Broker Pro rebate and user queries, and ND Exchange Broker queries (KYC status, sub-account info, deposits, withdrawals, and rebates). 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).

Quick Reference

Affiliate

| Endpoint | Description | Required | Optional | Authentication |

|----------|-------------|----------|----------|----------------|

| /api/v2/affiliate/queryInvitees (GET) | Get Invited (list of invited users with trade stats) | None | userType, referralCode, uid, registrationStartAt, registrationEndAt, page, pageSize | Yes |

| /api/v2/affiliate/queryMyCommission (GET) | Get Commission (affiliate commission records) | None | siteType, rebateType, rebateStartAt, rebateEndAt, page, pageSize, userId, dataType | Yes |

| /api/v2/affiliate/queryTransactionByUid (GET) | Get Trade History (trade records for a specific invitee) | uid | tradeType, tradeStartAt, tradeEndAt, page, pageSize | Yes |

| /api/v2/affiliate/queryTransactionByTime (GET) | Get Transaction (trade records by time range) | tradeStartAt, tradeEndAt | uid, tradeType, lastId, direction, pageSize | Yes |

| /api/v2/affiliate/queryKumining (GET) | Get Kumining (KuMining commission records) | None | uid, startAt, endAt, lastId, direction, pageSize | Yes |

Broker Pro

| Endpoint | Description | Required | Optional | Authentication |

|----------|-------------|----------|----------|----------------|

| /api/v2/broker/api/rebate/download (GET) | Get Broker Rebate (download rebate order file) | begin, end, tradeType | None | Yes |

| /api/v2/broker/queryMyCommission (GET) | Get Commission (broker commission records) | None | siteType, tradeType, rebateType, startAt, endAt, page, pageSize | Yes |

| /api/v2/broker/queryUser (GET) | Get User List (broker sub-users) | None | tradeType, uid, rcode, tag, startAt, endAt, page, pageSize | Yes |

| /api/v2/broker/queryDetailByUid (GET) | Get User Transactions (trade records per user UID) | None | tradeType, uid, startAt, endAt, lastId, direction, pageSize | Yes |

ND Exchange Broker

⚠️ Note: The ND Exchange Broker endpoints below (/api/v1/broker/nd/* and /api/kyc/ndBroker/*) may have been deprecated or migrated. These endpoints currently return 404 Not Found. They require ND Broker-level API permissions. Please consult the latest KuCoin API documentation for updated paths.

| Endpoint | Description | Required | Optional | Authentication |

|----------|-------------|----------|----------|----------------|

| /api/kyc/ndBroker/proxyClient/status/list (GET) | Get KYC Status (by UID list) | clientUids | None | Yes |

| /api/kyc/ndBroker/proxyClient/status/page (GET) | Get KYC Status List (paginated) | None | pageNumber, pageSize | Yes |

| /api/v1/broker/nd/info (GET) | Get Broker Info (rebate download by date range) | begin, end, tradeType | None | Yes |

| /api/v1/broker/nd/account (GET) | Get Sub-Account (list sub-accounts) | None | uid, currentPage, pageSize | Yes |

| /api/v1/broker/nd/account/apikey (GET) | Get Sub-Account API Key | uid | apiKey | Yes |

| /api/v3/broker/nd/transfer/detail (GET) | Get Transfer History | orderId | None | Yes |

| /api/v1/asset/ndbroker/deposit/list (GET) | Get Deposit List (sub-account deposits) | None | currency, status, hash, startTimestamp, endTimestamp, limit | Yes |

| /api/v3/broker/nd/deposit/detail (GET) | Get Deposit Detail | currency, hash | None | Yes |

| /api/v3/broker/nd/withdraw/detail (GET) | Get Withdraw Detail | withdrawalId | None | Yes |

| /api/v1/broker/nd/rebate/download (GET) | Get Broker Rebate (ND broker rebate download) | begin, end, tradeType | None | Yes |


Parameters

Affiliate Parameters

Broker Pro Parameters

ND Broker Parameters

Enums


Authentication

For all endpoints, you must provide KuCoin API credentials with Broker-level permissions.

Required credentials:

Base URL:


Security

Share Credentials

Users can provide KuCoin API credentials by sending a file where the content is in the following format:

your-api-key
your-api-secret
your-passphrase

Never Disclose API Key and Secret

Never disclose the location of the API key, secret, or passphrase file.

Never send the API key, secret, or passphrase to any website other than the official KuCoin API endpoint.

Never Display Full Secrets

When showing credentials to users:

Example response when asked for credentials:

Account: main

API Key: abcde...wxyz

Secret: ***...s3cr3

Passphrase: ***...

Listing Accounts

When listing accounts, show names and environment only -- never keys:

KuCoin Accounts:

Transactions in Production

When performing operations that modify data (transfers, creating sub-accounts, updating API keys), always confirm with the user before proceeding by asking them to write "CONFIRM" to proceed.


KuCoin Accounts

main

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.