sub-account

binance/binance-skills-hub · updated Apr 8, 2026

MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.

$npx skills add https://github.com/binance/binance-skills-hub --skill sub-account
0 commentsdiscussion
summary

Sub-account request on Binance using authenticated API endpoints. Requires API key and secret key for certain endpoints. Return the result in JSON format.

skill.md

Binance Sub-account Skill

Sub-account 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/sub-account/virtualSubAccount (POST) Create a Virtual Sub-account (For Master Account) (USER_DATA) subAccountString recvWindow Yes
/sapi/v1/sub-account/futures/enable (POST) Enable Futures for Sub-account (For Master Account) (USER_DATA) email recvWindow Yes
/sapi/v1/sub-account/eoptions/enable (POST) Enable Options for Sub-account (For Master Account) (USER_DATA) email recvWindow Yes
/sapi/v2/sub-account/futures/positionRisk (GET) Get Futures Position-Risk of Sub-account V2 (For Master Account) (USER_DATA) email, futuresType recvWindow Yes
/sapi/v1/sub-account/futures/positionRisk (GET) Get Futures Position-Risk of Sub-account (For Master Account) (USER_DATA) email recvWindow Yes
/sapi/v1/sub-account/status (GET) Get Sub-account's Status on Margin Or Futures (For Master Account) (USER_DATA) None email, recvWindow Yes
/sapi/v1/sub-account/list (GET) Query Sub-account List (For Master Account) (USER_DATA) None email, isFreeze, page, limit, recvWindow Yes
/sapi/v1/sub-account/transaction-statistics (GET) Query Sub-account Transaction Statistics (For Master Account) (USER_DATA) None email, recvWindow Yes
/sapi/v2/sub-account/subAccountApi/ipRestriction (POST) Add IP Restriction for Sub-Account API key (For Master Account) (USER_DATA) email, subAccountApiKey, status ipAddress, recvWindow Yes
/sapi/v1/sub-account/subAccountApi/ipRestriction/ipList (DELETE) Delete IP List For a Sub-account API Key (For Master Account) (USER_DATA) email, subAccountApiKey, ipAddress recvWindow Yes
/sapi/v1/sub-account/subAccountApi/ipRestriction (GET) Get IP Restriction for a Sub-account API Key (For Master Account) (USER_DATA) email, subAccountApiKey recvWindow Yes
/sapi/v1/sub-account/futures/transfer (POST) Futures Transfer for Sub-account (For Master Account) (USER_DATA) email, asset, amount, type recvWindow Yes
/sapi/v2/sub-account/futures/account (GET) Get Detail on Sub-account's Futures Account V2 (For Master Account) (USER_DATA) email, futuresType recvWindow Yes
/sapi/v1/sub-account/futures/account (GET) Get Detail on Sub-account's Futures Account (For Master Account) (USER_DATA) email recvWindow Yes
/sapi/v1/sub-account/margin/account (GET) Get Detail on Sub-account's Margin Account (For Master Account) (USER_DATA) email recvWindow Yes
/sapi/v1/sub-account/futures/move-position (GET) Get Move Position History for Sub-account (For Master Account) (USER_DATA) symbol, page, row startTime, endTime, recvWindow Yes
/sapi/v1/sub-account/futures/move-position (POST) Move Position for Sub-account (For Master Account) (USER_DATA) fromUserEmail, toUserEmail, productType, orderArgs recvWindow Yes
/sapi/v1/capital/deposit/subAddress (GET) Get Sub-account Deposit Address (For Master Account) (USER_DATA) email, coin network, amount, recvWindow Yes
/sapi/v1/capital/deposit/subHisrec (GET) Get Sub-account Deposit History (For Master Account) (USER_DATA) email coin, status, startTime, endTime, limit, offset, recvWindow, txId Yes
/sapi/v2/sub-account/futures/accountSummary (GET) Get Summary of Sub-account's Futures Account V2 (For Master Account) (USER_DATA) futuresType page, limit, recvWindow Yes
/sapi/v1/sub-account/futures/accountSummary (GET) Get Summary of Sub-account's Futures Account (For Master Account) (USER_DATA) page, limit recvWindow Yes
/sapi/v1/sub-account/margin/accountSummary (GET) Get Summary of Sub-account's Margin Account (For Master Account) (USER_DATA) None recvWindow Yes
/sapi/v1/sub-account/margin/transfer (POST) Margin Transfer for Sub-account (For Master Account) (USER_DATA) email, asset, amount, type recvWindow Yes
/sapi/v3/sub-account/assets (GET) Query Sub-account Assets (For Master Account) (USER_DATA) email recvWindow Yes
/sapi/v4/sub-account/assets (GET) Query Sub-account Assets (For Master Account) (USER_DATA) email recvWindow Yes
/sapi/v1/sub-account/futures/internalTransfer (GET) Query Sub-account Futures Asset Transfer History (For Master Account) (USER_DATA) email, futuresType startTime, endTime, page, limit, recvWindow Yes
/sapi/v1/sub-account/futures/internalTransfer (POST) Sub-account Futures Asset Transfer (For Master Account) (USER_DATA) fromEmail, toEmail, futuresType, asset, amount recvWindow Yes
/sapi/v1/sub-account/sub/transfer/history (GET) Query Sub-account Spot Asset Transfer History (For Master Account) (USER_DATA) None fromEmail, toEmail, startTime, endTime, page, limit, recvWindow Yes
/sapi/v1/sub-account/spotSummary (GET) Query Sub-account Spot Assets Summary (For Master Account) (USER_DATA) None email, page, size, recvWindow Yes
/sapi/v1/sub-account/universalTransfer (GET) Query Universal Transfer History (For Master Account) (USER_DATA) None fromEmail, toEmail, clientTranId, startTime, endTime, page, limit, recvWindow Yes
/sapi/v1/sub-account/universalTransfer (POST) Universal Transfer (For Master Account) (USER_DATA) fromAccountType, toAccountType, asset, amount fromEmail, toEmail, clientTranId, symbol, recvWindow Yes
/sapi/v1/sub-account/transfer/subUserHistory (GET) Sub-account Transfer History (For Sub-account) (USER_DATA) None asset, type, startTime, endTime, limit, returnFailHistory, recvWindow Yes
/sapi/v1/sub-account/transfer/subToMaster (POST) Transfer to Master (For Sub-account) (USER_DATA) asset, amount recvWindow Yes
/sapi/v1/sub-account/transfer/subToSub (POST) Transfer to Sub-account of Same Master (For Sub-account) (USER_DATA) toEmail, asset, amount recvWindow Yes
/sapi/v1/managed-subaccount/deposit (POST) Deposit Assets Into The Managed Sub-account (For Investor Master Account) (USER_DATA) toEmail, asset, amount recvWindow Yes
/sapi/v1/managed-subaccount/deposit/address (GET) Get Managed Sub-account Deposit Address (For Investor Master Account) (USER_DATA) email, coin network, amount, recvWindow Yes
/sapi/v1/managed-subaccount/queryTransLogForInvestor (GET) Query Managed Sub Account Transfer Log (For Investor Master Account) (USER_DATA) email, startTime, endTime, page, limit transfers, transferFunctionAccountType Yes
/sapi/v1/managed-subaccount/queryTransLogForTradeParent (GET) Query Managed Sub Account Transfer Log (For Trading Team Master Account) (USER_DATA) email, startTime, endTime, page, limit transfers, transferFunctionAccountType Yes
/sapi/v1/managed-subaccount/query-trans-log (GET) Query Managed Sub Account Transfer Log (For Trading Team Sub Account) (USER_DATA) startTime, endTime, page, limit transfers, transferFunctionAccountType, recvWindow Yes
/sapi/v1/managed-subaccount/asset (GET) Query Managed Sub-account Asset Details (For Investor Master Account) (USER_DATA) email recvWindow Yes
/sapi/v1/managed-subaccount/fetch-future-asset (GET) Query Managed Sub-account Futures Asset Details (For Investor Master Account) (USER_DATA) email accountType Yes
/sapi/v1/managed-subaccount/info (GET) Query Managed Sub-account List (For Investor) (USER_DATA) None email, page, limit, recvWindow Yes
/sapi/v1/managed-subaccount/marginAsset (GET) Query Managed Sub-account Margin Asset Details (For Investor Master Account) (USER_DATA) email accountType Yes
/sapi/v1/managed-subaccount/accountSnapshot (GET) Query Managed Sub-account Snapshot (For Investor Master Account) (USER_DATA) email, type startTime, endTime, limit, recvWindow Yes
/sapi/v1/managed-subaccount/withdraw (POST) Withdrawl Assets From The Managed Sub-account (For Investor Master Account) (USER_DATA) fromEmail, asset, amount transferDate, recvWindow Yes

