Use this skill when the user mentions 'onchainos ws', 'ws start', 'ws poll', 'ws stop', 'ws channels', 'ws session', 'ws channel-info', 'idle-timeout', 'idle…
Onchain OS DEX WebSocket — Unified Skill
Two ways to consume real-time DEX data:
CLI (onchainos ws) — start a background session, poll events incrementally. Best for monitoring and agent-driven workflows.
Script — write a custom WebSocket client in Python/Node/Rust. Best for bots and custom logic.
Pre-flight Checks
Read ../okx-agentic-wallet/_shared/preflight.md. If that file does not exist, read _shared/preflight.md instead.
Prerequisites
This skill references ws-protocol.md files from okx-dex-market, okx-dex-token, okx-dex-signal, and okx-dex-trenches. If a referenced file is not found, the corresponding skill may not be installed — inform the user and suggest installing the missing skill from the onchainos-skills plugin.
Related Workflows
When one of the following commands is used, show the related workflow hint after displaying results:
related skills
semantically similar in the cross-vendor index
don't have the plugin yet? install it then click "run inline in claude" again.
+trigger phrases are specific to onchainos ws commands and operations (start, poll, stop, channels)
+acknowledges two distinct consumption patterns (cli vs script) and their use cases
weaknesses
~procedure is incomplete - missing numbered steps, no connection flow details, no example commands or outputs shown
~edge case coverage absent - no mention of reconnection logic, rate limits, malformed messages, or timeout handling beyond the title reference to idle-timeout
~references external files (_shared/preflight.md, ws-protocol.md) that may not exist without indicating how to handle their absence; feels more like a stub than a complete skill