earn
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseKuCoin Earn Skill
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).
通过已认证的API端点查询KuCoin Earn产品,涵盖Simple Earn(储蓄、质押、活动)和Structured Earn(双币投资)查询。已认证端点需要API Key、Secret Key和Passphrase支持,返回结果为JSON格式。
注意: 本Skill仅支持经典REST API的GET端点(只读操作)。
Quick Reference
快速参考
Simple Earn
Simple Earn(简单赚币)
| Endpoint | Description | Required | Optional | Authentication |
|---|---|---|---|---|
| Get Redeem Preview | orderId | None | Yes |
| Get Savings Products | None | currency, currentPage, pageSize | Yes |
| Get Promotion Products | None | currency, currentPage, pageSize | Yes |
| Get Staking Products | None | currency, currentPage, pageSize | Yes |
| Get KCS Staking Products | None | currency, currentPage, pageSize | Yes |
| Get ETH Staking Products | None | currency, currentPage, pageSize | Yes |
| Get Account Holding | None | currency, productId, productCategory, currentPage, pageSize | Yes |
| 端点 | 描述 | 必填参数 | 可选参数 | 认证要求 |
|---|---|---|---|---|
| 获取赎回预览 | orderId | 无 | 是 |
| 获取储蓄产品 | 无 | currency、currentPage、pageSize | 是 |
| 获取活动产品 | 无 | currency、currentPage、pageSize | 是 |
| 获取质押产品 | 无 | currency、currentPage、pageSize | 是 |
| 获取KCS质押产品 | 无 | currency、currentPage、pageSize | 是 |
| 获取ETH质押产品 | 无 | currency、currentPage、pageSize | 是 |
| 获取账户持仓 | 无 | currency、productId、productCategory、currentPage、pageSize | 是 |
Structured Earn
Structured Earn(结构化赚币)
| Endpoint | Description | Required | Optional | Authentication |
|---|---|---|---|---|
| Get Structured Product Orders. Note: This endpoint may not be available (returns 400100). | None | currency, status, currentPage, pageSize | Yes |
| Get Dual Investment Products. Note: This endpoint may not be available (returns 400100). | None | currency, currentPage, pageSize | Yes |
| 端点 | 描述 | 必填参数 | 可选参数 | 认证要求 |
|---|---|---|---|---|
| 获取结构化产品订单。注意: 该端点可能不可用(返回400100错误)。 | 无 | currency、status、currentPage、pageSize | 是 |
| 获取双币投资产品。注意: 该端点可能不可用(返回400100错误)。 | 无 | currency、currentPage、pageSize | 是 |
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
- orderId:持仓ID,用于赎回预览
- currency:币种代码筛选(例如:、
USDT、BTC、KCS)ETH - productId:Earn产品ID(例如:)
2611 - productCategory:账户持仓的产品类别筛选
- currentPage:分页结果的当前页码(默认值:1)
- pageSize:每页结果数量,最小值为10,最大值为500(默认值:15)
- status:结构化产品查询的订单状态筛选
Enums
枚举值
- productCategory: |
DEMAND|STAKING|KCS_STAKING|ETH_STAKINGPROMOTION - status (structured orders): |
PENDING|ONGOING|UNSOLD|SETTLINGFINISHED - productStatus: |
ONGOING|PENDING|FULLINTERESTING - holdingStatus: |
LOCKEDREDEEMING - productType: |
TIMEDEMAND
- productCategory:|
DEMAND|STAKING|KCS_STAKING|ETH_STAKINGPROMOTION - status(结构化订单):|
PENDING|ONGOING|UNSOLD|SETTLINGFINISHED - productStatus:|
ONGOING|PENDING|FULLINTERESTING - holdingStatus:|
LOCKEDREDEEMING - productType:|
TIMEDEMAND
Authentication
认证
For endpoints that require authentication, you will need to provide KuCoin API credentials.
Required credentials:
- API Key (): Your KuCoin API key (for header)
KC-API-KEY - Secret Key: Your KuCoin API secret (for HMAC-SHA256 signing)
- Passphrase (): Your KuCoin API passphrase (encrypted with HMAC-SHA256)
KC-API-PASSPHRASE
Base URL:
- Production: https://api.kucoin.com
对于需要认证的端点,您需要提供KuCoin API凭证。
所需凭证:
- API Key ():您的KuCoin API密钥(用于请求头)
KC-API-KEY - Secret Key:您的KuCoin API密钥(用于HMAC-SHA256签名)
- Passphrase ():您的KuCoin API密码(使用HMAC-SHA256加密)
KC-API-PASSPHRASE
基础URL:
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用户可通过发送文件提供KuCoin API凭证,文件内容格式如下:
bash
abc123...apikey
secret123...key
mypassphraseNever Disclose API Key, Secret, and Passphrase
切勿泄露API密钥、Secret和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.
切勿泄露存储API密钥、Secret和Passphrase的文件位置。
切勿将API密钥、Secret和Passphrase发送至生产API端点以外的任何网站。
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
向用户展示凭证时:
- API Key:显示前5位+后4位:
abc12...6789 - Secret Key:始终掩码处理,仅显示最后5位:
***...x9y8z - Passphrase:绝不显示
询问凭证时的示例回复:
账户:主账户
API Key:abc12...6789
Secret:...x9y8z
Passphrase:*****
环境:生产环境
Listing Accounts
账户列表展示
When listing accounts, show names and environment only -- never keys:
KuCoin Accounts:
- main (Production)
- earn-bot (Production)
展示账户列表时,仅显示账户名称和环境——绝不显示密钥:
KuCoin账户:
- main(生产环境)
- earn-bot(生产环境)
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.
在主网执行交易操作(购买、赎回)时,必须先请求用户输入“CONFIRM”进行确认,然后再继续操作。
KuCoin Accounts
KuCoin账户
main
main
- API Key: your_api_key
- Secret Key: your_secret_key
- Passphrase: your_passphrase
- API Key: your_api_key
- Secret Key: your_secret_key
- Passphrase: your_passphrase