MCPInstall

derivatives-trading-options

Binance Derivatives-trading-options request using the Binance API. Authentication requires API key and secret key. Supports testnet and mainnet.

Installs
1.2K
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/binance/binance-skills-hub --skill derivatives-trading-options
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads derivatives-trading-options automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Binance Derivatives-trading-options Skill

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

Quick Reference

EndpointDescriptionRequiredOptionalAuthentication
/eapi/v1/bill (GET)Account Funding Flow (USER_DATA)currencyrecordId, startTime, endTime, limit, recvWindowYes
/eapi/v1/marginAccount (GET)Option Margin Account Information (USER_DATA)NonerecvWindowYes
/eapi/v1/block/order/execute (POST)Accept Block Trade Order (TRADE)blockOrderMatchingKeyrecvWindowYes
/eapi/v1/block/order/execute (GET)Query Block Trade Details (USER_DATA)blockOrderMatchingKeyrecvWindowYes
/eapi/v1/block/user-trades (GET)Account Block Trade List (USER_DATA)NoneendTime, startTime, underlying, recvWindowYes
/eapi/v1/block/order/create (DELETE)Cancel Block Trade Order (TRADE)blockOrderMatchingKeyrecvWindowYes
/eapi/v1/block/order/create (PUT)Extend Block Trade Order (TRADE)blockOrderMatchingKeyrecvWindowYes
/eapi/v1/block/order/create (POST)New Block Trade Order (TRADE)liquidity, legsrecvWindowYes
/eapi/v1/block/order/orders (GET)Query Block Trade Order (TRADE)NoneblockOrderMatchingKey, endTime, startTime, underlying, recvWindowYes
/eapi/v1/ticker (GET)24hr Ticker Price Change StatisticsNonesymbolNo
/eapi/v1/time (GET)Check Server TimeNoneNoneNo
/eapi/v1/exchangeInfo (GET)Exchange InformationNoneNoneNo
/eapi/v1/exerciseHistory (GET)Historical Exercise RecordsNoneunderlying, startTime, endTime, limitNo
/eapi/v1/klines (GET)Kline/Candlestick Datasymbol, intervalstartTime, endTime, limitNo
/eapi/v1/openInterest (GET)Open InterestunderlyingAsset, expirationNoneNo
/eapi/v1/mark (GET)Option Mark PriceNonesymbolNo
/eapi/v1/depth (GET)Order BooksymbollimitNo
/eapi/v1/blockTrades (GET)Recent Block Trades ListNonesymbol, limitNo
/eapi/v1/trades (GET)Recent Trades ListsymbollimitNo
/eapi/v1/index (GET)Index PriceunderlyingNoneNo
/eapi/v1/ping (GET)Test ConnectivityNoneNoneNo
/eapi/v1/countdownCancelAllHeartBeat (POST)Auto-Cancel All Open Orders (Kill-Switch) Heartbeat (TRADE)underlyingsrecvWindowYes
/eapi/v1/countdownCancelAll (GET)Get Auto-Cancel All Open Orders (Kill-Switch) Config (TRADE)Noneunderlying, recvWindowYes
/eapi/v1/countdownCancelAll (POST)Set Auto-Cancel All Open Orders (Kill-Switch) Config (TRADE)underlying, countdownTimerecvWindowYes
/eapi/v1/mmp (GET)Get Market Maker Protection Config (TRADE)Noneunderlying, recvWindowYes
/eapi/v1/mmpReset (POST)Reset Market Maker Protection Config (TRADE)Noneunderlying, recvWindowYes
/eapi/v1/mmpSet (POST)Set Market Maker Protection Config (TRADE)Noneunderlying, windowTimeInMilliseconds, frozenTimeInMilliseconds, qtyLimit, deltaLimit, recvWindowYes
/eapi/v1/userTrades (GET)Account Trade List (USER_DATA)Nonesymbol, fromId, startTime, endTime, limit, recvWindowYes
/eapi/v1/allOpenOrdersByUnderlying (DELETE)Cancel All Option Orders By Underlying (TRADE)underlyingrecvWindowYes
/eapi/v1/batchOrders (DELETE)Cancel Multiple Option Orders (TRADE)symbolorderIds, clientOrderIds, recvWindowYes
/eapi/v1/batchOrders (POST)Place Multiple Orders(TRADE)ordersrecvWindowYes
/eapi/v1/order (DELETE)Cancel Option Order (TRADE)symbolorderId, clientOrderId, recvWindowYes
/eapi/v1/order (POST)New Order (TRADE)symbol, side, type, quantityprice, timeInForce, reduceOnly, postOnly, newOrderRespType, clientOrderId, isMmp, recvWindowYes
/eapi/v1/order (GET)Query Single Order (TRADE)symbolorderId, clientOrderId, recvWindowYes
/eapi/v1/allOpenOrders (DELETE)Cancel all Option orders on specific symbol (TRADE)symbolrecvWindowYes
/eapi/v1/position (GET)Option Position Information (USER_DATA)Nonesymbol, recvWindowYes
/eapi/v1/openOrders (GET)Query Current Open Option Orders (USER_DATA)Nonesymbol, orderId, startTime, endTime, recvWindowYes
/eapi/v1/historyOrders (GET)Query Option Order History (TRADE)symbolorderId, startTime, endTime, limit, recvWindowYes
/eapi/v1/commission (GET)User Commission (USER_DATA)NonerecvWindowYes
/eapi/v1/exerciseRecord (GET)User Exercise Record (USER_DATA)Nonesymbol, startTime, endTime, limit, recvWindowYes
/eapi/v1/listenKey (DELETE)Close User Data Stream (USER_STREAM)NoneNoneNo
/eapi/v1/listenKey (PUT)Keepalive User Data Stream (USER_STREAM)NoneNoneNo
/eapi/v1/listenKey (POST)Start User Data Stream (USER_STREAM)NoneNoneNo

