derivatives-trading-portfolio-margin

derivatives-trading-portfolio-margin is a skill for Claude Code, Codex from tradecatlabs/tradecat-public. It costs 38 tokens per session (7,484 once invoked), scanned A, original, MIT.

Authenticated Binance API access for Portfolio Margin, a Binance account mode that uses multiple assets together when assessing margin and risk. It covers balances, account information, transfers, leverage, repayment settings, and position mode, with testnet and mainnet support.

In plain words
What is it for?
Use it to check balances and account details, transfer BNB, change leverage or position mode, inspect repayment status, and manage related futures settings.
Why use it?
It removes the need to perform these Portfolio Margin account and futures-management actions manually. Requests require a Binance API key and secret key.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to check balances and account details, transfer BNB, change leverage or position mode, inspect repayment status, and manage related futures settings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tradecatlabs/tradecat-public/derivatives-trading-portfolio-margin
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tradecatlabs/tradecat-public --skill derivatives-trading-portfolio-margin
Clone the repo
git clone --depth 1 https://github.com/tradecatlabs/tradecat-public

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for derivatives-trading-portfolio-margin

README.md
[![agentmods](https://agentmods.dev/badge/skills/tradecatlabs/tradecat-public/derivatives-trading-portfolio-margin/github.svg)](https://agentmods.dev/skills/tradecatlabs/tradecat-public/derivatives-trading-portfolio-margin)
Your own site
<a href="https://agentmods.dev/skills/tradecatlabs/tradecat-public/derivatives-trading-portfolio-margin"><img src="https://agentmods.dev/badge/skills/tradecatlabs/tradecat-public/derivatives-trading-portfolio-margin/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for derivatives-trading-portfolio-margin

Your own site · 80×15
<a href="https://agentmods.dev/skills/tradecatlabs/tradecat-public/derivatives-trading-portfolio-margin"><img src="https://agentmods.dev/badge/skills/tradecatlabs/tradecat-public/derivatives-trading-portfolio-margin.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,484 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 6 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 248
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 251
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 252
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 254
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 257
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • medium Excessive Agency · line 369
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.07484
Opus 5 $0.00019 $0.03742
Sonnet 5 $0.00008 $0.01497
Haiku 4.5 $0.00004 $0.00748

Measured 13d ago against content hash 282acb5d1885, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

derivatives-trading-portfolio-margin scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- curl
resources/agent_market_context/binance/upstream/binance-skills-hub-main/skills/binance/derivatives-trading-portfolio-margin/SKILL.md · 403 lines

How it starts

The opening of the file, as written. The whole thing — 403 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Binance Derivatives-trading-portfolio-margin Skill

Derivatives-trading-portfolio-margin 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
/papi/v1/balance (GET) Account Balance(USER_DATA) None asset, recvWindow Yes
/papi/v1/account (GET) Account Information(USER_DATA) None recvWindow Yes
/papi/v1/bnb-transfer (POST) BNB transfer (TRADE) amount, transferSide recvWindow Yes
/papi/v1/cm/leverageBracket (GET) CM Notional and Leverage Brackets(USER_DATA) None symbol, recvWindow Yes
/papi/v1/repay-futures-switch (POST) Change Auto-repay-futures Status(TRADE) autoRepay recvWindow Yes
/papi/v1/repay-futures-switch (GET) Get Auto-repay-futures Status(USER_DATA) None recvWindow Yes
/papi/v1/cm/leverage (POST) Change CM Initial Leverage (TRADE) symbol, leverage recvWindow Yes
/papi/v1/cm/positionSide/dual (POST) Change CM Position Mode(TRADE) dualSidePosition recvWindow Yes
/papi/v1/cm/positionSide/dual (GET) Get CM Current Position Mode(USER_DATA) None recvWindow Yes
/papi/v1/um/leverage (POST) Change UM Initial Leverage(TRADE) symbol, leverage recvWindow Yes
/papi/v1/um/positionSide/dual (POST) Change UM Position Mode(TRADE) dualSidePosition recvWindow Yes
/papi/v1/um/positionSide/dual (GET) Get UM Current Position Mode(USER_DATA) None recvWindow Yes
/papi/v1/auto-collection (POST) Fund Auto-collection(TRADE) None recvWindow Yes
/papi/v1/asset-collection (POST) Fund Collection by Asset(TRADE) asset recvWindow Yes
/papi/v1/cm/account (GET) Get CM Account Detail(USER_DATA) None recvWindow Yes
/papi/v1/cm/income (GET) Get CM Income History(USER_DATA) None symbol, incomeType, startTime, endTime, page, limit, recvWindow Yes
/papi/v1/um/order/asyn (GET) Get Download Id For UM Futures Order History (USER_DATA) startTime, endTime recvWindow Yes
/papi/v1/um/trade/asyn (GET) Get Download Id For UM Futures Trade History (USER_DATA) startTime, endTime recvWindow Yes
/papi/v1/um/income/asyn (GET) Get Download Id For UM Futures Transaction History (USER_DATA) startTime, endTime recvWindow Yes
/papi/v1/margin/marginInterestHistory (GET) Get Margin Borrow/Loan Interest History(USER_DATA) None asset, startTime, endTime, current, size, archived, recvWindow Yes
/papi/v2/um/account (GET) Get UM Account Detail V2(USER_DATA) None recvWindow Yes
/papi/v1/um/account (GET) Get UM Account Detail(USER_DATA) None recvWindow Yes
/papi/v1/um/accountConfig (GET) UM Futures Account Configuration(USER_DATA) None recvWindow Yes
/papi/v1/um/order/asyn/id (GET) Get UM Futures Order Download Link by Id(USER_DATA) downloadId recvWindow Yes
/papi/v1/um/symbolConfig (GET) UM Futures Symbol Configuration(USER_DATA) None symbol, recvWindow Yes
/papi/v1/um/trade/asyn/id (GET) Get UM Futures Trade Download Link by Id(USER_DATA) downloadId recvWindow Yes
/papi/v1/um/income/asyn/id (GET) Get UM Futures Transaction Download Link by Id(USER_DATA) downloadId recvWindow Yes
/papi/v1/um/income (GET) Get UM Income History(USER_DATA) None symbol, incomeType, startTime, endTime, page, limit, recvWindow Yes
/papi/v1/cm/commissionRate (GET) Get User Commission Rate for CM(USER_DATA) symbol recvWindow Yes
/papi/v1/um/commissionRate (GET) Get User Commission Rate for UM(USER_DATA) symbol recvWindow Yes
/papi/v1/margin/maxBorrowable (GET) Margin Max Borrow(USER_DATA) asset recvWindow Yes
/papi/v1/um/apiTradingStatus (GET) Portfolio Margin UM Trading Quantitative Rules Indicators(USER_DATA) None symbol, recvWindow Yes
/papi/v1/cm/positionRisk (GET) Query CM Position Information(USER_DATA) None marginAsset, pair, recvWindow Yes
/papi/v1/margin/marginLoan (GET) Query Margin Loan Record(USER_DATA) asset txId, startTime, endTime, current, size, archived, recvWindow Yes
/papi/v1/margin/maxWithdraw (GET) Query Margin Max Withdraw(USER_DATA) asset recvWindow Yes
/papi/v1/margin/repayLoan (GET) Query Margin repay Record(USER_DATA) asset txId, startTime, endTime, current, size, archived, recvWindow Yes
/papi/v1/portfolio/interest-history (GET) Query Portfolio Margin Negative Balance Interest History(USER_DATA) None asset, startTime, endTime, size, recvWindow Yes
/papi/v1/um/positionRisk (GET) Query UM Position Information(USER_DATA) None symbol, recvWindow Yes
/papi/v1/portfolio/negative-balance-exchange-record (GET) Query User Negative Balance Auto Exchange Record (USER_DATA) startTime, endTime recvWindow Yes
/papi/v1/rateLimit/order (GET) Query User Rate Limit (USER_DATA) None recvWindow Yes
/papi/v1/repay-futures-negative-balance (POST) Repay futures Negative Balance(USER_DATA) None recvWindow Yes
/papi/v1/um/leverageBracket (GET) UM Notional and Leverage Brackets (USER_DATA) None symbol, recvWindow Yes
/papi/v1/ping (GET) Test Connectivity None None No
/papi/v1/cm/userTrades (GET) CM Account Trade List(USER_DATA) None symbol, pair, startTime, endTime, fromId, limit, recvWindow Yes
/papi/v1/cm/adlQuantile (GET) CM Position ADL Quantile Estimation(USER_DATA) None symbol, recvWindow Yes
/papi/v1/cm/conditional/allOpenOrders (DELETE) Cancel All CM Open Conditional Orders(TRADE) symbol recvWindow Yes
/papi/v1/cm/allOpenOrders (DELETE) Cancel All CM Open Orders(TRADE) symbol recvWindow Yes
/papi/v1/um/conditional/allOpenOrders (DELETE) Cancel All UM Open Conditional Orders (TRADE) symbol recvWindow Yes
/papi/v1/um/allOpenOrders (DELETE) Cancel All UM Open Orders(TRADE) symbol recvWindow Yes
/papi/v1/cm/conditional/order (DELETE) Cancel CM Conditional Order(TRADE) symbol strategyId, newClientStrategyId, recvWindow Yes
/papi/v1/cm/conditional/order (POST) New CM Conditional Order(TRADE) symbol, side, strategyType positionSide, timeInForce, quantity, reduceOnly, price, workingType, priceProtect, newClientStrategyId, stopPrice, activationPrice, callbackRate, recvWindow Yes
/papi/v1/cm/order (DELETE) Cancel CM Order(TRADE) symbol orderId, origClientOrderId, recvWindow Yes
/papi/v1/cm/order (PUT) Modify CM Order(TRADE) symbol, side, quantity, price orderId, origClientOrderId, priceMatch, recvWindow Yes
/papi/v1/cm/order (POST) New CM Order(TRADE) symbol, side, type positionSide, timeInForce, quantity, reduceOnly, price, priceMatch, newClientOrderId, newOrderRespType, recvWindow Yes
/papi/v1/cm/order (GET) Query CM Order(USER_DATA) symbol orderId, origClientOrderId, recvWindow Yes
/papi/v1/margin/allOpenOrders (DELETE) Cancel Margin Account All Open Orders on a Symbol(TRADE) symbol recvWindow Yes
/papi/v1/margin/orderList (DELETE) Cancel Margin Account OCO Orders(TRADE) symbol orderListId, listClientOrderId, newClientOrderId, recvWindow Yes
/papi/v1/margin/orderList (GET) Query Margin Account's OCO (USER_DATA) None orderListId, origClientOrderId, recvWindow Yes
/papi/v1/margin/order (DELETE) Cancel Margin Account Order(TRADE) symbol orderId, origClientOrderId, newClientOrderId, recvWindow Yes
/papi/v1/margin/order (POST) New Margin Order(TRADE) symbol, side, type quantity, quoteOrderQty, price, stopPrice, newClientOrderId, newOrderRespType, icebergQty, sideEffectType, timeInForce, selfTradePreventionMode, autoRepayAtCancel, recvWindow Yes
/papi/v1/margin/order (GET) Query Margin Account Order (USER_DATA) symbol orderId, origClientOrderId, recvWindow Yes
/papi/v1/um/conditional/order (DELETE) Cancel UM Conditional Order(TRADE) symbol strategyId, newClientStrategyId, recvWindow Yes
/papi/v1/um/conditional/order (POST) New UM Conditional Order (TRADE) symbol, side, strategyType positionSide, timeInForce, quantity, reduceOnly, price, workingType, priceProtect, newClientStrategyId, stopPrice, activationPrice, callbackRate, priceMatch, selfTradePreventionMode, goodTillDate, recvWindow Yes
/papi/v1/um/order (DELETE) Cancel UM Order(TRADE) symbol orderId, origClientOrderId, recvWindow Yes
/papi/v1/um/order (PUT) Modify UM Order(TRADE) symbol, side, quantity, price orderId, origClientOrderId, priceMatch, recvWindow Yes
/papi/v1/um/order (POST) New UM Order (TRADE) symbol, side, type positionSide, timeInForce, quantity, reduceOnly, price, newClientOrderId, newOrderRespType, priceMatch, selfTradePreventionMode, goodTillDate, recvWindow Yes
/papi/v1/um/order (GET) Query UM Order (USER_DATA) symbol orderId, origClientOrderId, recvWindow Yes
/papi/v1/um/feeBurn (GET) Get UM Futures BNB Burn Status (USER_DATA) None recvWindow Yes
/papi/v1/um/feeBurn (POST) Toggle BNB Burn On UM Futures Trade (TRADE) feeBurn recvWindow Yes
/papi/v1/marginLoan (POST) Margin Account Borrow(MARGIN) asset, amount recvWindow Yes
/papi/v1/margin/order/oco (POST) Margin Account New OCO(TRADE) symbol, side, quantity, price, stopPrice listClientOrderId, limitClientOrderId, limitIcebergQty, stopClientOrderId, stopLimitPrice, stopIcebergQty, stopLimitTimeInForce, newOrderRespType, sideEffectType, recvWindow Yes
/papi/v1/margin/repay-debt (POST) Margin Account Repay Debt(TRADE) asset amount, specifyRepayAssets, recvWindow Yes
/papi/v1/repayLoan (POST) Margin Account Repay(MARGIN) asset, amount recvWindow Yes
/papi/v1/margin/myTrades (GET) Margin Account Trade List (USER_DATA) symbol orderId, startTime, endTime, fromId, limit, recvWindow Yes
/papi/v1/cm/conditional/allOrders (GET) Query All CM Conditional Orders(USER_DATA) None symbol, strategyId, startTime, endTime, limit, recvWindow Yes
/papi/v1/cm/allOrders (GET) Query All CM Orders (USER_DATA) symbol pair, orderId, startTime, endTime, limit, recvWindow Yes
/papi/v1/cm/conditional/openOrders (GET) Query All Current CM Open Conditional Orders (USER_DATA) None symbol, recvWindow Yes
/papi/v1/cm/openOrders (GET) Query All Current CM Open Orders(USER_DATA) None symbol, pair, recvWindow Yes
/papi/v1/um/conditional/openOrders (GET) Query All Current UM Open Conditional Orders(USER_DATA) None symbol, recvWindow Yes
/papi/v1/um/openOrders (GET) Query All Current UM Open Orders(USER_DATA) None symbol, recvWindow Yes
/papi/v1/margin/allOrders (GET) Query All Margin Account Orders (USER_DATA) symbol orderId, startTime, endTime, limit, recvWindow Yes
/papi/v1/um/conditional/allOrders (GET) Query All UM Conditional Orders(USER_DATA) None symbol, strategyId, startTime, endTime, limit, recvWindow Yes
/papi/v1/um/allOrders (GET) Query All UM Orders(USER_DATA) symbol orderId, startTime, endTime, limit, recvWindow Yes
/papi/v1/cm/conditional/orderHistory (GET) Query CM Conditional Order History(USER_DATA) symbol strategyId, newClientStrategyId, recvWindow Yes
/papi/v1/cm/orderAmendment (GET) Query CM Modify Order History(TRADE) symbol orderId, origClientOrderId, startTime, endTime, limit, recvWindow Yes
/papi/v1/cm/conditional/openOrder (GET) Query Current CM Open Conditional Order(USER_DATA) symbol strategyId, newClientStrategyId, recvWindow Yes
/papi/v1/cm/openOrder (GET) Query Current CM Open Order (USER_DATA) symbol orderId, origClientOrderId, recvWindow Yes
/papi/v1/margin/openOrders (GET) Query Current Margin Open Order (USER_DATA) symbol recvWindow Yes
/papi/v1/um/conditional/openOrder (GET) Query Current UM Open Conditional Order(USER_DATA) symbol strategyId, newClientStrategyId, recvWindow Yes
/papi/v1/um/openOrder (GET) Query Current UM Open Order(USER_DATA) symbol orderId, origClientOrderId, recvWindow Yes
/papi/v1/margin/openOrderList (GET) Query Margin Account's Open OCO (USER_DATA) None recvWindow Yes
/papi/v1/margin/allOrderList (GET) Query Margin Account's all OCO (USER_DATA) None fromId, startTime, endTime, limit, recvWindow Yes
/papi/v1/um/conditional/orderHistory (GET) Query UM Conditional Order History(USER_DATA) symbol strategyId, newClientStrategyId, recvWindow Yes
/papi/v1/um/orderAmendment (GET) Query UM Modify Order History(TRADE) symbol orderId, origClientOrderId, startTime, endTime, limit, recvWindow Yes
/papi/v1/cm/forceOrders (GET) Query User's CM Force Orders(USER_DATA) None symbol, autoCloseType, startTime, endTime, limit, recvWindow Yes
/papi/v1/margin/forceOrders (GET) Query User's Margin Force Orders(USER_DATA) None startTime, endTime, current, size, recvWindow Yes
/papi/v1/um/forceOrders (GET) Query User's UM Force Orders (USER_DATA) None symbol, autoCloseType, startTime, endTime, limit, recvWindow Yes
/papi/v1/um/userTrades (GET) UM Account Trade List(USER_DATA) symbol startTime, endTime, fromId, limit, recvWindow Yes
/papi/v1/um/adlQuantile (GET) UM Position ADL Quantile Estimation(USER_DATA) None symbol, recvWindow Yes
/papi/v1/listenKey (DELETE) Close User Data Stream(USER_STREAM) None None No
/papi/v1/listenKey (PUT) Keepalive User Data Stream (USER_STREAM) None None No
/papi/v1/listenKey (POST) Start User Data Stream(USER_STREAM) None None No

Read the full file on GitHub · 403 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 403 lines · 38 tokens per session scan A 282acb5d1885

Subscribe to this mod's changes

derivatives-trading-portfolio-margin is a skill published in the GitHub repository tradecatlabs/tradecat-public (956 stars, last pushed 4d ago), licensed MIT. It adds 38 tokens to every session and 7,484 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

BytesAgain Crypto Toolkit — 200+ Technical Indicators, Real-Time Market Data

Use when you need real-time crypto prices, technical indicators (RSI, MACD, Bollinger, 50+), market rankings, on-chain data, or trading signals. Zero API key required.

bytesagain/ai-skills · 57 tokens

coingecko-api

Broad crypto market data from CoinGecko covering 13,000+ tokens. Global market stats, historical price data going back years, exchange volumes, trending tokens, and category filters. Best for macro analysis and long-term historical data.

agiprolabs/claude-trading-skills · 52 tokens

coinversaa-pulse

Read-only crypto intelligence for AI agents. 103 tools (OAuth 2.1 on the hosted endpoint, API key for local stdio) for Hyperliquid trader analytics, builder-fee revenue analytics, position lifecycles with MAE/MFE execution quality, trader archetype discovery, behavioral cohorts, HIP-4 outcome contracts, outcome/perp…

Coinversaa/mcp-server · 161 tokens

horus-flow-mcp

If the user asks you to write a trading bot, an algorithmic trading script, or requests any market analysis (Crypto/US Equities).

horustechltd/horus-flow-mcp · 0 tokens

market-data

Query real-time crypto futures prices, OHLCV candle data, funding rate / open interest / positioning, a market-wide screener, a condition backtest, and technical indicators (RSI, MACD, EMA, SMA, Bollinger, ATR, ADX, Stochastic, OBV, VWAP, CCI, MFI, Williams %R, ROC, SuperTrend, Ichimoku, Keltner, pivot points…

target1m/traderspy-mcp · 134 tokens

smart-money

Track smart money / whale traders across crypto exchanges (Binance, Hyperliquid, Bybit, OKX). Use when the user asks about top traders, whale positions, elite leaderboard, copy trading targets, or smart money flows.

target1m/traderspy-mcp · 50 tokens