
Derivatives Trading Portfolio Margin Pro
Wire Binance Portfolio Margin Pro derivatives API calls into trading bots or agent workflows with correct signing and env-based credentials.
Overview
Derivatives-trading-portfolio-margin-pro is an agent skill for the Build phase that performs authenticated Binance Portfolio Margin Pro derivatives API requests with env- or file-based keys and correct signing.
Install
npx skills add https://github.com/binance/binance-skills-hub --skill derivatives-trading-portfolio-margin-proWhat is this skill?
- Authenticated Binance derivatives portfolio-margin-pro REST requests from agent context
- API key and secret via environment variables or credential files
- RSA and Ed25519 signature generation fixes in v1.1.0
- Openclaw metadata in User-Agent for identifiable client traffic
- MIT-licensed Binance skills-hub package (v1.1.0 changelog)
- v1.1.0 changelog (2026-03-24): env/file API keys, RSA and Ed25519 signature fixes, Openclaw User-Agent metadata
Adoption & trust: 1.2k installs on skills.sh; 881 GitHub stars; 2/3 security scanners passed (skills.sh audits).
What problem does it solve?
You need Binance portfolio margin derivatives endpoints in an agent workflow but signing, keys, and request shape are easy to get wrong.
Who is it for?
Indie builders coding exchange-connected agents, bots, or internal treasury tools on Binance portfolio margin.
Skip if: Non-trading products, paper-only prototypes without API access, or teams that want investment advice instead of API integration guidance.
When should I use this skill?
Implementing or debugging Binance Portfolio Margin Pro derivatives API calls with authenticated requests.
What do I get? / Deliverables
Your agent follows Binance’s portfolio-margin-pro request and auth patterns so integration code can call the API consistently.
- Correctly signed portfolio-margin-pro API request patterns
- Documented credential loading from environment or files
Recommended Skills
Journey fit
Canonical shelf is Build because the skill is an API integration layer you implement before production trading automation. Integrations subphase fits external exchange API wiring rather than launch, growth, or day-two ops runbooks.
How it compares
Use as a skill-packaged Binance API procedure—not a hosted MCP server or a generic REST cheat sheet.
Common Questions / FAQ
Who is derivatives-trading-portfolio-margin-pro for?
Solo builders and small teams implementing Binance Portfolio Margin Pro derivatives automation with AI coding agents.
When should I use derivatives-trading-portfolio-margin-pro?
During Build integrations when you add portfolio-margin-pro endpoints, fix signing, or standardize API key handling in a trading or treasury project.
Is derivatives-trading-portfolio-margin-pro safe to install?
Review the Security Audits panel on this Prism page before trusting it with real API keys; trading skills imply secrets, network, and financial risk you must control locally.
SKILL.md
READMESKILL.md - Derivatives Trading Portfolio Margin Pro
# Changelog ## 1.1.0 - 2026-03-24 - Environmental variables or files can now be used as input for the API key and secret key. - Fix signature generation for RSA and Ed25519 keys. - Add `Openclaw` metadata to the User Agent header ## 1.0.0 - 2026-03-19 - Initial release MIT License Copyright (c) 2026 Binance Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --- name: derivatives-trading-portfolio-margin-pro description: Binance Derivatives-trading-portfolio-margin-pro request using the Binance API. Authentication requires API key and secret key. metadata: version: 1.1.0 author: Binance openclaw: requires: bins: - curl - openssl - date homepage: https://github.com/binance/binance-skills-hub/tree/main/skills/binance/derivatives-trading-portfolio-margin-pro/SKILL.md license: MIT --- # Binance Derivatives-trading-portfolio-margin-pro Skill 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. ## Quick Reference | 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