Parameters

Common Parameters

  • currency: Asset type, only support USDT as of now
  • recordId: Return the recordId and subsequent data, the latest data is returned by default, e.g 100000 (e.g., 1)
  • startTime: Start Time, e.g 1593511200000 (e.g., 1623319461670)
  • endTime: End Time, e.g 1593512200000 (e.g., 1641782889000)
  • limit: Number of result sets returned Default:100 Max:1000 (e.g., 100)
  • recvWindow: (e.g., 5000)
  • blockOrderMatchingKey:
  • underlying: underlying, e.g BTCUSDT
  • liquidity: Taker or Maker
  • legs: Max 1 (only single leg supported), list of legs parameters in JSON; example: eapi/v1/block/order/create?orders=[{"symbol":"BTC-210115-35000-C", "price":"100","quantity":"0.0002","side":"BUY","type":"LIMIT"}]
  • blockOrderMatchingKey: If specified, returns the specific block trade associated with the blockOrderMatchingKey
  • symbol: Option trading pair, e.g BTC-200730-9000-C
  • symbol: Option trading pair, e.g BTC-200730-9000-C
  • interval: Time interval
  • underlyingAsset: underlying asset, e.g ETH/BTC
  • expiration: expiration date, e.g 221225
  • underlying: Option underlying, e.g BTCUSDT
  • underlyings: Option Underlying Symbols, e.g BTCUSDT,ETHUSDT
  • countdownTime: Countdown time in milliseconds (ex. 1,000 for 1 second). 0 to disable the timer. Negative values (ex. -10000) are not accepted. Minimum acceptable value is 5,000
  • windowTimeInMilliseconds: MMP Interval in milliseconds; Range (0,5000]
  • frozenTimeInMilliseconds: MMP frozen time in milliseconds, if set to 0 manual reset is required
  • qtyLimit: quantity limit (e.g., 1.0)
  • deltaLimit: net delta limit (e.g., 1.0)
  • fromId: Trade id to fetch from. Default gets most recent trades, e.g 4611875134427365376 (e.g., 1)
  • orderIds: Order ID, e.g [4611875134427365377,4611875134427365378]
  • clientOrderIds: User-defined order ID, e.g ["my_id_1","my_id_2"]
  • orderId: Order ID, e.g 4611875134427365377 (e.g., 1)
  • clientOrderId: User-defined order ID, e.g 10000 (e.g., 1)
  • quantity: Order Quantity (e.g., 1.0)
  • price: Order Price (e.g., 1.0)
  • reduceOnly: Reduce Only(Default false) (e.g., false))
  • postOnly: Post Only(Default false) (e.g., false))
  • isMmp: is market maker protection order, true/false
  • orders: order list. Max 10 orders

