AGENT SKILL

binance

Use binance-cli for Binance Spot, Futures (USD-S), and Convert. Requires auth.

License 许可
MIT
最近更新
2026-11-13
Stars
★ 81
Forks
17

01 前言 Front Matter

name
binance
license
MIT
metadata
{ "author": "Binance", "version": "2.1.0", "openclaw": { "install": [ { "kind": "shell", "label": "Install binance-cli", "script": "if npm list -g @binance/binance-cli --depth=0 >/dev/null 2>&1; then\n VERSION=\"$(binance-cli --version 2>/dev/null | grep -Eo '[0-9]+\\.[0-9]+\\.[0-9]+' | head -n1 || true)\"\n MAJOR=\"$(echo \"$VERSION\" | cut -d. -f1)\"\n\n if [ \"$MAJOR\" = \"1\" ]; then\n npm uninstall -g @binance/binance-cli\n fi\nfi\n\ncurl --proto '=https' --tlsv1.2 -LsSf \\\n https://github.com/binance/binance-cli/releases/latest/download/binance-cli-installer.sh \\\n | sh\n" } ], "requires": { "bins": [ "binance-cli" ] } } }
description
Use binance-cli for Binance Spot, Futures (USD-S), and Convert. Requires auth.

02 资源文件 40

03 SKILL.md 正文

Binance

binance-cli setup

Before using binance-cli:

  1. If global npm package @binance/binance-cli exists and binance-cli --version is < 2.0.0, uninstall it:
npm uninstall -g @binance/binance-cli
  1. Install the latest release:
curl --proto '=https' --tlsv1.2 -LsSf \
  https://github.com/binance/binance-cli/releases/latest/download/binance-cli-installer.sh \
  | sh
  1. Verify:
binance-cli --version

PREREQUISITE: Read auth.md for auth, global flags, and security rules.

Helper Commands

Command Description
algo Algo Trading
alpha Alpha
c2c C2C
cms CMS Streams
convert Convert
copy-trading Copy Trading
crypto-loan Crypto Loan
derivatives-options Derivatives Trading (Options)
derivatives-portfolio-margin Derivatives Trading (Portfolio Margin)
derivatives-portfolio-margin-streams Derivatives Trading Streams (Portfolio Margin)
derivatives-portfolio-margin-pro Derivatives Trading (Portfolio Margin Pro)
derivatives-portfolio-margin-pro-streams Derivatives Trading Streams (Portfolio Margin Pro)
dual-investment Dual Investment
fiat Fiat
futures-coin Derivatives Trading (COIN-M Futures)
futures-coin-streams Derivatives Trading Streams (COIN-M Futures)
futures-usds Derivatives Trading (USDS-M Futures)
futures-usds-streams Derivatives Trading Streams (USDS-M Futures)
gift-card Gift Card
margin-trading Margin Trading
margin-trading-streams Margin Trading Streams
mining Mining
pay Pay
rebate Rebate
simple-earn Simple Earn
spot Spot Trading
spot-streams Spot Trading Streams
staking Staking
stocks Stocks
stocks-streams Stocks Streams
sub-account Sub Account
vip-loan VIP Loan
wallet Wallet

Notes

  • ⚠️ Prod transactions — always ask user to type CONFIRM before executing.
  • Use --help to get the list of commands and parameters.
  • Use the output from both stdout and stderr.
  • Append --profile <name> to any command to use a non-active profile.
  • All authenticated endpoints accept optional --recvWindow <ms> (max 60 000).
  • Timestamps (startTime, endTime) are Unix ms.
  • For endpoints not listed in the skill, use binance-cli request (GET|POST|PUT...) <url> [--signed]. Any Parameters can be added to the request (e.g: --param1 value --param2 value).

04 同仓库更多 Skills