convert by binance/binance-skills-hub
npx skills add https://github.com/binance/binance-skills-hub --skill convert使用经过身份验证的 API 端点进行 Binance 兑换请求。某些端点需要 API 密钥和密钥。以 JSON 格式返回结果。
| 端点 | 描述 | 必需参数 | 可选参数 | 身份验证 |
|---|---|---|---|---|
/sapi/v1/convert/exchangeInfo (GET) | 列出所有兑换交易对 | 无 | fromAsset, toAsset | 否 |
/sapi/v1/convert/assetInfo (GET) | 查询每种资产的订单数量精度(USER_DATA) | 无 | recvWindow | 是 |
/sapi/v1/convert/acceptQuote (POST) | 接受报价 (TRADE) |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| quoteId |
| recvWindow |
| 是 |
/sapi/v1/convert/limit/cancelOrder (POST) | 取消限价订单 (USER_DATA) | orderId | recvWindow | 是 |
/sapi/v1/convert/tradeFlow (GET) | 获取兑换交易历史(USER_DATA) | startTime, endTime | limit, recvWindow | 是 |
/sapi/v1/convert/orderStatus (GET) | 订单状态(USER_DATA) | 无 | orderId, quoteId | 是 |
/sapi/v1/convert/limit/placeOrder (POST) | 下限量价订单 (USER_DATA) | baseAsset, quoteAsset, limitPrice, side, expiredType | baseAmount, quoteAmount, walletType, recvWindow | 是 |
/sapi/v1/convert/limit/queryOpenOrders (GET) | 查询限价挂单 (USER_DATA) | 无 | recvWindow | 是 |
/sapi/v1/convert/getQuote (POST) | 发送报价请求(USER_DATA) | fromAsset, toAsset | fromAmount, toAmount, walletType, validTime, recvWindow | 是 |
placeOrder API 的 orderId (例如,1)GET /sapi/v1/convert/exchangeInfo API 的响应 fromIsBase 来检查哪个是 baseAsset)baseAmount 或 quoteAmount 必须提供一个) (例如,1.0)baseAmount 或 quoteAmount 必须提供一个) (例如,1.0)BUY 或 SELL (例如,BUY)SPOT、FUNDING 和 EARN。支持钱包组合,例如 SPOT_FUNDING、FUNDING_EARN、SPOT_FUNDING_EARN 或 SPOT_EARN。默认为 SPOT。对于需要身份验证的端点,您需要提供 Binance API 凭据。所需凭据:
基础 URL:
用户可以通过发送内容格式如下的文件来提供 Binance API 凭据:
abc123...xyz
secret123...key
切勿泄露 API 密钥和密钥文件的位置。
切勿将 API 密钥和密钥发送给主网和测试网以外的任何网站。
向用户显示凭据时:
su1Qc...8akf***...aws1当被要求提供凭据时的示例响应:账户:main API 密钥:su1Qc...8akf 密钥:***...aws1
列出账户时,仅显示名称和环境——切勿显示密钥:Binance 账户:
在主网执行交易时,始终在继续之前通过要求用户输入 "CONFIRM" 来与用户确认。
## Binance Accounts
### main
- API Key: abc123...xyz
- Secret: secret123...key
- Description: Primary trading account
### futures-keys
- API Key: futures789...def
- Secret: futuressecret...uvw
- Description: Futures trading account
当用户提供新凭据时:
TOOLS.md 中,并显示掩码后的确认信息对于需要签名的交易端点:
X-MBX-APIKEY 请求头。否则,不执行步骤 3–5。
包含 User-Agent 请求头,其字符串如下:binance-convert/1.0.0 (Skill)
有关实现细节,请参阅 references/authentication.md。
每周安装次数
427
代码仓库
GitHub 星标数
516
首次出现
7 天前
安全审计
安装于
opencode413
codex413
kimi-cli411
amp411
github-copilot411
cursor411
Convert request on Binance using authenticated API endpoints. Requires API key and secret key for certain endpoints. Return the result in JSON format.
| Endpoint | Description | Required | Optional | Authentication |
|---|---|---|---|---|
/sapi/v1/convert/exchangeInfo (GET) | List All Convert Pairs | None | fromAsset, toAsset | No |
/sapi/v1/convert/assetInfo (GET) | Query order quantity precision per asset(USER_DATA) | None | recvWindow | Yes |
/sapi/v1/convert/acceptQuote (POST) | Accept Quote (TRADE) | quoteId | recvWindow | Yes |
/sapi/v1/convert/limit/cancelOrder (POST) | Cancel limit order (USER_DATA) | orderId | recvWindow | Yes |
/sapi/v1/convert/tradeFlow (GET) | Get Convert Trade History(USER_DATA) | startTime, endTime | limit, recvWindow | Yes |
/sapi/v1/convert/orderStatus (GET) | Order status(USER_DATA) | None | orderId, quoteId | Yes |
/sapi/v1/convert/limit/placeOrder (POST) | Place limit order (USER_DATA) | baseAsset, quoteAsset, limitPrice, side, expiredType | baseAmount, quoteAmount, walletType, recvWindow | Yes |
/sapi/v1/convert/limit/queryOpenOrders (GET) | Query limit open orders (USER_DATA) | None | recvWindow | Yes |
/sapi/v1/convert/getQuote (POST) | Send Quote Request(USER_DATA) | fromAsset, toAsset | fromAmount, toAmount, walletType, validTime, recvWindow | Yes |
placeOrder api (e.g., 1)fromIsBase from GET /sapi/v1/convert/exchangeInfo api to check which one is baseAsset )baseAmount or is required) (e.g., 1.0)For endpoints that require authentication, you will need to provide Binance API credentials. Required credentials:
Base URLs:
Users can provide Binance API credentials by sending a file where the content is in the following format:
abc123...xyz
secret123...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.
When showing credentials to users:
su1Qc...8akf***...aws1Example response when asked for credentials: Account: main API Key: su1Qc...8akf Secret: ***...aws1
When listing accounts, show names and environment only — never keys: Binance Accounts:
When performing transactions in mainnet, always confirm with the user before proceeding by asking them to write "CONFIRM" to proceed.
## Binance Accounts
### main
- API Key: abc123...xyz
- Secret: secret123...key
- Description: Primary trading account
### futures-keys
- API Key: futures789...def
- Secret: futuressecret...uvw
- Description: Futures trading account
When user provides new credentials:
TOOLS.md with masked display confirmationFor trading endpoints that require a signature:
X-MBX-APIKEY header.Otherwise, do not perform steps 3–5.
Include User-Agent header with the following string: binance-convert/1.0.0 (Skill)
See references/authentication.md for implementation details.
Weekly Installs
427
Repository
GitHub Stars
516
First Seen
7 days ago
Security Audits
Gen Agent Trust HubPassSocketWarnSnykFail
Installed on
opencode413
codex413
kimi-cli411
amp411
github-copilot411
cursor411
飞书OpenAPI Explorer:探索和调用未封装的飞书原生API接口
15,500 周安装
quoteAmountbaseAmount or quoteAmount is required) (e.g., 1.0)BUY or SELL (e.g., BUY)SPOT, FUNDING and EARN. Combination of wallet is supported i.e. SPOT_FUNDING, FUNDING_EARN, SPOT_FUNDING_EARN or SPOT_EARN Default is SPOT.