Enums

  • side: BUY | SELL
  • type: LIMIT
  • timeInForce: GTC | IOC | FOK | GTX
  • newOrderRespType: ACK | RESULT

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
  • Testnet: BINANCE_TESTNET_API_KEY and BINANCE_TESTNET_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 -d= -f2-)
    SECRET_KEY=$(grep '^BINANCE_SECRET_KEY=' "$env_file" 2>/dev/null | cut -d= -f2-)
  else
    # Treat lines as raw values
    API_KEY="$line1"
    SECRET_KEY="$line2"
  fi
done

This file can be updated at any time without restarting OpenClaw, keys are read fresh on each invocation. Users can tell you the variables are now set or stored in a .env file, and you should re-read that file when they do.

  1. Inline file

Sending a file where the content is in the following format:

abc123...xyz
secret123...key
  • Never run printenv, env, export, or set without a specific variable name
  • Never run grep on env files without anchoring to a specific key ('^VARNAME=')
  • Never source a secrets file into the shell environment (source .env or . .env)
  • Only read credentials explicitly needed for the current task
  • Never echo or log raw credentials in output or replies
  • Never commit TOOLS.md to version control if it contains real credentials — add it to .gitignore

Never Disclose API Key and Secret

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.

Never Display Full Secrets

When showing credentials to users:

  • API Key: Show first 5 + last 4 characters: su1Qc...8akf
  • Secret Key: Always mask, show only last 5: ***...aws1

Example response when asked for credentials: Account: main API Key: su1Qc...8akf Secret: ***...aws1 Environment: Mainnet

Listing Accounts

When listing accounts, show names and environment only — never keys: Binance Accounts:

  • main (Mainnet/Testnet)
  • testnet-dev (Testnet)
  • futures-keys (Mainnet)

Transactions in Mainnet

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: your_mainnet_api_key
  • Secret: your_mainnet_secret
  • Testnet: false

testnet-dev

  • API Key: your_testnet_api_key
  • Secret: your_testnet_secret
  • Testnet: true

TOOLS.md Structure

## Binance Accounts

### main
- API Key: abc123...xyz
- Secret: secret123...key
- Testnet: false
- Description: Primary trading account

### testnet-dev
- API Key: test456...abc
- Secret: testsecret...xyz
- Testnet: true
- Description: Development/testing

### futures-keys
- API Key: futures789...def
- Secret: futuressecret...uvw
- Testnet: false
- Description: Futures trading account

Agent Behavior

  1. Credentials requested: Mask secrets (show last 5 chars only)
  2. Listing accounts: Show names and environment, never keys
  3. Account selection: Ask if ambiguous, default to main
  4. When doing a transaction in mainnet, confirm with user before by asking to write "CONFIRM" to proceed
  5. New credentials: Prompt for name, environment, signing mode
  6. When a request requires signing, if the request isn't an order and the API keys aren't described as mainnet or testnet keys, try to make request to the different base urls and see if it works, without asking the user. If it works, store the keys with the corresponding environment.

Adding New Accounts

When user provides new credentials by Inline file or message:

  • Ask for account name
  • Ask: Mainnet, Testnet
  • Store in TOOLS.md with masked display confirmation

Signing Requests

For trading endpoints that require a signature:

  1. Detect key type first, inspect the secret key format before signing.
  2. Build query string with all parameters, including the timestamp (Unix ms).
  3. Percent-encode the parameters using UTF-8 according to RFC 3986.
  4. Sign query string with secretKey using HMAC SHA256, RSA, or Ed25519 (depending on the account configuration).
  5. Append signature to query string.
  6. Include X-MBX-APIKEY header.

Otherwise, do not perform steps 4–6.

User Agent Header

Include User-Agent header with the following string: binance-derivatives-trading-options/1.1.0 (Skill)

See references/authentication.md for implementation details.

FAQ

What does the derivatives-trading-options skill do?

Binance Derivatives-trading-options request using the Binance API. Authentication requires API key and secret key. Supports testnet and mainnet.

How do I install derivatives-trading-options?

Run npx skills add https://github.com/binance/binance-skills-hub --skill derivatives-trading-options in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/derivatives-trading-options/ (personal) or .claude/skills/derivatives-trading-options/ (project).

