earn

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

23 stars

Best use case

earn is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

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

Teams using earn should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/kucoin-official-earn/SKILL.md --create-dirs "https://raw.githubusercontent.com/jiayaoqijia/cryptoskill/main/skills/exchanges/kucoin-official-earn/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/kucoin-official-earn/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How earn Compares

Feature / AgentearnStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

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

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# 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

| Endpoint | Description | Required | Optional | Authentication |
|----------|-------------|----------|----------|----------------|
| `/api/v1/earn/redeem-preview` (GET) | Get Redeem Preview | orderId | None | Yes |
| `/api/v1/earn/saving/products` (GET) | Get Savings Products | None | currency, currentPage, pageSize | Yes |
| `/api/v1/earn/promotion/products` (GET) | Get Promotion Products | None | currency, currentPage, pageSize | Yes |
| `/api/v1/earn/staking/products` (GET) | Get Staking Products | None | currency, currentPage, pageSize | Yes |
| `/api/v1/earn/kcs-staking/products` (GET) | Get KCS Staking Products | None | currency, currentPage, pageSize | Yes |
| `/api/v1/earn/eth-staking/products` (GET) | Get ETH Staking Products | None | currency, currentPage, pageSize | Yes |
| `/api/v1/earn/hold-assets` (GET) | Get Account Holding | None | currency, productId, productCategory, currentPage, pageSize | Yes |

### Structured Earn

| Endpoint | Description | Required | Optional | Authentication |
|----------|-------------|----------|----------|----------------|
| `/api/v1/struct-earn/orders` (GET) | Get Structured Product Orders. **Note: This endpoint may not be available (returns 400100).** | None | currency, status, currentPage, pageSize | Yes |
| `/api/v1/struct-earn/dual/products` (GET) | Get Dual Investment Products. **Note: This endpoint may not be available (returns 400100).** | None | currency, currentPage, pageSize | Yes |

---

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

Related Skills

okx-cex-earn

23
from jiayaoqijia/cryptoskill

Manages OKX Simple Earn (flexible savings/lending), On-chain Earn (staking/DeFi), and Dual Investment (DCD/双币赢) via the okx CLI. Use this skill whenever the user wants to check earn balances, subscribe or redeem earn products, view or set lending rates, monitor on-chain staking orders, or interact with dual investment structured products — even if phrased casually as 活期赚币, 赚币, 申购, 赎回, 链上赚币, 质押, 理财, 双币赢, 双币理财, 双币申购, 高卖, 低买, dual investment, DCD, buy low, sell high structured product, earn with target price, or 目标价. Also use when the user asks about idle funds and whether to earn on them.

recipe-earn-yield-compare

23
from jiayaoqijia/cryptoskill

Compare earn strategy yields across assets and lock types to find the best rate.

kraken-earn-staking

23
from jiayaoqijia/cryptoskill

Discover staking strategies, allocate funds, and track earn positions.

yearn-heyanon

23
from jiayaoqijia/cryptoskill

Safe execution layer for Yearn yield vaults with deposit validation, capacity checks, and approval handling.

yearn-heyanon-executor

23
from jiayaoqijia/cryptoskill

Safe execution layer for Yearn yield vaults that validates deposit parameters, checks vault capacity, and returns pre-validated calldata for AI agents.

yearn-heyanon-agent

23
from jiayaoqijia/cryptoskill

Safe execution layer for Yearn yield vaults with parameter validation and pre-validated calldata for AI agents.

8004-skill

23
from jiayaoqijia/cryptoskill

ERC-8004 Trustless Agents - Register and manage AI agent identities on TRON and BSC blockchains with on-chain reputation tracking

8004-MCP - Agent Registry Protocol

23
from jiayaoqijia/cryptoskill

Multi-chain MCP server for ERC-8004 Agent Registry. Query agents, reputation, and feedback across Solana + EVM chains.

supurr

23
from jiayaoqijia/cryptoskill

Backtest, deploy, and monitor trading bots on Hyperliquid. Supports Grid, DCA, and Spot-Perp Arbitrage strategies across Native Perps, Spot markets (USDC/USDH), and HIP-3 sub-DEXes.

senpi-skills

23
from jiayaoqijia/cryptoskill

Agent Skills for autonomous crypto trading on Hyperliquid — trailing stops, market scanning, position management, and more.

sdks

23
from jiayaoqijia/cryptoskill

Official Azex SDKs — TypeScript, Python, MCP Server, CLI for the crypto-native LLM API gateway

perp-cli

23
from jiayaoqijia/cryptoskill

Multi-DEX perpetual futures CLI + MCP server — Pacifica (Solana), Hyperliquid, Lighter (Ethereum). 18 MCP tools for AI-powered trading