/install binance-spot-websocket-skill
Binance Spot WebSocket Skill
Use this skill to run Binance Spot public market streams through uxc subscribe raw WebSocket mode.
Reuse the uxc skill for generic runtime behavior, sink handling, and event-envelope parsing.
Prerequisites
uxcis installed and available inPATH.- Network access to Binance Spot public WebSocket streams.
- A writable sink path for NDJSON output.
Scope
This skill covers Binance Spot public market streams such as:
- trade events
- aggregate trade events
- book ticker updates
- ticker updates
- depth updates
This skill does not cover:
- Binance Spot REST/OpenAPI workflows
- private user data streams
- signed WebSocket API methods
- margin, wallet, futures, or other non-Spot product families
Endpoint Model
Binance Spot public market streams use raw WebSocket endpoints.
- preferred base:
wss://stream.binance.com:443 - raw stream form:
wss://stream.binance.com:443/ws/\x3CstreamName> - combined stream form:
wss://stream.binance.com:443/stream?streams=\x3Cstream1>/\x3Cstream2>
Important:
- stream names are lowercase
- connections are valid for up to 24 hours
- raw stream payloads arrive directly as JSON objects
- combined stream payloads arrive as
{"stream":"...","data":{...}}
Core Workflow
- Start a subscription directly with
uxc subscribe start:uxc subscribe start wss://stream.binance.com:443/ws/btcusdt@trade --transport websocket --sink file:$HOME/.uxc/subscriptions/binance-btcusdt-trade.ndjson
- Inspect the sink output:
tail -n 5 $HOME/.uxc/subscriptions/binance-btcusdt-trade.ndjson
- Query runtime status:
uxc subscribe listuxc subscribe status \x3Cjob_id>
- Stop the job when finished:
uxc subscribe stop \x3Cjob_id>
Common Stream Targets
- raw trade stream:
btcusdt@trade
- aggregate trade stream:
btcusdt@aggTrade
- book ticker stream:
btcusdt@bookTicker
- mini ticker stream:
btcusdt@miniTicker
- rolling ticker stream:
btcusdt@ticker
- depth stream:
btcusdt@depth
Runtime Validation
The following live raw WebSocket flow was validated successfully through uxc:
- endpoint:
wss://stream.binance.com:443/ws/btcusdt@trade - transport:
--transport websocket - sink output:
open- repeated
dataevents with Binancetradepayloads closedafter stop
Observed event fields included:
e: "trade"s: "BTCUSDT"pqt
Guardrails
- Keep automation on the JSON output envelope; do not use
--text. - Parse stable event fields first:
event_kind,data,meta. - Use
wss://stream.binance.com:443as the default public stream host; it validated more reliably than:9443in recent runtime checks. - Stream names must be lowercase.
- This skill is read-only. Do not describe it as account, order, or signed WebSocket support.
- Combined streams are useful when one job should emit multiple markets into one sink, but downstream parsing must handle
streamwrappers. uxc subscribe start ... --transport websocketis the intended execution path for this skill;uxc linkis not the main interface because stream identity is encoded directly in the endpoint path.
References
- Usage patterns:
references/usage-patterns.md
- Binance Spot WebSocket Streams:
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install binance-spot-websocket-skill - 安装完成后,直接呼叫该 Skill 的名称或使用
/binance-spot-websocket-skill触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Binance Spot WebSocket Skill 是什么?
Subscribe to Binance Spot public market streams through UXC raw WebSocket support for trades, book ticker, depth, and ticker events with stream-specific guar... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 209 次。
如何安装 Binance Spot WebSocket Skill?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install binance-spot-websocket-skill」即可一键安装,无需额外配置。
Binance Spot WebSocket Skill 是免费的吗?
是的,Binance Spot WebSocket Skill 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Binance Spot WebSocket Skill 支持哪些平台?
Binance Spot WebSocket Skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Binance Spot WebSocket Skill?
由 jolestar(@jolestar)开发并维护,当前版本 v1.0.0。