Which AI agents can use derivatives-trading-options?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is derivatives-trading-options safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains derivatives-trading-options?

It is published by binance in binance/binance-skills-hub. It has 1,178 recorded installs.

More from binance/binance-skills-hub

View all →

square-post

binance/binance-skills-hub

Use when the user wants to publish new content to Binance Square — short text, multi-image posts (up to 4), long-form articles with an optional cover, or videos with an auto-generated cover frame. Trigger on direct phrasings like "post to Square", "publish to Binance Square", "发广场", "发布到广场", and on near-miss intents where the user clearly wants to share or publish content on Square even without naming the skill: "share this analysis on Square", "把这篇文章发出去", "发个动态", "把这个视频上传到广场", "publish my chart to Square as an article". Also use when the user provides media (images, video) plus a caption and asks to push it to Square, or asks to turn a draft into a Square article. Do not use for reading, searching, commenting, liking, editing, deleting, scheduling, or managing existing Square posts — this skill only creates new posts.

Media & Creative32.1K installs

binance-agentic-wallet

binance/binance-skills-hub

Use when the user mentions wallet connect/sign in/sign out, check balance, send/transfer tokens, swap/buy/sell tokens, DEX trade, limit/market order, cancel order, get a quote, transaction history, wallet settings, daily limit, slippage, MEV protection, supported chains, send to ENS domain, send to .eth or .bnb name, resolve domain name to address, domain-based transfer, send to .ai Agent ID name, Agent ID claim status, whether I claimed my .ai space id / Agent ID, get my .ai domain, prediction market, place prediction, redeem winnings, prediction PnL, x402 payment, HTTP 402 Payment Required, check/revoke/manage token approvals, DeFi protocols, staking, liquidity pool, LP, yield farming, deposit, redeem, stake, unstake, claim rewards/fees, health factor, APY, TVL, sign external transaction, contract call, sign message, EIP-712, developer mode, speed up/cancel/replace transaction, pending/stuck transactions, gas price, gas fee, network fee, fee levels, gas tiers, or any on-chain wallet

AI & Agents19.6K installs

trading-signal

binance/binance-skills-hub

Per-trade smart-money signals — each result is a discrete buy or sell event from a tracked smart-money wallet, with trigger price, current price, max gain since trigger, and exit rate. BSC and Solana only. Use for: "smart money buy signal on $X", "any whale just bought $Y", "alpha signals in the last hour", "copy-trade-worthy signals", "trigger price and max gain on these trades", "on-chain trading signals from smart money".

Business & Finance10.2K installs

crypto-market-rank

binance/binance-skills-hub

Crypto market leaderboards — ranked aggregate feeds across the whole market: social-hype/sentiment rank, trending / top-search / Binance Alpha / tokenized-stocks rank, smart-money net-inflow rank (which tokens received the most inflow), top meme tokens by breakout score on Pulse launchpad, top trader PnL leaderboard (ALL / KOL). Use whenever the user wants a ranked list of tokens or addresses by some metric — phrases like "trending tokens", "top N by hype", "leaderboard", "rank by X", "biggest inflows", "top traders this week".

Business & Finance9.5K installs

query-token-info

binance/binance-skills-hub

Per-token details for a specific token identified by keyword, symbol, or contract address: (1) search — find tokens by keyword/symbol/contract; (2) meta — static info: name, symbol, logo, social links, creator, official website; (3) dynamic — real-time market data: price, 24h change, volume, holder count, liquidity; (4) kline — OHLCV candlestick data for technical analysis. Use for: "price of $X", "search for token Y", "kline chart for $Z", "who created $W", "social links for $V", "holder count of $U", "candlestick data", "find the contract address of ".

Business & Finance8.3K installs

query-token-audit

binance/binance-skills-hub

Query token security audit to detect scams, honeypots, and malicious contracts before trading. Returns comprehensive security analysis including contract risks, trading risks, and scam detection. Use when users ask "is this token safe?", "check token security", "audit token", or before any swap.

Security8.3K installs

Popular business & finance skills

View category →

sales-enablement

coreyhaines31/marketingskills

