margin-trading

margin-trading is a skill for Claude Code, Codex from tradecatlabs/tradecat-public. It costs 23 tokens per session (6,525 once invoked), scanned A, original, MIT.

A skill for managing margin trades and accounts through the Binance API. Margin trading uses borrowed funds, which can increase both gains and losses.

In plain words
What is it for?
Use it to inspect margin accounts and capital flows, adjust leverage, enable or disable isolated margin accounts, and query related Binance settings.
Why use it?
It provides access to Binance margin-account information and operations that would otherwise require direct API requests.

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 inspect margin accounts and capital flows, adjust leverage, enable or disable isolated margin accounts, and query related Binance settings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tradecatlabs/tradecat-public/margin-trading
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 margin-trading
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 margin-trading

README.md
[![agentmods](https://agentmods.dev/badge/skills/tradecatlabs/tradecat-public/margin-trading/github.svg)](https://agentmods.dev/skills/tradecatlabs/tradecat-public/margin-trading)
Your own site
<a href="https://agentmods.dev/skills/tradecatlabs/tradecat-public/margin-trading"><img src="https://agentmods.dev/badge/skills/tradecatlabs/tradecat-public/margin-trading/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 margin-trading

Your own site · 80×15
<a href="https://agentmods.dev/skills/tradecatlabs/tradecat-public/margin-trading"><img src="https://agentmods.dev/badge/skills/tradecatlabs/tradecat-public/margin-trading.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,525 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: 5 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 238
    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 232
    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 235
    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 236
    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 241
    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.
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.00023 $0.06525
Opus 5 $0.00012 $0.03263
Sonnet 5 $0.00005 $0.01305
Haiku 4.5 $0.00002 $0.00653

Measured 11d ago against content hash 3ca755a476e5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

margin-trading 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 11d 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/margin-trading/SKILL.md · 370 lines

How it starts

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

Binance Margin-trading Skill

Margin-trading 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/margin/max-leverage (POST) Adjust cross margin max leverage (USER_DATA) maxLeverage None Yes
/sapi/v1/margin/isolated/account (DELETE) Disable Isolated Margin Account (TRADE) symbol recvWindow Yes
/sapi/v1/margin/isolated/account (POST) Enable Isolated Margin Account (TRADE) symbol recvWindow Yes
/sapi/v1/margin/isolated/account (GET) Query Isolated Margin Account Info (USER_DATA) None symbols, recvWindow Yes
/sapi/v1/bnbBurn (GET) Get BNB Burn Status (USER_DATA) None recvWindow Yes
/sapi/v1/margin/tradeCoeff (GET) Get Summary of Margin account (USER_DATA) None recvWindow Yes
/sapi/v1/margin/capital-flow (GET) Query Cross Isolated Margin Capital Flow (USER_DATA) None asset, symbol, type, startTime, endTime, fromId, limit, recvWindow Yes
/sapi/v1/margin/account (GET) Query Cross Margin Account Details (USER_DATA) None recvWindow Yes
/sapi/v1/margin/crossMarginData (GET) Query Cross Margin Fee Data (USER_DATA) None vipLevel, coin, recvWindow Yes
/sapi/v1/margin/isolated/accountLimit (GET) Query Enabled Isolated Margin Account Limit (USER_DATA) None recvWindow Yes
/sapi/v1/margin/isolatedMarginData (GET) Query Isolated Margin Fee Data (USER_DATA) None vipLevel, symbol, recvWindow Yes
/sapi/v1/margin/interestHistory (GET) Get Interest History (USER_DATA) None asset, isolatedSymbol, startTime, endTime, current, size, recvWindow Yes
/sapi/v1/margin/next-hourly-interest-rate (GET) Get future hourly interest rate (USER_DATA) assets, isIsolated None Yes
/sapi/v1/margin/borrow-repay (POST) Margin account borrow/repay(MARGIN) asset, isIsolated, symbol, amount, type recvWindow Yes
/sapi/v1/margin/borrow-repay (GET) Query borrow/repay records in Margin account(USER_DATA) type asset, isolatedSymbol, txId, startTime, endTime, current, size, recvWindow Yes
/sapi/v1/margin/interestRateHistory (GET) Query Margin Interest Rate History (USER_DATA) asset vipLevel, startTime, endTime, recvWindow Yes
/sapi/v1/margin/maxBorrowable (GET) Query Max Borrow (USER_DATA) asset isolatedSymbol, recvWindow Yes
/sapi/v1/margin/crossMarginCollateralRatio (GET) Cross margin collateral ratio (MARKET_DATA) None None No
/sapi/v1/margin/allPairs (GET) Get All Cross Margin Pairs (MARKET_DATA) None symbol No
/sapi/v1/margin/isolated/allPairs (GET) Get All Isolated Margin Symbol(MARKET_DATA) None symbol, recvWindow No
/sapi/v1/margin/allAssets (GET) Get All Margin Assets (MARKET_DATA) None asset No
/sapi/v1/margin/delist-schedule (GET) Get Delist Schedule (MARKET_DATA) None recvWindow No
/sapi/v1/margin/limit-price-pairs (GET) Get Limit Price Pairs(MARKET_DATA) None None No
/sapi/v1/margin/list-schedule (GET) Get list Schedule (MARKET_DATA) None recvWindow No
/sapi/v1/margin/risk-based-liquidation-ratio (GET) Get Margin Asset Risk-Based Liquidation Ratio (MARKET_DATA) None None No
/sapi/v1/margin/restricted-asset (GET) Get Margin Restricted Assets (MARKET_DATA) None None No
/sapi/v1/margin/isolatedMarginTier (GET) Query Isolated Margin Tier Data (USER_DATA) symbol tier, recvWindow Yes
/sapi/v1/margin/leverageBracket (GET) Query Liability Coin Leverage Bracket in Cross Margin Pro Mode(MARKET_DATA) None None No
/sapi/v1/margin/priceIndex (GET) Query Margin PriceIndex (MARKET_DATA) symbol None No
/sapi/v1/margin/available-inventory (GET) Query Margin Available Inventory(USER_DATA) type None Yes
/sapi/v1/margin/listen-key (DELETE) Close User Data Stream (USER_STREAM) None None No
/sapi/v1/margin/listen-key (PUT) Keepalive User Data Stream (USER_STREAM) listenKey None No
/sapi/v1/margin/listen-key (POST) Start User Data Stream (USER_STREAM) None None No
/sapi/v1/margin/apiKey (POST) Create Special Key(Low-Latency Trading)(TRADE) apiName symbol, ip, publicKey, permissionMode, recvWindow Yes
/sapi/v1/margin/apiKey (DELETE) Delete Special Key(Low-Latency Trading)(TRADE) None apiName, symbol, recvWindow Yes
/sapi/v1/margin/apiKey (GET) Query Special key(Low Latency Trading)(TRADE) None symbol, recvWindow Yes
/sapi/v1/margin/apiKey/ip (PUT) Edit ip for Special Key(Low-Latency Trading)(TRADE) ip symbol, recvWindow Yes
/sapi/v1/margin/forceLiquidationRec (GET) Get Force Liquidation Record (USER_DATA) None startTime, endTime, isolatedSymbol, current, size, recvWindow Yes
/sapi/v1/margin/exchange-small-liability (GET) Get Small Liability Exchange Coin List (USER_DATA) None recvWindow Yes
/sapi/v1/margin/exchange-small-liability (POST) Small Liability Exchange (MARGIN) assetNames recvWindow Yes
/sapi/v1/margin/exchange-small-liability-history (GET) Get Small Liability Exchange History (USER_DATA) current, size startTime, endTime, recvWindow Yes
/sapi/v1/margin/openOrders (DELETE) Margin Account Cancel all Open Orders on a Symbol (TRADE) symbol isIsolated, recvWindow Yes
/sapi/v1/margin/openOrders (GET) Query Margin Account's Open Orders (USER_DATA) None symbol, isIsolated, recvWindow Yes
/sapi/v1/margin/orderList (DELETE) Margin Account Cancel OCO (TRADE) symbol isIsolated, orderListId, listClientOrderId, newClientOrderId, recvWindow Yes
/sapi/v1/margin/orderList (GET) Query Margin Account's OCO (USER_DATA) None isIsolated, symbol, orderListId, origClientOrderId, recvWindow Yes
/sapi/v1/margin/order (DELETE) Margin Account Cancel Order (TRADE) symbol isIsolated, orderId, origClientOrderId, newClientOrderId, recvWindow Yes
/sapi/v1/margin/order (POST) Margin Account New Order (TRADE) symbol, side, type isIsolated, quantity, quoteOrderQty, price, stopPrice, newClientOrderId, icebergQty, newOrderRespType, sideEffectType, timeInForce, selfTradePreventionMode, autoRepayAtCancel, recvWindow Yes
/sapi/v1/margin/order (GET) Query Margin Account's Order (USER_DATA) symbol isIsolated, orderId, origClientOrderId, recvWindow Yes
/sapi/v1/margin/order/oco (POST) Margin Account New OCO (TRADE) symbol, side, quantity, price, stopPrice isIsolated, listClientOrderId, limitClientOrderId, limitIcebergQty, stopClientOrderId, stopLimitPrice, stopIcebergQty, stopLimitTimeInForce, newOrderRespType, sideEffectType, selfTradePreventionMode, autoRepayAtCancel, recvWindow Yes
/sapi/v1/margin/order/oto (POST) Margin Account New OTO (TRADE) symbol, workingType, workingSide, workingPrice, workingQuantity, workingIcebergQty, pendingType, pendingSide, pendingQuantity isIsolated, listClientOrderId, newOrderRespType, sideEffectType, selfTradePreventionMode, autoRepayAtCancel, workingClientOrderId, workingTimeInForce, pendingClientOrderId, pendingPrice, pendingStopPrice, pendingTrailingDelta, pendingIcebergQty, pendingTimeInForce Yes
/sapi/v1/margin/order/otoco (POST) Margin Account New OTOCO (TRADE) symbol, workingType, workingSide, workingPrice, workingQuantity, pendingSide, pendingQuantity, pendingAboveType isIsolated, sideEffectType, autoRepayAtCancel, listClientOrderId, newOrderRespType, selfTradePreventionMode, workingClientOrderId, workingIcebergQty, workingTimeInForce, pendingAboveClientOrderId, pendingAbovePrice, pendingAboveStopPrice, pendingAboveTrailingDelta, pendingAboveIcebergQty, pendingAboveTimeInForce, pendingBelowType, pendingBelowClientOrderId, pendingBelowPrice, pendingBelowStopPrice, pendingBelowTrailingDelta, pendingBelowIcebergQty, pendingBelowTimeInForce Yes
/sapi/v1/margin/manual-liquidation (POST) Margin Manual Liquidation(MARGIN) type symbol, recvWindow Yes
/sapi/v1/margin/rateLimit/order (GET) Query Current Margin Order Count Usage (TRADE) None isIsolated, symbol, recvWindow Yes
/sapi/v1/margin/allOrderList (GET) Query Margin Account's all OCO (USER_DATA) None isIsolated, symbol, fromId, startTime, endTime, limit, recvWindow Yes
/sapi/v1/margin/allOrders (GET) Query Margin Account's All Orders (USER_DATA) symbol isIsolated, orderId, startTime, endTime, limit, recvWindow Yes
/sapi/v1/margin/openOrderList (GET) Query Margin Account's Open OCO (USER_DATA) None isIsolated, symbol, recvWindow Yes
/sapi/v1/margin/myTrades (GET) Query Margin Account's Trade List (USER_DATA) symbol isIsolated, orderId, startTime, endTime, fromId, limit, recvWindow Yes
/sapi/v1/margin/myPreventedMatches (GET) Query Prevented Matches(USER_DATA) symbol preventedMatchId, orderId, fromPreventedMatchId, recvWindow, isIsolated Yes
/sapi/v1/margin/api-key-list (GET) Query Special key List(Low Latency Trading)(TRADE) None symbol, recvWindow Yes
/sapi/v1/margin/transfer (GET) Get Cross Margin Transfer History (USER_DATA) None asset, type, startTime, endTime, current, size, isolatedSymbol, recvWindow Yes
/sapi/v1/margin/maxTransferable (GET) Query Max Transfer-Out Amount (USER_DATA) asset isolatedSymbol, recvWindow Yes

Read the full file on GitHub · 370 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. 11d ago First seen · 370 lines · 23 tokens per session scan A 3ca755a476e5

Subscribe to this mod's changes

margin-trading is a skill published in the GitHub repository tradecatlabs/tradecat-public (955 stars, last pushed 2d ago), licensed MIT. It adds 23 tokens to every session and 6,525 once invoked, about $0.0001 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