assets
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseBinance Assets Skill
Binance 资产Skill
Assets request on Binance using authenticated API endpoints. Requires API key and secret key for certain endpoints. Return the result in JSON format.
通过经过身份验证的API端点发起币安资产相关请求,部分端点需要提供API key和secret key,返回结果为JSON格式。
Quick Reference
快速参考
| Endpoint | Description | Required | Optional | Authentication |
|---|---|---|---|---|
| Account API Trading Status (USER_DATA) | None | recvWindow | Yes |
| Account info (USER_DATA) | None | recvWindow | Yes |
| Account Status (USER_DATA) | None | recvWindow | Yes |
| Get API Key Permission (USER_DATA) | None | recvWindow | Yes |
| Daily Account Snapshot (USER_DATA) | type | startTime, endTime, limit, recvWindow | Yes |
| Disable Fast Withdraw Switch (USER_DATA) | None | recvWindow | Yes |
| Enable Fast Withdraw Switch (USER_DATA) | None | recvWindow | Yes |
| Toggle BNB Burn On Spot Trade And Margin Interest (USER_DATA) | None | spotBNBBurn, interestBNBBurn, recvWindow | Yes |
| Asset Detail (USER_DATA) | None | asset, recvWindow | Yes |
| Get Assets That Can Be Converted Into BNB (USER_DATA) | None | accountType, recvWindow | Yes |
| Asset Dividend Record (USER_DATA) | None | asset, startTime, endTime, limit, recvWindow | Yes |
| Get Cloud-Mining payment and refund history (USER_DATA) | startTime, endTime | tranId, clientTranId, asset, current, size | Yes |
| Dust Convert (USER_DATA) | asset | clientId, targetAsset, thirdPartyClientId, dustQuotaAssetToTargetAssetPrice | Yes |
| Dust Convertible Assets (USER_DATA) | targetAsset | dustQuotaAssetToTargetAssetPrice | Yes |
| DustLog(USER_DATA) | None | accountType, startTime, endTime, recvWindow | Yes |
| Dust Transfer (USER_DATA) | asset | accountType, recvWindow | Yes |
| Funding Wallet (USER_DATA) | None | asset, needBtcValuation, recvWindow | Yes |
| Get Open Symbol List (MARKET_DATA) | None | None | No |
| Query User Delegation History(For Master Account)(USER_DATA) | email, startTime, endTime | type, asset, current, size, recvWindow | Yes |
| Query User Universal Transfer History(USER_DATA) | type | startTime, endTime, current, size, fromSymbol, toSymbol, recvWindow | Yes |
| User Universal Transfer (USER_DATA) | type, asset, amount | fromSymbol, toSymbol, recvWindow | Yes |
| Query User Wallet Balance (USER_DATA) | None | quoteAsset, recvWindow | Yes |
| Get symbols delist schedule for spot (MARKET_DATA) | None | recvWindow | No |
| Trade Fee (USER_DATA) | None | symbol, recvWindow | Yes |
| User Asset (USER_DATA) | None | asset, needBtcValuation, recvWindow | Yes |
| All Coins' Information (USER_DATA) | None | recvWindow | Yes |
| Deposit Address(supporting network) (USER_DATA) | coin | network, amount, recvWindow | Yes |
| Deposit History (supporting network) (USER_DATA) | None | includeSource, coin, status, startTime, endTime, offset, limit, recvWindow, txId | Yes |
| Fetch deposit address list with network(USER_DATA) | coin | network | Yes |
| Fetch withdraw address list (USER_DATA) | None | None | Yes |
| Fetch withdraw quota (USER_DATA) | None | None | Yes |
| One click arrival deposit apply (for expired address deposit) (USER_DATA) | None | depositId, txId, subAccountId, subUserId | Yes |
| Withdraw History (supporting network) (USER_DATA) | None | coin, withdrawOrderId, status, offset, limit, idList, startTime, endTime, recvWindow | Yes |
| Withdraw(USER_DATA) | coin, address, amount | withdrawOrderId, network, addressTag, transactionFeeFlag, name, walletType, recvWindow | Yes |
| System Status (System) | None | None | No |
| Fetch address verification list (USER_DATA) | None | recvWindow | Yes |
| Submit Deposit Questionnaire (For local entities that require travel rule) (supporting network) (USER_DATA) | subAccountId, depositId, questionnaire, beneficiaryPii, signature | network, coin, amount, address, addressTag | Yes |
| Broker Withdraw (for brokers of local entities that require travel rule) (USER_DATA) | address, coin, amount, withdrawOrderId, questionnaire, originatorPii, signature | addressTag, network, addressName, transactionFeeFlag, walletType | Yes |
| Deposit History V2 (for local entities that required travel rule) (supporting network) (USER_DATA) | None | depositId, txId, network, coin, retrieveQuestionnaire, startTime, endTime, offset, limit | Yes |
| Deposit History (for local entities that required travel rule) (supporting network) (USER_DATA) | None | trId, txId, tranId, network, coin, travelRuleStatus, pendingQuestionnaire, startTime, endTime, offset, limit | Yes |
| Submit Deposit Questionnaire V2 (For local entities that require travel rule) (supporting network) (USER_DATA) | depositId, questionnaire | None | Yes |
| Submit Deposit Questionnaire (For local entities that require travel rule) (supporting network) (USER_DATA) | tranId, questionnaire | None | Yes |
| VASP list (for local entities that require travel rule) (supporting network) (USER_DATA) | None | recvWindow | Yes |
| Check Questionnaire Requirements (for local entities that require travel rule) (supporting network) (USER_DATA) | None | recvWindow | Yes |
| Withdraw History V2 (for local entities that require travel rule) (supporting network) (USER_DATA) | None | trId, txId, withdrawOrderId, network, coin, travelRuleStatus, offset, limit, startTime, endTime, recvWindow | Yes |
| Withdraw History (for local entities that require travel rule) (supporting network) (USER_DATA) | None | trId, txId, withdrawOrderId, network, coin, travelRuleStatus, offset, limit, startTime, endTime, recvWindow | Yes |
| Withdraw (for local entities that require travel rule) (USER_DATA) | coin, address, amount, questionnaire | withdrawOrderId, network, addressTag, transactionFeeFlag, name, walletType, recvWindow | Yes |
| Endpoint | 描述 | 必填参数 | 选填参数 | 身份验证 |
|---|---|---|---|---|
| 账户API交易状态(USER_DATA) | 无 | recvWindow | 是 |
| 账户信息(USER_DATA) | 无 | recvWindow | 是 |
| 账户状态(USER_DATA) | 无 | recvWindow | 是 |
| 获取API Key权限(USER_DATA) | 无 | recvWindow | 是 |
| 每日账户快照(USER_DATA) | type | startTime, endTime, limit, recvWindow | 是 |
| 关闭快速提现开关(USER_DATA) | 无 | recvWindow | 是 |
| 开启快速提现开关(USER_DATA) | 无 | recvWindow | 是 |
| 切换现货交易和杠杆利息的BNB抵扣设置(USER_DATA) | 无 | spotBNBBurn, interestBNBBurn, recvWindow | 是 |
| 资产详情(USER_DATA) | 无 | asset, recvWindow | 是 |
| 获取可转换为BNB的资产列表(USER_DATA) | 无 | accountType, recvWindow | 是 |
| 资产分红记录(USER_DATA) | 无 | asset, startTime, endTime, limit, recvWindow | 是 |
| 获取云挖矿支付和退款历史(USER_DATA) | startTime, endTime | tranId, clientTranId, asset, current, size | 是 |
| 小额资产转换(USER_DATA) | asset | clientId, targetAsset, thirdPartyClientId, dustQuotaAssetToTargetAssetPrice | 是 |
| 可转换小额资产列表(USER_DATA) | targetAsset | dustQuotaAssetToTargetAssetPrice | 是 |
| 小额资产转换日志(USER_DATA) | 无 | accountType, startTime, endTime, recvWindow | 是 |
| 小额资产划转(USER_DATA) | asset | accountType, recvWindow | 是 |
| 资金钱包(USER_DATA) | 无 | asset, needBtcValuation, recvWindow | 是 |
| 获取开放交易对列表(MARKET_DATA) | 无 | 无 | 否 |
| 查询用户委托历史(仅主账户可用)(USER_DATA) | email, startTime, endTime | type, asset, current, size, recvWindow | 是 |
| 查询用户通用划转历史(USER_DATA) | type | startTime, endTime, current, size, fromSymbol, toSymbol, recvWindow | 是 |
| 用户通用划转(USER_DATA) | type, asset, amount | fromSymbol, toSymbol, recvWindow | 是 |
| 查询用户钱包余额(USER_DATA) | 无 | quoteAsset, recvWindow | 是 |
| 获取现货交易对下线计划(MARKET_DATA) | 无 | recvWindow | 否 |
| 交易手续费(USER_DATA) | 无 | symbol, recvWindow | 是 |
| 用户资产(USER_DATA) | 无 | asset, needBtcValuation, recvWindow | 是 |
| 所有币种信息(USER_DATA) | 无 | recvWindow | 是 |
| 充值地址(支持多网络)(USER_DATA) | coin | network, amount, recvWindow | 是 |
| 充值历史(支持多网络)(USER_DATA) | 无 | includeSource, coin, status, startTime, endTime, offset, limit, recvWindow, txId | 是 |
| 获取对应网络的充值地址列表(USER_DATA) | coin | network | 是 |
| 获取提现地址列表(USER_DATA) | 无 | 无 | 是 |
| 获取提现额度(USER_DATA) | 无 | 无 | 是 |
| 一键充值到账申请(适用于过期地址充值场景)(USER_DATA) | 无 | depositId, txId, subAccountId, subUserId | 是 |
| 提现历史(支持多网络)(USER_DATA) | 无 | coin, withdrawOrderId, status, offset, limit, idList, startTime, endTime, recvWindow | 是 |
| 提现(USER_DATA) | coin, address, amount | withdrawOrderId, network, addressTag, transactionFeeFlag, name, walletType, recvWindow | 是 |
| 系统状态(系统接口) | 无 | 无 | 否 |
| 获取地址验证列表(USER_DATA) | 无 | recvWindow | 是 |
| 提交充值问卷(适用于需要旅行规则的本地主体,支持多网络)(USER_DATA) | subAccountId, depositId, questionnaire, beneficiaryPii, signature | network, coin, amount, address, addressTag | 是 |
| 经纪商提现(适用于需要旅行规则的本地主体经纪商)(USER_DATA) | address, coin, amount, withdrawOrderId, questionnaire, originatorPii, signature | addressTag, network, addressName, transactionFeeFlag, walletType | 是 |
| 充值历史V2(适用于需要旅行规则的本地主体,支持多网络)(USER_DATA) | 无 | depositId, txId, network, coin, retrieveQuestionnaire, startTime, endTime, offset, limit | 是 |
| 充值历史(适用于需要旅行规则的本地主体,支持多网络)(USER_DATA) | 无 | trId, txId, tranId, network, coin, travelRuleStatus, pendingQuestionnaire, startTime, endTime, offset, limit | 是 |
| 提交充值问卷V2(适用于需要旅行规则的本地主体,支持多网络)(USER_DATA) | depositId, questionnaire | 无 | 是 |
| 提交充值问卷(适用于需要旅行规则的本地主体,支持多网络)(USER_DATA) | tranId, questionnaire | 无 | 是 |
| VASP列表(适用于需要旅行规则的本地主体,支持多网络)(USER_DATA) | 无 | recvWindow | 是 |
| 检查问卷要求(适用于需要旅行规则的本地主体,支持多网络)(USER_DATA) | 无 | recvWindow | 是 |
| 提现历史V2(适用于需要旅行规则的本地主体,支持多网络)(USER_DATA) | 无 | trId, txId, withdrawOrderId, network, coin, travelRuleStatus, offset, limit, startTime, endTime, recvWindow | 是 |
| 提现历史(适用于需要旅行规则的本地主体,支持多网络)(USER_DATA) | 无 | trId, txId, withdrawOrderId, network, coin, travelRuleStatus, offset, limit, startTime, endTime, recvWindow | 是 |
| 提现(适用于需要旅行规则的本地主体)(USER_DATA) | coin, address, amount, questionnaire | withdrawOrderId, network, addressTag, transactionFeeFlag, name, walletType, recvWindow | 是 |
Parameters
参数说明
Common Parameters
通用参数
- recvWindow: (e.g., 5000)
- type:
- startTime: (e.g., 1623319461670)
- endTime: (e.g., 1641782889000)
- limit: min 7, max 30, default 7 (e.g., 7)
- spotBNBBurn: "true" or "false"; Determines whether to use BNB to pay for trading fees on SPOT
- interestBNBBurn: "true" or "false"; Determines whether to use BNB to pay for margin loan's interest
- asset: If asset is blank, then query all positive assets user have.
- accountType: or
SPOT,defaultMARGIN(e.g., SPOT)SPOT - tranId: The transaction id (e.g., 1)
- clientTranId: The unique flag (e.g., 1)
- startTime: (e.g., 1623319461670)
- endTime: (e.g., 1641782889000)
- current: current page, default 1, the min value is 1 (e.g., 1)
- size: page size, default 10, the max value is 100 (e.g., 10)
- asset:
- clientId: A unique id for the request (e.g., 1)
- targetAsset:
- thirdPartyClientId: (e.g., 1)
- dustQuotaAssetToTargetAssetPrice: (e.g., 1.0)
- targetAsset:
- needBtcValuation: true or false
- email:
- type: Delegate/Undelegate
- fromSymbol:
- toSymbol:
- quoteAsset: ,
USDT,ETH,USDC, etc. defaultBNB(e.g., BTC)BTC - symbol:
- needBtcValuation: Whether need btc valuation or not.
- amount: (e.g., 1.0)
- coin:
- network:
- amount: (e.g., 1.0)
- includeSource: Default: , return
falsefield when set tosourceAddresstrue - coin:
- status: 0(0:Email Sent, 2:Awaiting Approval 3:Rejected 4:Processing 6:Completed)
- offset: Default: 0
- txId: (e.g., 1)
- depositId: Deposit record Id, priority use (e.g., 1)
- subAccountId: Sub-accountId of Cloud user (e.g., 1)
- subUserId: Sub-userId of parent user (e.g., 1)
- withdrawOrderId: client side id for withdrawal, if provided in POST , can be used here for query. (e.g., 1)
/sapi/v1/capital/withdraw/apply - idList: id list returned in the response of POST , separated by
/sapi/v1/capital/withdraw/apply, - address:
- addressTag: Secondary address identifier for coins like XRP,XMR etc.
- transactionFeeFlag: When making internal transfer, for returning the fee to the destination account;
truefor returning the fee back to the departure account. Defaultfalse.false - name: Description of the address. Address book cap is 200, space in name should be encoded into
%20 - walletType: The wallet type for withdraw,0-spot wallet ,1-funding wallet. Default walletType is the current "selected wallet" under wallet->Fiat and Spot/Funding->Deposit
- subAccountId: External user ID. (e.g., 1)
- depositId: Wallet deposit ID (e.g., 1)
- questionnaire: JSON format questionnaire answers.
- beneficiaryPii: JSON format beneficiary Pii.
- address:
- signature: Must be the last parameter.
- addressName: Description of the address. Address book cap is 200, space in name should be encoded into
%20 - withdrawOrderId: withdrawID defined by the client (i.e. client's internal withdrawID) (e.g., 1)
- originatorPii: JSON format originator Pii, see StandardPii section below
- depositId: Comma(,) separated list of wallet tran Ids. (e.g., 1)
- retrieveQuestionnaire: true: return within response.
questionnaire - trId: Comma(,) separated list of travel rule record Ids. (e.g., 1)
- tranId: Comma(,) separated list of wallet tran Ids. (e.g., 1)
- travelRuleStatus: 0:Completed,1:Pending,2:Failed
- pendingQuestionnaire: true: Only return records that pending deposit questionnaire. false/not provided: return all records.
- tranId: Wallet tran ID (e.g., 1)
- recvWindow: (例如:5000)
- type:
- startTime: (例如:1623319461670)
- endTime: (例如:1641782889000)
- limit: 最小7,最大30,默认7(例如:7)
- spotBNBBurn: "true" 或 "false";指定是否使用BNB抵扣现货交易手续费
- interestBNBBurn: "true" 或 "false";指定是否使用BNB抵扣杠杆借贷利息
- asset: 若asset为空,则查询用户所有持有的正余额资产
- accountType: 或
SPOT,默认MARGIN(例如:SPOT)SPOT - tranId: 交易ID(例如:1)
- clientTranId: 唯一标识(例如:1)
- startTime: (例如:1623319461670)
- endTime: (例如:1641782889000)
- current: 当前页码,默认1,最小值为1(例如:1)
- size: 每页条数,默认10,最大值为100(例如:10)
- asset:
- clientId: 请求唯一ID(例如:1)
- targetAsset:
- thirdPartyClientId: (例如:1)
- dustQuotaAssetToTargetAssetPrice: (例如:1.0)
- targetAsset:
- needBtcValuation: true 或 false
- email:
- type: 委托/取消委托
- fromSymbol:
- toSymbol:
- quoteAsset: 、
USDT、ETH、USDC等,默认BNB(例如:BTC)BTC - symbol:
- needBtcValuation: 是否需要换算为BTC估值
- amount: (例如:1.0)
- coin:
- network:
- amount: (例如:1.0)
- includeSource: 默认:,设置为
false时返回true字段sourceAddress - coin:
- status: 0(0:邮件已发送, 2:待审核 3:已拒绝 4:处理中 6:已完成)
- offset: 默认:0
- txId: (例如:1)
- depositId: 充值记录ID,优先使用该参数(例如:1)
- subAccountId: 云用户子账户ID(例如:1)
- subUserId: 主账户的子用户ID(例如:1)
- withdrawOrderId: 客户端侧提现ID,若在POST 接口中传入了该参数,可在此处用于查询(例如:1)
/sapi/v1/capital/withdraw/apply - idList: POST 接口返回的ID列表,用英文逗号
/sapi/v1/capital/withdraw/apply分隔, - address:
- addressTag: 部分币种的二级地址标识,如XRP、XMR等
- transactionFeeFlag: 进行内部转账时,表示将手续费返还到目标账户;
true表示将手续费返还到转出账户。默认falsefalse - name: 地址描述,地址簿上限为200条,名称中的空格需要编码为
%20 - walletType: 提现钱包类型,0-现货钱包,1-资金钱包。默认walletType为钱包->法币和现货/资金->充值页面下当前「选中的钱包」
- subAccountId: 外部用户ID(例如:1)
- depositId: 钱包充值ID(例如:1)
- questionnaire: JSON格式的问卷答案
- beneficiaryPii: JSON格式的收款人个人身份信息
- address:
- signature: 必须是最后一个参数
- addressName: 地址描述,地址簿上限为200条,名称中的空格需要编码为
%20 - withdrawOrderId: 客户端定义的提现ID(即客户端内部提现ID)(例如:1)
- originatorPii: JSON格式的付款人个人身份信息,参考下文StandardPii部分
- depositId: 钱包交易ID列表,用英文逗号分隔(例如:1)
, - retrieveQuestionnaire: true:响应中返回字段
questionnaire - trId: 旅行规则记录ID列表,用英文逗号分隔(例如:1)
, - tranId: 钱包交易ID列表,用英文逗号分隔(例如:1)
, - travelRuleStatus: 0:已完成,1:处理中,2:失败
- pendingQuestionnaire: true:仅返回待填写充值问卷的记录。false/未传入:返回所有记录
- tranId: 钱包交易ID(例如:1)
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 key(放在请求头中)
- secretKey: 你的Binance API secret(用于签名)
基础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 Key和Secret
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 key和secret文件的存储位置。
除了主网和测试网之外,切勿将API key和secret发送给任何其他网站。
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: ***...aws1
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: 你的主网API key
- Secret: 你的主网secret
TOOLS.md Structure
TOOLS.md 结构
bash
undefinedbash
undefinedBinance Accounts
Binance 账户
main
main
- API Key: abc123...xyz
- Secret: secret123...key
- Description: Primary trading account
- API Key: abc123...xyz
- Secret: secret123...key
- 描述: 主交易账户
futures-keys
futures-keys
- API Key: futures789...def
- Secret: futuressecret...uvw
- Description: Futures trading account
undefined- API Key: futures789...def
- Secret: futuressecret...uvw
- 描述: 合约交易账户
undefinedAgent Behavior
Agent 行为规范
- 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-wallet/1.0.0 (Skill)See for implementation details.
references/authentication.md请求头中需包含字段,值为:
User-Agentbinance-wallet/1.0.0 (Skill)参考了解实现细节。
references/authentication.md