When the user wants to create sales collateral, pitch decks, one-pagers, objection handling docs, or demo scripts. Also use when the user mentions 'sales deck,' 'pitch deck,' 'one-pager,' 'leave-behind,' 'objection handling,' 'deal-specific ROI analysis,' 'demo script,' 'talk track,' 'sales playbook,' 'proposal template,' 'buyer persona card,' 'battle card,' 'battlecard,' 'competitive one-pager,' 'win-loss analysis,' 'why are we losing deals,' 'loss reasons,' 'how do I respond to this objection,' 'prospect just said,' 'help my sales team,' 'sales materials,' or 'what should I give my sales reps,' 'cold call script,' or 'voicemail script.' Use this for any document or asset that helps a sales team close deals. For public competitor comparison pages, see competitors. For running buyer interviews or churn research, see customer-research. For marketing website copy, see copywriting. For cold outreach emails, see cold-email. For the offer being sold (bonuses, guarantees, pricing structure),

Business & Finance119.5K installs

revops

coreyhaines31/marketingskills

When the user wants help with revenue operations, lead lifecycle management, or marketing-to-sales handoff processes. Also use when the user mentions 'RevOps,' 'revenue operations,' 'lead scoring,' 'outbound pipeline stages,' 'lead routing,' 'MQL,' 'SQL,' 'pipeline stages,' 'deal desk,' 'CRM automation,' 'marketing-to-sales handoff,' 'data hygiene,' 'leads aren't getting to sales,' 'pipeline management,' 'lead qualification,' or 'when should marketing hand off to sales.' Use this for anything involving the systems and processes that connect marketing to revenue. For cold outreach emails, see cold-email. For email drip campaigns, see emails. For pricing decisions, see pricing.

Business & Finance114.1K installs

sales-funnel-blueprint

autonnel/autonnel-skills

Turn an offer into a concrete multi-step sales funnel spec - page-by-page structure, price ladder, copy outline and the metrics each step must hit. Use when asked to build a sales funnel, marketing funnel, landing page flow, lead magnet funnel, webinar funnel, tripwire or VSL funnel, when planning a product launch page flow, or when someone asks "what pages do I need" for selling something online.

Business & Finance104.5K installs

pricing

coreyhaines31/marketingskills

When the user wants help with pricing decisions, packaging, or monetization strategy. Also use when the user mentions 'pricing,' 'pricing tiers,' 'freemium,' 'free trial,' 'packaging,' 'price increase,' 'value metric,' 'Van Westendorp,' 'willingness to pay,' 'monetization,' 'how much should I charge,' 'my pricing is wrong,' 'pricing page,' 'annual vs monthly,' 'per seat pricing,' 'should I offer a free plan,' 'pricing page teardown,' 'pricing page audit,' 'is my pricing page AI-readable,' or 'can AI read my pricing.' Use this whenever someone is figuring out what to charge, how to structure their plans, or wants to audit a pricing page (for humans and for the AI agents that shortlist tools). For in-app upgrade screens, see paywalls. For offer construction (bonuses, guarantees, value framing, naming) on services/courses/coaching/high-ticket B2B, see offers.

Business & Finance80K installs

cross-border-ecommerce

nexscope-ai/ecommerce-skills

Cross-border e-commerce expansion advisor. Scores target markets on 8 weighted dimensions (market size, ecommerce penetration, competition, regulatory complexity, logistics infrastructure, payment ecosystem, cultural distance, IP protection), compares 5 fulfillment models with cost and transit data, provides country-by-country tax/duty compliance guides (EU VAT/IOSS, UK VAT, US sales tax, CA GST, AU GST, JP consumption tax), maps local payment preferences by market, and builds a phased expansion roadmap. No API key required.

Business & Finance62.9K installs

pricing-strategy

coreyhaines31/marketingskills

When the user wants help with pricing decisions, packaging, or monetization strategy. Also use when the user mentions 'pricing,' 'pricing tiers,' 'freemium,' 'free trial,' 'packaging,' 'price increase,' 'value metric,' 'Van Westendorp,' 'willingness to pay,' 'monetization,' 'how much should I charge,' 'my pricing is wrong,' 'pricing page,' 'annual vs monthly,' 'per seat pricing,' or 'should I offer a free plan.' Use this whenever someone is figuring out what to charge or how to structure their plans. For in-app upgrade screens, see paywall-upgrade-cro.

Business & Finance61.2K installs