derivatives-trading-portfolio-margin-pro by binance/binance-skills-hub
npx skills add https://github.com/binance/binance-skills-hub --skill derivatives-trading-portfolio-margin-pro使用经过身份验证的 API 端点,在 Binance 上进行衍生品交易-投资组合保证金-Pro 请求。某些端点需要 API 密钥和密钥。以 JSON 格式返回结果。
| 端点 | 描述 | 必需参数 | 可选参数 | 身份验证 |
|---|---|---|---|---|
/sapi/v1/portfolio/bnb-transfer (POST) | BNB 转账(USER_DATA) | amount, transferSide | recvWindow | 是 |
/sapi/v1/portfolio/repay-futures-switch (POST) | 更改自动偿还期货状态(TRADE) | autoRepay | recvWindow | 是 |
/sapi/v1/portfolio/repay-futures-switch (GET) |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 获取自动偿还期货状态(USER_DATA) |
| 无 |
| recvWindow |
| 是 |
/sapi/v1/portfolio/repay (POST) | 投资组合保证金 Pro 破产贷款偿还 | 无 | from, recvWindow | 是 |
/sapi/v1/portfolio/auto-collection (POST) | 资金自动归集(USER_DATA) | 无 | recvWindow | 是 |
/sapi/v1/portfolio/asset-collection (POST) | 按资产归集资金(USER_DATA) | asset | recvWindow | 是 |
/sapi/v2/portfolio/account (GET) | 获取投资组合保证金 Pro SPAN 账户信息(USER_DATA) | 无 | recvWindow | 是 |
/sapi/v1/portfolio/account (GET) | 获取投资组合保证金 Pro 账户信息(USER_DATA) | 无 | recvWindow | 是 |
/sapi/v1/portfolio/balance (GET) | 获取投资组合保证金 Pro 账户余额(USER_DATA) | 无 | asset, recvWindow | 是 |
/sapi/v1/portfolio/delta-mode (GET) | 获取 Delta 模式状态(USER_DATA) | 无 | recvWindow | 是 |
/sapi/v1/portfolio/delta-mode (POST) | 切换 Delta 模式(TRADE) | deltaEnabled | recvWindow | 是 |
/sapi/v1/portfolio/earn-asset-balance (GET) | 获取投资组合保证金可转移的 Earn 资产余额 (USER_DATA) | asset, transferType | recvWindow | 是 |
/sapi/v1/portfolio/pmLoan (GET) | 查询投资组合保证金 Pro 破产贷款金额(USER_DATA) | 无 | recvWindow | 是 |
/sapi/v1/portfolio/interest-history (GET) | 查询投资组合保证金 Pro 负余额利息历史(USER_DATA) | 无 | asset, startTime, endTime, size, recvWindow | 是 |
/sapi/v1/portfolio/pmloan-history (GET) | 查询投资组合保证金 Pro 破产贷款偿还历史(USER_DATA) | 无 | startTime, endTime, current, size, recvWindow | 是 |
/sapi/v1/portfolio/repay-futures-negative-balance (POST) | 偿还期货负余额(USER_DATA) | 无 | from, recvWindow | 是 |
/sapi/v1/portfolio/earn-asset-transfer (POST) | 为投资组合保证金转移 LDUSDT/RWUSD(TRADE) | asset, transferType, amount | recvWindow | 是 |
/sapi/v1/portfolio/collateralRate (GET) | 投资组合保证金抵押率(MARKET_DATA) | 无 | 无 | 否 |
/sapi/v1/portfolio/margin-asset-leverage (GET) | 获取投资组合保证金资产杠杆(USER_DATA) | 无 | 无 | 是 |
/sapi/v2/portfolio/collateralRate (GET) | 投资组合保证金 Pro 分级抵押率(USER_DATA) | 无 | recvWindow | 是 |
/sapi/v1/portfolio/asset-index-price (GET) | 查询投资组合保证金资产指数价格 (MARKET_DATA) | 无 | asset | 否 |
true;false 表示关闭自动偿还期货负余额功能 (例如,true)LDUSDT 和 RWUSDEARN_TO_FUTURE /FUTURE_TO_EARNtrue 启用 Delta 模式;false 禁用 Delta 模式对于需要身份验证的端点,您需要提供 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-derivatives-trading-portfolio-margin-pro/1.0.0 (Skill)
有关实现细节,请参阅 references/authentication.md。
每周安装量
281
代码仓库
GitHub 星标数
516
首次出现
5 天前
安全审计
安装于
opencode270
codex270
gemini-cli268
github-copilot268
amp268
kimi-cli268
Derivatives-trading-portfolio-margin-pro 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/portfolio/bnb-transfer (POST) | BNB transfer(USER_DATA) | amount, transferSide | recvWindow | Yes |
/sapi/v1/portfolio/repay-futures-switch (POST) | Change Auto-repay-futures Status(TRADE) | autoRepay | recvWindow | Yes |
/sapi/v1/portfolio/repay-futures-switch (GET) | Get Auto-repay-futures Status(USER_DATA) | None | recvWindow | Yes |
/sapi/v1/portfolio/repay (POST) | Portfolio Margin Pro Bankruptcy Loan Repay | None | from, recvWindow | Yes |
/sapi/v1/portfolio/auto-collection (POST) | Fund Auto-collection(USER_DATA) | None | recvWindow | Yes |
/sapi/v1/portfolio/asset-collection (POST) | Fund Collection by Asset(USER_DATA) | asset | recvWindow | Yes |
/sapi/v2/portfolio/account (GET) | Get Portfolio Margin Pro SPAN Account Info(USER_DATA) | None | recvWindow | Yes |
/sapi/v1/portfolio/account (GET) | Get Portfolio Margin Pro Account Info(USER_DATA) | None | recvWindow | Yes |
/sapi/v1/portfolio/balance (GET) | Get Portfolio Margin Pro Account Balance(USER_DATA) | None | asset, recvWindow | Yes |
/sapi/v1/portfolio/delta-mode (GET) | Get Delta Mode Status(USER_DATA) | None | recvWindow | Yes |
/sapi/v1/portfolio/delta-mode (POST) | Switch Delta Mode(TRADE) | deltaEnabled | recvWindow | Yes |
/sapi/v1/portfolio/earn-asset-balance (GET) | Get Transferable Earn Asset Balance for Portfolio Margin (USER_DATA) | asset, transferType | recvWindow | Yes |
/sapi/v1/portfolio/pmLoan (GET) | Query Portfolio Margin Pro Bankruptcy Loan Amount(USER_DATA) | None | recvWindow | Yes |
/sapi/v1/portfolio/interest-history (GET) | Query Portfolio Margin Pro Negative Balance Interest History(USER_DATA) | None | asset, startTime, endTime, size, recvWindow | Yes |
/sapi/v1/portfolio/pmloan-history (GET) | Query Portfolio Margin Pro Bankruptcy Loan Repay History(USER_DATA) | None | startTime, endTime, current, size, recvWindow | Yes |
/sapi/v1/portfolio/repay-futures-negative-balance (POST) | Repay futures Negative Balance(USER_DATA) | None | from, recvWindow | Yes |
/sapi/v1/portfolio/earn-asset-transfer (POST) | Transfer LDUSDT/RWUSD for Portfolio Margin(TRADE) | asset, transferType, amount | recvWindow | Yes |
/sapi/v1/portfolio/collateralRate (GET) | Portfolio Margin Collateral Rate(MARKET_DATA) | None | None | No |
/sapi/v1/portfolio/margin-asset-leverage (GET) | Get Portfolio Margin Asset Leverage(USER_DATA) | None | None | Yes |
/sapi/v2/portfolio/collateralRate (GET) | Portfolio Margin Pro Tiered Collateral Rate(USER_DATA) | None | recvWindow | Yes |
/sapi/v1/portfolio/asset-index-price (GET) | Query Portfolio Margin Asset Index Price (MARKET_DATA) | None | asset | No |
true; false for turn off the auto-repay futures negative balance function (e.g., true)LDUSDT and RWUSDEARN_TO_FUTURE /FUTURE_TO_EARNFor 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-derivatives-trading-portfolio-margin-pro/1.0.0 (Skill)
See references/authentication.md for implementation details.
Weekly Installs
281
Repository
GitHub Stars
516
First Seen
5 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykFail
Installed on
opencode270
codex270
gemini-cli268
github-copilot268
amp268
kimi-cli268
飞书OpenAPI Explorer:探索和调用未封装的飞书原生API接口
15,500 周安装
true to enable Delta mode; false to disable Delta mode