Parameters

Common Parameters

  • subAccountString: Please input a string. We will create a virtual email using that string for you to register
  • recvWindow: (e.g., 5000)
  • email: Sub-account email (e.g., [email protected])
  • futuresType: 1:USDT-margined Futures,2: Coin-margined Futures
  • email: Managed sub-account email
  • isFreeze: true or false
  • page: Default value: 1 (e.g., 1)
  • limit: Default value: 1, Max value: 200 (e.g., 1)
  • subAccountApiKey:
  • status: IP Restriction status. 1 = IP Unrestricted. 2 = Restrict access to trusted IPs only.
  • ipAddress: Insert static IP in batch, separated by commas.
  • ipAddress: IPs to be deleted. Can be added in batches, separated by commas
  • asset:
  • amount: (e.g., 1.0)
  • type: 1: transfer from subaccount's spot account to margin account 2: transfer from subaccount's margin account to its spot account
  • symbol:
  • startTime: (e.g., 1623319461670)
  • endTime: (e.g., 1641782889000)
  • page: Page
  • row:
  • coin:
  • network: networks can be found in GET /sapi/v1/capital/deposit/address
  • amount: (e.g., 1.0)
  • coin:
  • status: 0(0:pending,6: credited but cannot withdraw,7:Wrong Deposit,8:Waiting User confirm,1:success)
  • offset: default:0
  • txId: (e.g., 1)
  • limit: Limit (Max: 500)
  • fromUserEmail:
  • toUserEmail:
  • productType: Only support UM
  • orderArgs: Max 10 positions supported. When input request parameter,orderArgs.symbol should be STRING, orderArgs.quantity should be BIGDECIMAL, and orderArgs.positionSide should be STRING, positionSide support BOTH,LONG and SHORT. Each entry should be like orderArgs[0].symbol=BTCUSDT,orderArgs[0].quantity=0.001,orderArgs[0].positionSide=BOTH. Example of the request parameter array: orderArgs[0].symbol=BTCUSDT orderArgs[0].quantity=0.001 orderArgs[0].positionSide=BOTH orderArgs[1].symbol=ETHUSDT orderArgs[1].quantity=0.01 orderArgs[1].positionSide=BOTH
  • fromEmail:
  • toEmail:
  • size: default 10, max 20 (e.g., 10)
  • clientTranId: (e.g., 1)
  • fromEmail:
  • toEmail:
  • asset: If not sent, result of all assets will be returned
  • type: 1: transfer in, 2: transfer out
  • returnFailHistory: Default False, return PROCESS and SUCCESS status history; If True,return PROCESS and SUCCESS and FAILURE status history
  • fromAccountType: "SPOT","USDT_FUTURE","COIN_FUTURE","MARGIN"(Cross),"ISOLATED_MARGIN"
  • toAccountType: "SPOT","USDT_FUTURE","COIN_FUTURE","MARGIN"(Cross),"ISOLATED_MARGIN"
  • symbol: Only supported under ISOLATED_MARGIN type
  • startTime: Start Time (e.g., 1623319461670)
  • endTime: End Time (The start time and end time interval cannot exceed half a year) (e.g., 1641782889000)
  • transfers: Transfer Direction (FROM/TO)
  • transferFunctionAccountType: Transfer function account type (SPOT/MARGIN/ISOLATED_MARGIN/USDT_FUTURE/COIN_FUTURE)
  • accountType: No input or input "MARGIN" to get Cross Margin account details. Input "ISOLATED_MARGIN" to get Isolated Margin account details.
  • type: "SPOT", "MARGIN"(cross), "FUTURES"(UM)
  • transferDate: Withdrawals is automatically occur on the transfer date(UTC0). If a date is not selected, the withdrawal occurs right now

