simple-earn
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseBinance Simple-earn Skill
Binance Simple-earn 技能
Simple-earn request on Binance using authenticated API endpoints. Requires API key and secret key for certain endpoints. Return the result in JSON format.
通过已认证的API端点调用Binance的Simple-earn服务。部分端点需提供API密钥和Secret Key,返回结果为JSON格式。
Quick Reference
快速参考
| Endpoint | Description | Required | Optional | Authentication |
|---|---|---|---|---|
| Get BFUSD Account (USER_DATA) | None | recvWindow | Yes |
| Get BFUSD Quota Details (USER_DATA) | None | recvWindow | Yes |
| Redeem BFUSD(TRADE) | amount, type | recvWindow | Yes |
| Subscribe BFUSD(TRADE) | asset, amount | recvWindow | Yes |
| Get BFUSD Rate History (USER_DATA) | None | startTime, endTime, current, size, recvWindow | Yes |
| Get BFUSD Redemption History (USER_DATA) | None | startTime, endTime, current, size, recvWindow | Yes |
| Get BFUSD Rewards History (USER_DATA) | None | startTime, endTime, current, size, recvWindow | Yes |
| Get BFUSD subscription history(USER_DATA) | None | asset, startTime, endTime, current, size, recvWindow | Yes |
| Get Flexible Personal Left Quota(USER_DATA) | productId | recvWindow | Yes |
| Get Flexible Product Position(USER_DATA) | None | asset, productId, current, size, recvWindow | Yes |
| Get Locked Personal Left Quota(USER_DATA) | projectId | recvWindow | Yes |
| Get Locked Product Position | None | asset, positionId, projectId, current, size, recvWindow | Yes |
| Get Simple Earn Flexible Product List(USER_DATA) | None | asset, current, size, recvWindow | Yes |
| Get Simple Earn Locked Product List(USER_DATA) | None | asset, current, size, recvWindow | Yes |
| Simple Account(USER_DATA) | None | recvWindow | Yes |
| Get Flexible Subscription Preview(USER_DATA) | productId, amount | recvWindow | Yes |
| Get Locked Subscription Preview(USER_DATA) | projectId, amount | autoSubscribe, recvWindow | Yes |
| Redeem Flexible Product(TRADE) | productId | redeemAll, amount, destAccount, recvWindow | Yes |
| Redeem Locked Product(TRADE) | positionId | recvWindow | Yes |
| Set Flexible Auto Subscribe(USER_DATA) | productId, autoSubscribe | recvWindow | Yes |
| Set Locked Auto Subscribe(USER_DATA) | positionId, autoSubscribe | recvWindow | Yes |
| Set Locked Product Redeem Option(USER_DATA) | positionId, redeemTo | recvWindow | Yes |
| Subscribe Flexible Product(TRADE) | productId, amount | autoSubscribe, sourceAccount, recvWindow | Yes |
| Subscribe Locked Product(TRADE) | projectId, amount | autoSubscribe, sourceAccount, redeemTo, recvWindow | Yes |
| Get Collateral Record(USER_DATA) | None | productId, startTime, endTime, current, size, recvWindow | Yes |
| Get Flexible Redemption Record(USER_DATA) | None | productId, redeemId, asset, startTime, endTime, current, size, recvWindow | Yes |
| Get Flexible Rewards History(USER_DATA) | type | productId, asset, startTime, endTime, current, size, recvWindow | Yes |
| Get Flexible Subscription Record(USER_DATA) | None | productId, purchaseId, asset, startTime, endTime, current, size, recvWindow | Yes |
| Get Locked Redemption Record(USER_DATA) | None | positionId, redeemId, asset, startTime, endTime, current, size, recvWindow | Yes |
| Get Locked Rewards History(USER_DATA) | None | positionId, asset, startTime, endTime, current, size, recvWindow | Yes |
| Get Locked Subscription Record(USER_DATA) | None | purchaseId, asset, startTime, endTime, current, size, recvWindow | Yes |
| Get Rate History(USER_DATA) | productId | aprPeriod, startTime, endTime, current, size, recvWindow | Yes |
| Get RWUSD Quota Details (USER_DATA) | None | recvWindow | Yes |
| Get RWUSD Account (USER_DATA) | None | recvWindow | Yes |
| Redeem RWUSD(TRADE) | amount, type | recvWindow | Yes |
| Subscribe RWUSD(TRADE) | asset, amount | recvWindow | Yes |
| Get RWUSD Rate History (USER_DATA) | None | startTime, endTime, current, size, recvWindow | Yes |
| Get RWUSD Redemption History (USER_DATA) | None | startTime, endTime, current, size, recvWindow | Yes |
| Get RWUSD Rewards History (USER_DATA) | None | startTime, endTime, current, size, recvWindow | Yes |
| Get RWUSD subscription history(USER_DATA) | None | asset, startTime, endTime, current, size, recvWindow | Yes |
| Endpoint | 描述 | 必填参数 | 可选参数 | 认证要求 |
|---|---|---|---|---|
| 获取BFUSD账户(USER_DATA) | 无 | recvWindow | 是 |
| 获取BFUSD额度详情(USER_DATA) | 无 | recvWindow | 是 |
| 赎回BFUSD(TRADE) | amount, type | recvWindow | 是 |
| 申购BFUSD(TRADE) | asset, amount | recvWindow | 是 |
| 获取BFUSD利率历史(USER_DATA) | 无 | startTime, endTime, current, size, recvWindow | 是 |
| 获取BFUSD赎回历史(USER_DATA) | 无 | startTime, endTime, current, size, recvWindow | 是 |
| 获取BFUSD奖励历史(USER_DATA) | 无 | startTime, endTime, current, size, recvWindow | 是 |
| 获取BFUSD申购历史(USER_DATA) | 无 | asset, startTime, endTime, current, size, recvWindow | 是 |
| 获取活期产品剩余可申购额度(USER_DATA) | productId | recvWindow | 是 |
| 获取活期产品持仓(USER_DATA) | 无 | asset, productId, current, size, recvWindow | 是 |
| 获取定期产品剩余可申购额度(USER_DATA) | projectId | recvWindow | 是 |
| 获取定期产品持仓 | 无 | asset, positionId, projectId, current, size, recvWindow | 是 |
| 获取Simple Earn活期产品列表(USER_DATA) | 无 | asset, current, size, recvWindow | 是 |
| 获取Simple Earn定期产品列表(USER_DATA) | 无 | asset, current, size, recvWindow | 是 |
| Simple Earn账户信息(USER_DATA) | 无 | recvWindow | 是 |
| 获取活期产品申购预览(USER_DATA) | productId, amount | recvWindow | 是 |
| 获取定期产品申购预览(USER_DATA) | projectId, amount | autoSubscribe, recvWindow | 是 |
| 赎回活期产品(TRADE) | productId | redeemAll, amount, destAccount, recvWindow | 是 |
| 赎回定期产品(TRADE) | positionId | recvWindow | 是 |
| 设置活期产品自动申购(USER_DATA) | productId, autoSubscribe | recvWindow | 是 |
| 设置定期产品自动申购(USER_DATA) | positionId, autoSubscribe | recvWindow | 是 |
| 设置定期产品赎回选项(USER_DATA) | positionId, redeemTo | recvWindow | 是 |
| 申购活期产品(TRADE) | productId, amount | autoSubscribe, sourceAccount, recvWindow | 是 |
| 申购定期产品(TRADE) | projectId, amount | autoSubscribe, sourceAccount, redeemTo, recvWindow | 是 |
| 获取质押记录(USER_DATA) | 无 | productId, startTime, endTime, current, size, recvWindow | 是 |
| 获取活期产品赎回记录(USER_DATA) | 无 | productId, redeemId, asset, startTime, endTime, current, size, recvWindow | 是 |
| 获取活期产品奖励历史(USER_DATA) | type | productId, asset, startTime, endTime, current, size, recvWindow | 是 |
| 获取活期产品申购记录(USER_DATA) | 无 | productId, purchaseId, asset, startTime, endTime, current, size, recvWindow | 是 |
| 获取定期产品赎回记录(USER_DATA) | 无 | positionId, redeemId, asset, startTime, endTime, current, size, recvWindow | 是 |
| 获取定期产品奖励历史(USER_DATA) | 无 | positionId, asset, startTime, endTime, current, size, recvWindow | 是 |
| 获取定期产品申购记录(USER_DATA) | 无 | purchaseId, asset, startTime, endTime, current, size, recvWindow | 是 |
| 获取利率历史(USER_DATA) | productId | aprPeriod, startTime, endTime, current, size, recvWindow | 是 |
| 获取RWUSD额度详情(USER_DATA) | 无 | recvWindow | 是 |
| 获取RWUSD账户(USER_DATA) | 无 | recvWindow | 是 |
| 赎回RWUSD(TRADE) | amount, type | recvWindow | 是 |
| 申购RWUSD(TRADE) | asset, amount | recvWindow | 是 |
| 获取RWUSD利率历史(USER_DATA) | 无 | startTime, endTime, current, size, recvWindow | 是 |
| 获取RWUSD赎回历史(USER_DATA) | 无 | startTime, endTime, current, size, recvWindow | 是 |
| 获取RWUSD奖励历史(USER_DATA) | 无 | startTime, endTime, current, size, recvWindow | 是 |
| 获取RWUSD申购历史(USER_DATA) | 无 | asset, startTime, endTime, current, size, recvWindow | 是 |
Parameters
参数说明
Common Parameters
通用参数
- recvWindow: The value cannot be greater than 60000 (ms) (e.g., 5000)
- amount: Amount (e.g., 1.0)
- type: FAST or STANDARD, defaults to STANDARD (e.g., s)
- asset: USDT or USDC (whichever is eligible)
- startTime: (e.g., 1623319461670)
- endTime: (e.g., 1641782889000)
- current: Currently querying page. Starts from 1. Default: 1 (e.g., 1)
- size: Number of results per page. Default: 10, Max: 100 (e.g., 10)
- asset: USDC or USDT
- productId: (e.g., 1)
- productId: (e.g., 1)
- projectId: (e.g., 1)
- positionId: (e.g., 1)
- projectId: (e.g., 1)
- autoSubscribe: true or false, default true. (e.g., true)
- redeemAll: true or false, default to false
- amount: if redeemAll is false, amount is mandatory (e.g., 1.0)
- destAccount: ,
SPOT, defaultFUND(e.g., SPOT)SPOT - positionId: (e.g., 1)
- autoSubscribe: true or false
- redeemTo: ,'FLEXIBLE'
SPOT - sourceAccount: ,
SPOT,FUND, defaultALL(e.g., SPOT)SPOT - redeemTo: ,
SPOT, defaultFLEXIBLE(e.g., SPOT)SPOT - redeemId: (e.g., 1)
- purchaseId: (e.g., 1)
- aprPeriod: "DAY","YEAR",default"DAY" (e.g., DAY)
- recvWindow: 取值不能超过60000(毫秒),例如5000
- amount: 金额,例如1.0
- type: 可选FAST或STANDARD,默认STANDARD
- asset: 可选USDT或USDC(以实际支持为准)
- startTime: 起始时间戳,例如1623319461670
- endTime: 结束时间戳,例如1641782889000
- current: 当前查询页码,从1开始,默认1,例如1
- size: 每页结果数量,默认10,最大100,例如10
- asset: 可选USDC或USDT
- productId: 产品ID,例如1
- projectId: 项目ID,例如1
- positionId: 持仓ID,例如1
- autoSubscribe: 布尔值,可选true或false,默认true,例如true
- redeemAll: 布尔值,可选true或false,默认false
- amount: 当redeemAll为false时,该参数为必填,例如1.0
- destAccount: 可选、
SPOT,默认FUND,例如SPOTSPOT - redeemTo: 可选、
SPOTFLEXIBLE - sourceAccount: 可选、
SPOT、FUND,默认ALL,例如SPOTSPOT - redeemTo: 可选、
SPOT,默认FLEXIBLE,例如SPOTSPOT - redeemId: 赎回ID,例如1
- purchaseId: 申购ID,例如1
- aprPeriod: 可选"DAY"、"YEAR",默认"DAY",例如DAY
Authentication
认证方式
For endpoints that require authentication, you will need to provide Binance API credentials.
Required credentials:
- apiKey: Your Binance API key (for header)
- secretKey: Your Binance API secret (for signing)
Base URLs:
- Mainnet: https://api.binance.com
对于需要认证的端点,需提供Binance API凭证:
必填凭证:
- apiKey: Binance API密钥(用于请求头)
- secretKey: Binance API密钥(用于签名)
基础URL:
Security
安全注意事项
Share Credentials
凭证共享方式
Users can provide Binance API credentials by sending a file where the content is in the following format:
bash
abc123...xyz
secret123...key用户可通过文件提供Binance API凭证,文件格式如下:
bash
abc123...xyz
secret123...keyNever Disclose API Key and Secret
切勿泄露API密钥和Secret Key
Never disclose the location of the API key and secret file.
Never send the API key and secret to any website other than Mainnet and Testnet.
切勿泄露API密钥和Secret Key文件的存储位置。
切勿将API密钥和Secret Key发送至主网和测试网以外的任何网站。
Never Display Full Secrets
切勿显示完整凭证
When showing credentials to users:
- API Key: Show first 5 + last 4 characters:
su1Qc...8akf - Secret Key: Always mask, show only last 5:
***...aws1
Example response when asked for credentials:
Account: main
API Key: su1Qc...8akf
Secret: ***...aws1
向用户展示凭证时:
- API Key: 仅显示前5位+后4位:
su1Qc...8akf - Secret Key: 始终隐藏,仅显示最后5位:
***...aws1
查询凭证时的示例回复:
账户: main
API Key: su1Qc...8akf
Secret: ***...aws
Listing Accounts
账户列表展示
When listing accounts, show names and environment only — never keys:
Binance Accounts:
- main (Mainnet)
- futures-keys (Mainnet)
展示账户列表时,仅显示账户名称和环境,切勿显示密钥:
Binance账户:
- main(主网)
- futures-keys(主网)
Transactions in Mainnet
主网交易
When performing transactions in mainnet, always confirm with the user before proceeding by asking them to write "CONFIRM" to proceed.
在主网执行交易前,需确认用户输入"CONFIRM"后方可继续。
Binance Accounts
Binance账户示例
main
main
- API Key: your_mainnet_api_key
- Secret: your_mainnet_secret
- API Key: your_mainnet_api_key
- Secret: your_mainnet_secret
TOOLS.md Structure
TOOLS.md文件结构
bash
undefinedbash
undefinedBinance Accounts
Binance Accounts
main
main
- API Key: abc123...xyz
- Secret: secret123...key
- Description: Primary trading account
- API Key: abc123...xyz
- Secret: secret123...key
- Description: Primary trading account
futures-keys
futures-keys
- API Key: futures789...def
- Secret: futuressecret...uvw
- Description: Futures trading account
undefined- API Key: futures789...def
- Secret: futuressecret...uvw
- Description: Futures trading account
undefinedAgent Behavior
代理行为规范
- Credentials requested: Mask secrets (show last 5 chars only)
- Listing accounts: Show names and environment, never keys
- Account selection: Ask if ambiguous, default to main
- When doing a transaction in mainnet, confirm with user before by asking to write "CONFIRM" to proceed
- New credentials: Prompt for name, environment, signing mode
- 请求凭证时:隐藏密钥(仅显示最后5位)
- 展示账户列表:仅显示名称和环境,不显示密钥
- 账户选择:若存在歧义需询问用户,默认选择main账户
- 主网交易:执行前需用户输入"CONFIRM"确认
- 添加新凭证:提示用户输入账户名称、环境、签名模式
Adding New Accounts
添加新账户
When user provides new credentials:
- Ask for account name
- Store in with masked display confirmation
TOOLS.md
当用户提供新凭证时:
- 询问账户名称
- 存储至并向用户展示隐藏后的凭证以确认
TOOLS.md
Signing Requests
请求签名
For trading endpoints that require a signature:
- Build query string with all parameters, including the timestamp (Unix ms).
- Percent-encode the parameters using UTF-8 according to RFC 3986.
- Sign query string with secretKey using HMAC SHA256, RSA, or Ed25519 (depending on the account configuration).
- Append signature to query string.
- Include header.
X-MBX-APIKEY
Otherwise, do not perform steps 3–5.
对于需要签名的交易端点:
- 构建包含所有参数的查询字符串,包括时间戳(毫秒级Unix时间)。
- 根据RFC 3986标准使用UTF-8对参数进行百分号编码。
- 使用secretKey通过HMAC SHA256、RSA或Ed25519(取决于账户配置)对查询字符串签名。
- 将签名追加至查询字符串。
- 在请求头中包含。
X-MBX-APIKEY
无需签名的端点跳过步骤3-5。
User Agent Header
User Agent请求头
Include header with the following string:
User-Agentbinance-simple-earn/1.0.0 (Skill)See for implementation details.
references/authentication.md请求头中需包含,值为:
User-Agentbinance-simple-earn/1.0.0 (Skill)实现细节请参考。
references/authentication.md