mexc-spot-websocket
MEXC Spot WebSocket workflows for public streams, protobuf handling, depth maintenance, listen keys, and private streams without exposing API keys.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-13
- Stars
- ★ 81
- Forks
- 17
01 前言 Front Matter
- name
- mexc-spot-websocket
- description
- MEXC Spot WebSocket workflows for public streams, protobuf handling, depth maintenance, listen keys, and private streams without exposing API keys.
02 资源文件 6
- 参考文档agents/openai.yaml140 B
- 许可证LICENSE11.1 KB
- 参考文档references/streams.md1.6 KB
- 脚本scripts/lookup.py2.2 KB
- 参考文档SOURCE.md410 B
- 参考文档TRUST.auto.yaml2.2 KB
03 SKILL.md 正文
MEXC Spot WebSocket
Workflow
Use this skill for streaming, not one-off REST queries. Open references/streams.md only for exact stream names and lifecycle details.
- Use public REST endpoints for snapshots and WebSocket streams for increments.
- Use
wss://wbs-api.mexc.com/wsfor public Spot streams. - For private streams, use
/mexc-spot-restto create a signed listen key, then connect to/ws?listenKey=.... - Do not print or persist listen keys except in local process memory needed for the connection.
- Reconnect before the 24-hour connection limit and extend listen keys every 30 minutes.
- Decode current public pushes with MEXC protobuf files.
- Use REST for initial balances/order books; private streams and depth streams are updates after snapshots.
- For balance/account snapshots, use
/mexc-spot-restquick commands and the REST skill lookup helper before opening REST or stream references.
Safety Rules
- Do not request API keys in chat. Use the Spot REST skill for listen-key creation.
- Treat listen keys as temporary secrets.
- Implement exponential backoff on reconnects.
- Respect 100 messages per second and 30 streams per connection.
- For local order books, restart from a REST snapshot when sequence versions gap.
Verification
Before production code, verify subscription shape, protobuf channel suffixes, depth sequence continuity, and listen-key extension.
04 同仓库更多 Skills
recipe-performance
Diagnose a specific MetaMask user flow's real-app performance and Sentry critical-user-flow telemetry with deterministic mm-harness recipes. Use for CUF boundaries, cold/warm/background-resume behavior, latency regressions, lifecycle tags, duplicate or blocking network requests, long tasks, layout/paint cost, screen redraws, React rerenders, or browser trace analysis where tests alone cannot prove the real app.
mexc-spot-rest
MEXC Spot REST workflows for public data, signed account requests, orders, wallet/admin actions, and secure signing without exposing API keys.
mexc-futures-websocket
MEXC Futures WebSocket workflows for public streams, private account/order/position streams, ping/pong, subscriptions, and depth maintenance.
0xklen-version-and-refresh-sanctions-lists
暂无简介
verify-tests-cover-changed-lines
Use when a PR adds code that the existing suite may not exercise. Measures patch coverage — the share of newly changed lines hit by tests — before approving.
test-stablecoin-redemption-under-stress
Use when you must know whether a stablecoin will actually redeem to fiat when it matters. Walks the issuer's redemption path, its gates and limits, and rehearses it before a stress event.