Authentication

For endpoints that require authentication, you will need to provide Binance API credentials. Required credentials:

  • apiKey: Your Binance API key (for header)
  • secretKey: Your Binance API secret (for signing)

Base URLs:

Security

Share Credentials

Users can provide Binance API credentials in different ways. The agent will try to retrieve automatically with the two first ways the credentials, but users can also explicitly tell the agent that they have set the credentials or stored them in a .env file, and the agent should re-read that file when they do. The agent can also make http requests with the two first methods without user confirmation.

  1. Environment variables

Search for the following specific variables only (never dump the full environment):

Authorized environment variables

  • Mainnet: BINANCE_API_KEY and BINANCE_SECRET_KEY

Read and use in a single exec call so the raw key never enters the agent's context:

KEY="$BINANCE_API_KEY"
SECRET="$BINANCE_SECRET_KEY"

response=$(curl -s -X GET "$URL" \
  -H "X-MBX-APIKEY: $KEY" \
  --data-urlencode "param1=value1")

echo "$response"

Environment variables must be set before OpenClaw starts. They are inherited at process startup and cannot be injected into a running instance. If you need to add or update credentials without restarting, use a secrets file (see option 2).

  1. Secrets file (.env)

Check ~/.openclaw/secrets.env , ~/.env, or a .env file in the workspace. Read individual keys with grep, never source the full file:

