Brokerのロゴ

Broker

組織
Kucoin
broker

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.

概要

公開者Kucoin
リポジトリkucoin-skills-hub
スキル名broker
スター
28
フォーク
5
同梱ファイル
2
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 2個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    KucoinがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Broker」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/Kucoin/kucoin-skills-hub/tree/main/skills/broker
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Kucoin/kucoin-skills-hub.git /tmp/kucoin-skills-hub
mkdir -p .claude/skills
cp -r /tmp/kucoin-skills-hub/skills/broker .claude/skills/broker
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでBrokerを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にBrokerを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Brokerは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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

EndpointDescriptionRequiredOptionalAuthentication
/api/v2/affiliate/queryInvitees (GET)Get Invited (list of invited users with trade stats)NoneuserType, referralCode, uid, registrationStartAt, registrationEndAt, page, pageSizeYes
/api/v2/affiliate/queryMyCommission (GET)Get Commission (affiliate commission records)NonesiteType, rebateType, rebateStartAt, rebateEndAt, page, pageSize, userId, dataTypeYes
/api/v2/affiliate/queryTransactionByUid (GET)Get Trade History (trade records for a specific invitee)uidtradeType, tradeStartAt, tradeEndAt, page, pageSizeYes
/api/v2/affiliate/queryTransactionByTime (GET)Get Transaction (trade records by time range)tradeStartAt, tradeEndAtuid, tradeType, lastId, direction, pageSizeYes
/api/v2/affiliate/queryKumining (GET)Get Kumining (KuMining commission records)Noneuid, startAt, endAt, lastId, direction, pageSizeYes

Broker Pro

EndpointDescriptionRequiredOptionalAuthentication
/api/v2/broker/api/rebate/download (GET)Get Broker Rebate (download rebate order file)begin, end, tradeTypeNoneYes
/api/v2/broker/queryMyCommission (GET)Get Commission (broker commission records)NonesiteType, tradeType, rebateType, startAt, endAt, page, pageSizeYes
/api/v2/broker/queryUser (GET)Get User List (broker sub-users)NonetradeType, uid, rcode, tag, startAt, endAt, page, pageSizeYes
/api/v2/broker/queryDetailByUid (GET)Get User Transactions (trade records per user UID)NonetradeType, uid, startAt, endAt, lastId, direction, pageSizeYes

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.

EndpointDescriptionRequiredOptionalAuthentication
/api/kyc/ndBroker/proxyClient/status/list (GET)Get KYC Status (by UID list)clientUidsNoneYes
/api/kyc/ndBroker/proxyClient/status/page (GET)Get KYC Status List (paginated)NonepageNumber, pageSizeYes
/api/v1/broker/nd/info (GET)Get Broker Info (rebate download by date range)begin, end, tradeTypeNoneYes
/api/v1/broker/nd/account (GET)Get Sub-Account (list sub-accounts)Noneuid, currentPage, pageSizeYes
/api/v1/broker/nd/account/apikey (GET)Get Sub-Account API KeyuidapiKeyYes
/api/v3/broker/nd/transfer/detail (GET)Get Transfer HistoryorderIdNoneYes
/api/v1/asset/ndbroker/deposit/list (GET)Get Deposit List (sub-account deposits)Nonecurrency, status, hash, startTimestamp, endTimestamp, limitYes
/api/v3/broker/nd/deposit/detail (GET)Get Deposit Detailcurrency, hashNoneYes
/api/v3/broker/nd/withdraw/detail (GET)Get Withdraw DetailwithdrawalIdNoneYes
/api/v1/broker/nd/rebate/download (GET)Get Broker Rebate (ND broker rebate download)begin, end, tradeTypeNoneYes

Parameters

Affiliate Parameters

  • userType: Invited user type: 1 (Regular), 2 (KYC-verified), 3 (First-trade)
  • referralCode: The referral code (rcode) through which the user registered
  • uid: Invitee UID (for trade history query) or comma-separated UIDs
  • registrationStartAt / registrationEndAt: Registration time range (13-digit timestamp)
  • siteType: Commission source site. Default: all
  • rebateType: Rebate type: 0 (all), 1 (spot), 2 (futures)
  • rebateStartAt / rebateEndAt: Commission issuance time range (13-digit timestamp); max one-year span
  • tradeStartAt / tradeEndAt: Trade time range (13-digit timestamp)
  • tradeType: Trading type: SPOT | FEATURE
  • dataType: Data type: trade | kumining
  • startAt / endAt: Time range filter (13-digit timestamp)
  • lastId: Cursor-based pagination: empty string for first query, then use lastId from last record
  • direction: Page direction: PRE | NEXT
  • page / pageSize: Pagination controls

Broker Pro Parameters

  • begin / end: Date range in YYYYMMDD format (e.g., 20250101); maximum 6-month interval
  • tradeType (Broker Pro): Transaction type: SPOT | FUTURE
  • rcode: Referral code used when user registered with broker
  • tag: Broker tag used by the user during trading
  • rebateType: 1 (spot rebate), 2 (futures rebate), 0 (all; for commission query)

ND Broker Parameters

  • clientUids: Comma-separated client UIDs for KYC status query
  • pageNumber / pageSize: Pagination for KYC status list
  • tradeType (ND Broker Rebate): Transaction type: 1 (spot), 2 (futures)
  • uid: Sub-account UID for account and API key queries
  • currentPage: Current page number (default: 1)
  • apiKey: Sub-account API key (filter parameter)
  • orderId: Transfer order ID for transfer history query
  • currency: Currency code filter for deposit list
  • status (Deposit List): PROCESSING | SUCCESS | FAILURE
  • hash: Transaction hash for deposit list/detail query
  • startTimestamp / endTimestamp: Time range in milliseconds for deposit list
  • limit: Maximum number of returned deposit items (default and max: 1000)
  • withdrawalId: Withdrawal ID for withdraw detail query

Enums

  • userType: 1 | 2 | 3
  • tradeType (Affiliate): SPOT | FEATURE
  • tradeType (Broker Pro): all | SPOT | FUTURE
  • tradeType (ND Broker Rebate): 1 (spot) | 2 (futures)
  • rebateType: 0 | 1 | 2
  • dataType: trade | kumining
  • direction: PRE | NEXT
  • status (KYC): NONE | PROCESS | PASS | REJECT
  • status (Deposit): PROCESSING | SUCCESS | FAILURE

Authentication

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

Required credentials:

  • API Key (KC-API-KEY): Your KuCoin Broker API key
  • API Secret: Your KuCoin API secret (used for signing)
  • Passphrase (KC-API-PASSPHRASE): Your API passphrase (HMAC-SHA256 encrypted)

Base URL:

  • Production: https://api.kucoin.com

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 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:

  • API Key: Show first 5 + last 4 characters: abcde...wxyz
  • Secret Key: Always mask, show only last 5: ***...s3cr3
  • Passphrase: Always mask entirely: ***...

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:

  • main (Production)
  • broker-keys (Production)

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

  • API Key: your_api_key
  • Secret: your_api_secret
  • Passphrase: your_passphrase

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Broker」では何ができますか?

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.

TypingMindでBrokerを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Brokerはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにBrokerをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/Kucoin/kucoin-skills-hub/tree/main/skills/brokerを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Brokerを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Brokerで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもBrokerを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Broker」は無料ですか?

はい。KucoinがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