derivatives-trading-options by binance/binance-skills-hub
npx skills add https://github.com/binance/binance-skills-hub --skill derivatives-trading-options使用经过身份验证的 API 端点进行 Binance 衍生品交易-期权请求。某些端点需要 API 密钥和密钥。以 JSON 格式返回结果。
| 端点 | 描述 | 必填参数 | 可选参数 | 身份验证 |
|---|---|---|---|---|
/eapi/v1/bill (GET) | 账户资金流水 (USER_DATA) | currency | recordId, startTime, endTime, limit, recvWindow | 是 |
/eapi/v1/marginAccount (GET) | 期权保证金账户信息 (USER_DATA) | 无 | recvWindow | 是 |
/eapi/v1/block/order/execute (POST) | 接受大宗交易订单 (TRADE) |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| blockOrderMatchingKey |
| recvWindow |
| 是 |
/eapi/v1/block/order/execute (GET) | 查询大宗交易详情 (USER_DATA) | blockOrderMatchingKey | recvWindow | 是 |
/eapi/v1/block/user-trades (GET) | 账户大宗交易列表 (USER_DATA) | 无 | endTime, startTime, underlying, recvWindow | 是 |
/eapi/v1/block/order/create (DELETE) | 取消大宗交易订单 (TRADE) | blockOrderMatchingKey | recvWindow | 是 |
/eapi/v1/block/order/create (PUT) | 延长大宗交易订单 (TRADE) | blockOrderMatchingKey | recvWindow | 是 |
/eapi/v1/block/order/create (POST) | 新建大宗交易订单 (TRADE) | liquidity, legs | recvWindow | 是 |
/eapi/v1/block/order/orders (GET) | 查询大宗交易订单 (TRADE) | 无 | blockOrderMatchingKey, endTime, startTime, underlying, recvWindow | 是 |
/eapi/v1/ticker (GET) | 24小时价格变动统计 | 无 | symbol | 否 |
/eapi/v1/time (GET) | 检查服务器时间 | 无 | 无 | 否 |
/eapi/v1/exchangeInfo (GET) | 交易所信息 | 无 | 无 | 否 |
/eapi/v1/exerciseHistory (GET) | 历史行权记录 | 无 | underlying, startTime, endTime, limit | 否 |
/eapi/v1/klines (GET) | K线/蜡烛图数据 | symbol, interval | startTime, endTime, limit | 否 |
/eapi/v1/openInterest (GET) | 未平仓合约量 | underlyingAsset, expiration | 无 | 否 |
/eapi/v1/mark (GET) | 期权标记价格 | 无 | symbol | 否 |
/eapi/v1/depth (GET) | 订单簿 | symbol | limit | 否 |
/eapi/v1/blockTrades (GET) | 近期大宗交易列表 | 无 | symbol, limit | 否 |
/eapi/v1/trades (GET) | 近期交易列表 | symbol | limit | 否 |
/eapi/v1/index (GET) | 指数价格 | underlying | 无 | 否 |
/eapi/v1/ping (GET) | 测试连通性 | 无 | 无 | 否 |
/eapi/v1/countdownCancelAllHeartBeat (POST) | 自动取消所有未结订单(紧急开关)心跳 (TRADE) | underlyings | recvWindow | 是 |
/eapi/v1/countdownCancelAll (GET) | 获取自动取消所有未结订单(紧急开关)配置 (TRADE) | 无 | underlying, recvWindow | 是 |
/eapi/v1/countdownCancelAll (POST) | 设置自动取消所有未结订单(紧急开关)配置 (TRADE) | underlying, countdownTime | recvWindow | 是 |
/eapi/v1/mmp (GET) | 获取做市商保护配置 (TRADE) | 无 | underlying, recvWindow | 是 |
/eapi/v1/mmpReset (POST) | 重置做市商保护配置 (TRADE) | 无 | underlying, recvWindow | 是 |
/eapi/v1/mmpSet (POST) | 设置做市商保护配置 (TRADE) | 无 | underlying, windowTimeInMilliseconds, frozenTimeInMilliseconds, qtyLimit, deltaLimit, recvWindow | 是 |
/eapi/v1/userTrades (GET) | 账户交易列表 (USER_DATA) | 无 | symbol, fromId, startTime, endTime, limit, recvWindow | 是 |
/eapi/v1/allOpenOrdersByUnderlying (DELETE) | 按标的资产取消所有期权订单 (TRADE) | underlying | recvWindow | 是 |
/eapi/v1/batchOrders (DELETE) | 取消多个期权订单 (TRADE) | symbol | orderIds, clientOrderIds, recvWindow | 是 |
/eapi/v1/batchOrders (POST) | 批量下单 (TRADE) | orders | recvWindow | 是 |
/eapi/v1/order (DELETE) | 取消期权订单 (TRADE) | symbol | orderId, clientOrderId, recvWindow | 是 |
/eapi/v1/order (POST) | 新建订单 (TRADE) | symbol, side, type, quantity | price, timeInForce, reduceOnly, postOnly, newOrderRespType, clientOrderId, isMmp, recvWindow | 是 |
/eapi/v1/order (GET) | 查询单个订单 (TRADE) | symbol | orderId, clientOrderId, recvWindow | 是 |
/eapi/v1/allOpenOrders (DELETE) | 取消特定交易对的所有期权订单 (TRADE) | symbol | recvWindow | 是 |
/eapi/v1/position (GET) | 期权持仓信息 (USER_DATA) | 无 | symbol, recvWindow | 是 |
/eapi/v1/openOrders (GET) | 查询当前未结期权订单 (USER_DATA) | 无 | symbol, orderId, startTime, endTime, recvWindow | 是 |
/eapi/v1/historyOrders (GET) | 查询期权订单历史 (TRADE) | symbol | orderId, startTime, endTime, limit, recvWindow | 是 |
/eapi/v1/commission (GET) | 用户佣金费率 (USER_DATA) | 无 | recvWindow | 是 |
/eapi/v1/exerciseRecord (GET) | 用户行权记录 (USER_DATA) | 无 | symbol, startTime, endTime, limit, recvWindow | 是 |
/eapi/v1/listenKey (DELETE) | 关闭用户数据流 (USER_STREAM) | 无 | 无 | 否 |
/eapi/v1/listenKey (PUT) | 保持用户数据流活跃 (USER_STREAM) | 无 | 无 | 否 |
/eapi/v1/listenKey (POST) | 启动用户数据流 (USER_STREAM) | 无 | 无 | 否 |
对于需要身份验证的端点,您需要提供 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
- 测试网:false
- 描述:主要交易账户
### testnet-dev
- API 密钥:test456...abc
- 密钥:testsecret...xyz
- 测试网:true
- 描述:开发/测试
### futures-keys
- API 密钥:futures789...def
- 密钥:futuressecret...uvw
- 测试网:false
- 描述:期货交易账户
当用户提供新凭证时:
TOOLS.md 中,并显示掩码后的确认信息对于需要签名的交易端点:
X-MBX-APIKEY 请求头。否则,不执行步骤 3–5。
包含 User-Agent 请求头,其字符串如下:binance-derivatives-trading-options/1.0.0 (Skill)
有关实现细节,请参阅 references/authentication.md。
每周安装量
284
仓库
GitHub 星标数
516
首次出现
5 天前
安全审计
安装于
opencode272
codex272
gemini-cli270
github-copilot270
amp270
kimi-cli270
Derivatives-trading-options 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 |
|---|---|---|---|---|
/eapi/v1/bill (GET) | Account Funding Flow (USER_DATA) | currency | recordId, startTime, endTime, limit, recvWindow | Yes |
/eapi/v1/marginAccount (GET) | Option Margin Account Information (USER_DATA) | None | recvWindow | Yes |
/eapi/v1/block/order/execute (POST) | Accept Block Trade Order (TRADE) | blockOrderMatchingKey | recvWindow | Yes |
/eapi/v1/block/order/execute (GET) | Query Block Trade Details (USER_DATA) | blockOrderMatchingKey | recvWindow | Yes |
/eapi/v1/block/user-trades (GET) | Account Block Trade List (USER_DATA) | None | endTime, startTime, underlying, recvWindow | Yes |
/eapi/v1/block/order/create (DELETE) | Cancel Block Trade Order (TRADE) | blockOrderMatchingKey | recvWindow | Yes |
/eapi/v1/block/order/create (PUT) | Extend Block Trade Order (TRADE) | blockOrderMatchingKey | recvWindow | Yes |
/eapi/v1/block/order/create (POST) | New Block Trade Order (TRADE) | liquidity, legs | recvWindow | Yes |
/eapi/v1/block/order/orders (GET) | Query Block Trade Order (TRADE) | None | blockOrderMatchingKey, endTime, startTime, underlying, recvWindow | Yes |
/eapi/v1/ticker (GET) | 24hr Ticker Price Change Statistics | None | symbol | No |
/eapi/v1/time (GET) | Check Server Time | None | None | No |
/eapi/v1/exchangeInfo (GET) | Exchange Information | None | None | No |
/eapi/v1/exerciseHistory (GET) | Historical Exercise Records | None | underlying, startTime, endTime, limit | No |
/eapi/v1/klines (GET) | Kline/Candlestick Data | symbol, interval | startTime, endTime, limit | No |
/eapi/v1/openInterest (GET) | Open Interest | underlyingAsset, expiration | None | No |
/eapi/v1/mark (GET) | Option Mark Price | None | symbol | No |
/eapi/v1/depth (GET) | Order Book | symbol | limit | No |
/eapi/v1/blockTrades (GET) | Recent Block Trades List | None | symbol, limit | No |
/eapi/v1/trades (GET) | Recent Trades List | symbol | limit | No |
/eapi/v1/index (GET) | Index Price | underlying | None | No |
/eapi/v1/ping (GET) | Test Connectivity | None | None | No |
/eapi/v1/countdownCancelAllHeartBeat (POST) | Auto-Cancel All Open Orders (Kill-Switch) Heartbeat (TRADE) | underlyings | recvWindow | Yes |
/eapi/v1/countdownCancelAll (GET) | Get Auto-Cancel All Open Orders (Kill-Switch) Config (TRADE) | None | underlying, recvWindow | Yes |
/eapi/v1/countdownCancelAll (POST) | Set Auto-Cancel All Open Orders (Kill-Switch) Config (TRADE) | underlying, countdownTime | recvWindow | Yes |
/eapi/v1/mmp (GET) | Get Market Maker Protection Config (TRADE) | None | underlying, recvWindow | Yes |
/eapi/v1/mmpReset (POST) | Reset Market Maker Protection Config (TRADE) | None | underlying, recvWindow | Yes |
/eapi/v1/mmpSet (POST) | Set Market Maker Protection Config (TRADE) | None | underlying, windowTimeInMilliseconds, frozenTimeInMilliseconds, qtyLimit, deltaLimit, recvWindow | Yes |
/eapi/v1/userTrades (GET) | Account Trade List (USER_DATA) | None | symbol, fromId, startTime, endTime, limit, recvWindow | Yes |
/eapi/v1/allOpenOrdersByUnderlying (DELETE) | Cancel All Option Orders By Underlying (TRADE) | underlying | recvWindow | Yes |
/eapi/v1/batchOrders (DELETE) | Cancel Multiple Option Orders (TRADE) | symbol | orderIds, clientOrderIds, recvWindow | Yes |
/eapi/v1/batchOrders (POST) | Place Multiple Orders(TRADE) | orders | recvWindow | Yes |
/eapi/v1/order (DELETE) | Cancel Option Order (TRADE) | symbol | orderId, clientOrderId, recvWindow | Yes |
/eapi/v1/order (POST) | New Order (TRADE) | symbol, side, type, quantity | price, timeInForce, reduceOnly, postOnly, newOrderRespType, clientOrderId, isMmp, recvWindow | Yes |
/eapi/v1/order (GET) | Query Single Order (TRADE) | symbol | orderId, clientOrderId, recvWindow | Yes |
/eapi/v1/allOpenOrders (DELETE) | Cancel all Option orders on specific symbol (TRADE) | symbol | recvWindow | Yes |
/eapi/v1/position (GET) | Option Position Information (USER_DATA) | None | symbol, recvWindow | Yes |
/eapi/v1/openOrders (GET) | Query Current Open Option Orders (USER_DATA) | None | symbol, orderId, startTime, endTime, recvWindow | Yes |
/eapi/v1/historyOrders (GET) | Query Option Order History (TRADE) | symbol | orderId, startTime, endTime, limit, recvWindow | Yes |
/eapi/v1/commission (GET) | User Commission (USER_DATA) | None | recvWindow | Yes |
/eapi/v1/exerciseRecord (GET) | User Exercise Record (USER_DATA) | None | symbol, startTime, endTime, limit, recvWindow | Yes |
/eapi/v1/listenKey (DELETE) | Close User Data Stream (USER_STREAM) | None | None | No |
/eapi/v1/listenKey (PUT) | Keepalive User Data Stream (USER_STREAM) | None | None | No |
/eapi/v1/listenKey (POST) | Start User Data Stream (USER_STREAM) | None | None | No |
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 Environment: Mainnet
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
- Testnet: false
- Description: Primary trading account
### testnet-dev
- API Key: test456...abc
- Secret: testsecret...xyz
- Testnet: true
- Description: Development/testing
### futures-keys
- API Key: futures789...def
- Secret: futuressecret...uvw
- Testnet: false
- 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-derivatives-trading-options/1.0.0 (Skill)
See references/authentication.md for implementation details.
Weekly Installs
284
Repository
GitHub Stars
516
First Seen
5 days ago
Security Audits
Gen Agent Trust HubPassSocketWarnSnykWarn
Installed on
opencode272
codex272
gemini-cli270
github-copilot270
amp270
kimi-cli270
飞书OpenAPI Explorer:探索和调用未封装的飞书原生API接口
15,500 周安装