# Try all credential locations in order
API_KEY=$(grep '^BINANCE_API_KEY=' ~/.openclaw/secrets.env 2>/dev/null | cut -d= -f2-)
SECRET_KEY=$(grep '^BINANCE_SECRET_KEY=' ~/.openclaw/secrets.env 2>/dev/null | cut -d= -f2-)

# Fallback: search .env in known directories (KEY=VALUE then raw line format)
for dir in ~/.openclaw ~; do
  [ -n "$API_KEY" ] && break
  env_file="$dir/.env"
  [ -f "$env_file" ] || continue

  # Read first two lines
  line1=$(sed -n '1p' "$env_file")
  line2=$(sed -n '2p' "$env_file")

  # Check if lines contain '=' indicating KEY=VALUE format
  if [[ "$line1" == *=* && "$line2" == *=* ]]; then
    API_KEY=$(grep '^BINANCE_API_KEY=' "$env_file" 2>/dev/null | cut 
how to use sub-account

How to use sub-account on Cursor

AI-first code editor with Composer

1

Prerequisites

Before installing skills in Cursor, ensure your development environment meets these requirements:

  • Cursor installed and configured on your development machine
  • Node.js version 16.0+ with npm package manager (verify with node --version)
  • Active project directory or workspace where you want to add sub-account
2

Execute installation command

Execute the skills CLI command in your project's root directory to begin installation:

$npx skills add https://github.com/binance/binance-skills-hub --skill sub-account

The skills CLI fetches sub-account from GitHub repository binance/binance-skills-hub and configures it for Cursor.

3

Select Cursor when prompted

The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:

◆ Which agents do you want to install to?
│ ── Universal (.agents/skills) ── always included ────
│ • Amp
│ • Antigravity
│ • Cline
│ • Codex
│ ●Cursor(selected)
│ • Cursor
│ • Windsurf
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/sub-account

Reload or restart Cursor to activate sub-account. Access the skill through slash commands (e.g., /sub-account) or your agent's skill management interface.

Security & Verification Notice

We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.

List & Monetize Your Skill

Submit your Claude Code skill and start earning

GET_STARTED →

Use Cases

User Story & Requirements Generation

Create detailed user stories, acceptance criteria, and feature specs

Example

Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios

Reduce spec writing time by 50%, ensure comprehensive coverage

Competitive Analysis

Research competitors, compare features, identify gaps

Example

Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities

Complete competitive research in 2 hours instead of 2 days

Roadmap Prioritization

Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs

Example

Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale

Make data-driven prioritization decisions faster

Stakeholder Communication

Draft PRDs, status updates, and stakeholder presentations

Example

Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement

Save 3-5 hours/week on communication overhead

Implementation Guide

Prerequisites

  • Claude Desktop or compatible AI client
  • Access to product documentation and roadmap tools (Jira, Notion, etc.)
  • Understanding of product management frameworks (RICE, Jobs-to-be-Done, etc.)
  • Stakeholder contact information and communication channels

Time Estimate

30-60 minutes to see productivity improvements

Installation Steps

  1. 1.Install product management skill
  2. 2.Start with user story generation for known feature
  3. 3.Progress to competitive analysis: research 2-3 competitors
  4. 4.Use for roadmap prioritization: apply RICE/ICE scoring
  5. 5.Draft stakeholder communications and refine based on feedback
  6. 6.Build template library for recurring PM tasks
  7. 7.Share effective prompts with product team

Common Pitfalls

  • Not validating competitive research—verify facts before sharing
  • Accepting user stories without involving engineering team
  • Over-relying on frameworks without qualitative judgment
  • Not customizing outputs to company culture and communication style
  • Skipping stakeholder validation of generated requirements

Best Practices

✓ Do

  • +Validate research and competitive analysis with real data
  • +Collaborate with engineering when generating technical requirements
  • +Customize frameworks and templates to your company context
  • +Use skill for first drafts, refine with stakeholder input
  • +Document successful prompt patterns for PM tasks
  • +Combine AI efficiency with human judgment and intuition

✗ Don't

  • Don't publish competitive analysis without fact-checking
  • Don't finalize user stories without engineering review
  • Don't make prioritization decisions solely on AI scoring
  • Don't skip customer validation of generated requirements
  • Don't ignore company-specific context and culture

💡 Pro Tips

  • Provide context: company goals, constraints, customer feedback
  • Ask for alternatives: 'Show 3 ways to prioritize this roadmap'
  • Request stakeholder-specific formatting: 'Executive summary vs. engineering spec'
  • Use skill for 70% generation + 30% customization to company needs

When to Use This

✓ Use When

Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.

✗ Avoid When

Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.

Learning Path

  1. 1Basic: user stories, feature specs, status updates
  2. 2Intermediate: competitive analysis, prioritization frameworks, PRDs
  3. 3Advanced: product strategy, go-to-market planning, OKR setting
  4. 4Expert: product vision, market positioning, business model innovation

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.872 reviews
  • Pratham Ware· Dec 20, 2024

    I recommend sub-account for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Ishan Huang· Dec 16, 2024

    sub-account is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Aditi Mensah· Dec 4, 2024

    Useful defaults in sub-account — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Omar Martinez· Dec 4, 2024

    Solid pick for teams standardizing on skills: sub-account is focused, and the summary matches what you get after install.

  • Ishan Patel· Dec 4, 2024

    sub-account has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Soo Chen· Dec 4, 2024

    sub-account reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Diya Choi· Nov 23, 2024

    I recommend sub-account for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Neel Brown· Nov 23, 2024

    sub-account is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Isabella Okafor· Nov 23, 2024

    sub-account reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Sakshi Patil· Nov 11, 2024

    Useful defaults in sub-account — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

showing 1-10 of 72

1 / 8