agentleFS
KucoinKucoin/kucoin-skills-hub/skills/earn/SKILL.md

earn

Skill28 starsChanged 9 months agoMITView on GitHub

KuCoin Earn products using the KuCoin API. Query Simple Earn and Structured Earn products. Authentication requires API Key, API Secret, and Passphrase.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

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

    line 85
  2. Distinctive:

    Never send the API key, secret, and passphrase to any website other than the production API endpoint.

    line 87
  3. Distinctive:

    When showing credentials to users:

    line 91
  4. Very specific:

    Secret Key: Always mask, show only last 5: *...x9y8z

    line 93
  5. Distinctive:

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

    line 105
  6. Distinctive:

    When performing transactions in mainnet (purchase, redeem), always confirm with the user before proceeding by asking them to write …

    line 112

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

KuCoin Earn Skill

Query KuCoin Earn products using authenticated API endpoints. Covers Simple Earn (savings, staking, promotions) and Structured Earn (dual investment) queries. Requires API Key, Secret Key, and Passphrase for authenticated endpoints. Return the result in JSON format.

Note: This skill only supports Classic REST API GET endpoints (read-only operations).

Quick Reference

Simple Earn

EndpointDescriptionRequiredOptionalAuthentication
/api/v1/earn/redeem-preview (GET)Get Redeem PrevieworderIdNoneYes
/api/v1/earn/saving/products (GET)Get Savings ProductsNonecurrency, currentPage, pageSizeYes
/api/v1/earn/promotion/products (GET)Get Promotion ProductsNonecurrency, currentPage, pageSizeYes
/api/v1/earn/staking/products (GET)Get Staking ProductsNonecurrency, currentPage, pageSizeYes
/api/v1/earn/kcs-staking/products (GET)Get KCS Staking ProductsNonecurrency, currentPage, pageSizeYes
/api/v1/earn/eth-staking/products (GET)Get ETH Staking ProductsNonecurrency, currentPage, pageSizeYes
/api/v1/earn/hold-assets (GET)Get Account HoldingNonecurrency, productId, productCategory, currentPage, pageSizeYes

Structured Earn

EndpointDescriptionRequiredOptionalAuthentication
/api/v1/struct-earn/orders (GET)Get Structured Product Orders. Note: This endpoint may not be available (returns 400100).Nonecurrency, status, currentPage, pageSizeYes
/api/v1/struct-earn/dual/products (GET)Get Dual Investment Products. Note: This endpoint may not be available (returns 400100).Nonecurrency, currentPage, pageSizeYes

Parameters

Common Parameters

  • orderId: Holding ID, used for redeem preview
  • currency: Currency code filter (e.g., USDT, BTC, KCS, ETH)
  • productId: Earn product ID (e.g., 2611)
  • productCategory: Product category filter for account holdings
  • currentPage: Current page number for paginated results (default: 1)
  • pageSize: Number of results per page. Minimum is 10, maximum is 500 (default: 15)
  • status: Order status filter for structured product queries

Enums

  • productCategory: DEMAND | STAKING | KCS_STAKING | ETH_STAKING | PROMOTION
  • status (structured orders): PENDING | ONGOING | UNSOLD | SETTLING | FINISHED
  • productStatus: ONGOING | PENDING | FULL | INTERESTING
  • holdingStatus: LOCKED | REDEEMING
  • productType: TIME | DEMAND

Authentication

For endpoints that require authentication, you will need to provide KuCoin API credentials. Required credentials:

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

Base URL:

Security

Share Credentials

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

abc123...apikey
secret123...key
mypassphrase

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, and passphrase to any website other than the production API endpoint.

Never Display Full Secrets

When showing credentials to users:

  • API Key: Show first 5 + last 4 characters: abc12...6789
  • Secret Key: Always mask, show only last 5: ***...x9y8z
  • Passphrase: Never display

Example response when asked for credentials: Account: main API Key: abc12...6789 Secret: ***...x9y8z Passphrase: ******** Environment: Production

Listing Accounts

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

  • main (Production)
  • earn-bot (Production)

Transactions in Mainnet

When performing transactions in mainnet (purchase, redeem), always confirm with the user before proceeding by asking them to write "CONFIRM" to proceed.


KuCoin Accounts

main

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

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.