algo by binance/binance-skills-hub
npx skills add https://github.com/binance/binance-skills-hub --skill algo使用经过身份验证的 API 端点进行 Binance 算法请求。某些端点需要 API 密钥和密钥。以 JSON 格式返回结果。
| 端点 | 描述 | 必需参数 | 可选参数 | 身份验证 |
|---|---|---|---|---|
/sapi/v1/algo/futures/order (DELETE) | 取消算法订单(TRADE) | algoId | recvWindow | 是 |
/sapi/v1/algo/futures/openOrders (GET) | 查询当前算法未平仓订单(USER_DATA) | 无 | recvWindow | 是 |
/sapi/v1/algo/futures/historicalOrders (GET) |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 查询历史算法订单(USER_DATA) |
| 无 |
| symbol, side, startTime, endTime, page, pageSize, recvWindow |
| 是 |
/sapi/v1/algo/futures/subOrders (GET) | 查询子订单(USER_DATA) | algoId | page, pageSize, recvWindow | 是 |
/sapi/v1/algo/futures/newOrderTwap (POST) | 时间加权平均价格(Twap)新订单(TRADE) | symbol, side, quantity, duration | positionSide, clientAlgoId, reduceOnly, limitPrice, recvWindow | 是 |
/sapi/v1/algo/futures/newOrderVp (POST) | 成交量参与(VP)新订单(TRADE) | symbol, side, quantity, urgency | positionSide, clientAlgoId, reduceOnly, limitPrice, recvWindow | 是 |
/sapi/v1/algo/spot/order (DELETE) | 取消算法订单(TRADE) | algoId | recvWindow | 是 |
/sapi/v1/algo/spot/openOrders (GET) | 查询当前算法未平仓订单(USER_DATA) | 无 | recvWindow | 是 |
/sapi/v1/algo/spot/historicalOrders (GET) | 查询历史算法订单(USER_DATA) | 无 | symbol, side, startTime, endTime, page, pageSize, recvWindow | 是 |
/sapi/v1/algo/spot/subOrders (GET) | 查询子订单(USER_DATA) | algoId | page, pageSize, recvWindow | 是 |
/sapi/v1/algo/spot/newOrderTwap (POST) | 时间加权平均价格(Twap)新订单(TRADE) | symbol, side, quantity, duration | clientAlgoId, limitPrice | 是 |
BOTH;对冲模式下为 LONG 或 SHORT。在对冲模式下必须发送此参数。(例如,BOTH)对于需要身份验证的端点,您需要提供 Binance API 凭证。所需凭证:
基础 URL:
用户可以通过发送文件来提供 Binance API 凭证,文件内容格式如下:
abc123...xyz
secret123...key
切勿泄露 API 密钥和密钥文件的位置。
切勿将 API 密钥和密钥发送给主网和测试网以外的任何网站。
向用户显示凭证时:
su1Qc...8akf***...aws1请求凭证时的示例响应:账户:main API 密钥:su1Qc...8akf 密钥:***...aws1
列出账户时,仅显示名称和环境 — 切勿显示密钥:Binance 账户:
在主网执行交易时,始终在继续之前通过要求用户输入 "CONFIRM" 来与用户确认。
## Binance 账户
### main
- API 密钥:abc123...xyz
- 密钥:secret123...key
- 描述:主要交易账户
### futures-keys
- API 密钥:futures789...def
- 密钥:futuressecret...uvw
- 描述:期货交易账户
当用户提供新凭证时:
TOOLS.md 中,并显示掩码后的确认信息对于需要签名的交易端点:
X-MBX-APIKEY 请求头。否则,不执行步骤 3–5。
包含 User-Agent 请求头,其字符串为:binance-algo/1.0.0 (Skill)
有关实现细节,请参阅 references/authentication.md。
每周安装数
292
代码仓库
GitHub 星标数
516
首次出现
5 天前
安全审计
安装于
opencode280
codex280
gemini-cli277
github-copilot277
amp277
kimi-cli277
Algo 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/algo/futures/order (DELETE) | Cancel Algo Order(TRADE) | algoId | recvWindow | Yes |
/sapi/v1/algo/futures/openOrders (GET) | Query Current Algo Open Orders(USER_DATA) | None | recvWindow | Yes |
/sapi/v1/algo/futures/historicalOrders (GET) | Query Historical Algo Orders(USER_DATA) | None | symbol, side, startTime, endTime, page, pageSize, recvWindow | Yes |
/sapi/v1/algo/futures/subOrders (GET) | Query Sub Orders(USER_DATA) | algoId | page, pageSize, recvWindow | Yes |
/sapi/v1/algo/futures/newOrderTwap (POST) | Time-Weighted Average Price(Twap) New Order(TRADE) | symbol, side, quantity, duration | positionSide, clientAlgoId, reduceOnly, limitPrice, recvWindow | Yes |
/sapi/v1/algo/futures/newOrderVp (POST) | Volume Participation(VP) New Order (TRADE) | symbol, side, quantity, urgency | positionSide, clientAlgoId, reduceOnly, limitPrice, recvWindow | Yes |
/sapi/v1/algo/spot/order (DELETE) | Cancel Algo Order(TRADE) | algoId | recvWindow | Yes |
/sapi/v1/algo/spot/openOrders (GET) | Query Current Algo Open Orders(USER_DATA) | None | recvWindow | Yes |
/sapi/v1/algo/spot/historicalOrders (GET) | Query Historical Algo Orders(USER_DATA) | None | symbol, side, startTime, endTime, page, pageSize, recvWindow | Yes |
/sapi/v1/algo/spot/subOrders (GET) | Query Sub Orders(USER_DATA) | algoId | page, pageSize, recvWindow | Yes |
/sapi/v1/algo/spot/newOrderTwap (POST) | Time-Weighted Average Price(Twap) New Order(TRADE) | symbol, side, quantity, duration | clientAlgoId, limitPrice | Yes |
BOTH for One-way Mode ; LONG or SHORT for Hedge Mode. It must be sent in Hedge Mode. (e.g., BOTH)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-algo/1.0.0 (Skill)
See references/authentication.md for implementation details.
Weekly Installs
292
Repository
GitHub Stars
516
First Seen
5 days ago
Security Audits
Gen Agent Trust HubPassSocketWarnSnykFail
Installed on
opencode280
codex280
gemini-cli277
github-copilot277
amp277
kimi-cli277
飞书OpenAPI Explorer:探索和调用未封装的飞书原生API接口
15,500 周安装