okx-dex-ws

okx-dex-ws is a skill for Claude Code, Codex from nirholas/three.ws. It costs 150 tokens per session (1,598 once invoked), scanned A, original, Apache-2.0.

A tool for managing real-time WebSocket connections to decentralized-exchange data. WebSockets are long-lived connections that let a program receive new events as they happen instead of repeatedly requesting updates.

In plain words
What is it for?
Use it to start and poll live data sessions from the command line, stop sessions, inspect available channels, or build a real-time monitoring bot in Python, Node, or Rust.
Why use it?
It provides a way to start, check, and stop live data sessions without building all the connection handling yourself. It also supports custom clients when you need your own program logic.

Skill for Claude CodeCodex

Part of the three-ws-core plugin — 42 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/nirholas/three.ws/okx-dex-ws
Any agent
npx skills add nirholas/three.ws --skill okx-dex-ws
Clone the repo
git clone --depth 1 https://github.com/nirholas/three.ws

Made for: Claude Code, Codex.

Or install three-ws-core, the plugin that ships this one along with the rest of its 42 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for okx-dex-ws

README.md
[![agentmods](https://agentmods.dev/badge/skills/nirholas/three.ws/okx-dex-ws.svg)](https://agentmods.dev/skills/nirholas/three.ws/okx-dex-ws)
Your own site
<a href="https://agentmods.dev/skills/nirholas/three.ws/okx-dex-ws"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/okx-dex-ws.svg" alt="Measured on agentmods" height="20"></a>
Per session 150 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,598 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00150 $0.01598
Opus 5 $0.00075 $0.00799
Sonnet 5 $0.00030 $0.00320
Haiku 4.5 $0.00015 $0.00160

Measured 5d ago against content hash 3a26b509ab24, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

okx-dex-ws scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/okx-dex-ws/SKILL.md · 140 lines

How it starts

The opening of the file, as written. The whole thing — 140 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Onchain OS DEX WebSocket — Unified Skill

Two ways to consume real-time DEX data:

  1. CLI (onchainos ws) — start a background session, poll events incrementally. Best for monitoring and agent-driven workflows.
  2. 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.

When one of the following commands is used, show the related workflow hint after displaying results:

Command Workflow File
ws start, ws poll, ws stop Wallet Monitor (WebSocket) ~/.onchainos/workflows/wallet-monitor-ws.md

Hint format: "You can also try out our Wallet Monitor (WebSocket) workflow for more comprehensive results. Would you like to try it?"

Approach 1: CLI (onchainos ws)

Discover Channels

onchainos ws channels                          # list all 9 supported channels
onchainos ws channel-info --channel <name>     # detailed info + example for a channel

Start / Poll / Stop

onchainos ws start --channel <channel> [params]   # start background session
onchainos ws poll --id <ID> [--channel <ch>]       # pull new events
onchainos ws list                                  # list sessions
onchainos ws stop [--id <ID>]                      # stop session(s)

Channel Quick Reference

Channel Group Pattern Required Params
kol_smartmoney-tracker-activity signal global (none)
address-tracker-activity signal per-wallet --wallet-addresses
dex-market-new-signal-openapi signal per-chain --chain-index
price market per-token --token-pair
dex-token-candle{period} market per-token --token-pair
price-info token per-token --token-pair
trades token per-token --token-pair
dex-market-memepump-new-token-openapi trenches per-chain --chain-index
dex-market-memepump-update-metrics-openapi trenches per-chain --chain-index

Read the full file on GitHub · 140 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 140 lines · 150 tokens per session scan A 3a26b509ab24

Subscribe to this mod's changes

okx-dex-ws is a skill published in the GitHub repository nirholas/three.ws (110 stars, last pushed today), licensed Apache-2.0. It adds 150 tokens to every session and 1,598 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

blockchain-cross-chain

Cross-chain protocols, IBC, LayerZero, Wormhole, Axelar, CCIP, bridges, atomic composability, shared sequencer, cross-chain message passing. Covers trust models (light clients, external validators, ZK proofs), bridge security, token representation (canonical, wrapped, native), relayer economics, and cross-chain…

j4flmao/agent-skills · 108 tokens

blockchain-testing

Use this skill when asked about testing smart contracts, Foundry tests, Hardhat tests, fuzz testing, invariant testing, property-based testing, formal verification, audit preparation, integration testing for dApps, and blockchain testing patterns. Covers Foundry cheatcodes, Echidna fuzzing, Certora verification…

j4flmao/agent-skills · 117 tokens

xpr-network-dev

XPR Network (formerly Proton) blockchain development - proton-tsc smart contracts, @proton CLI and web SDK, RPC and Hyperion queries, DeFi (MetalX, Alcor, LOAN), NFTs, the XPR Agents job board, node and Hyperion operations. Use for anything mentioning XPR, Proton, or @proton packages.

XPRNetwork/xpr-network-dev-skill · 77 tokens

blockchain-management

Use this skill when asked about blockchain project management, DAO governance, multi-sig operations, treasury management, tokenomics design, and web3 project methodology. Languages: Solidity, TypeScript, Python. Covers DAO governance frameworks (Compound Governor, Aave, Snapshot, Tally), multi-sig wallet operations…

j4flmao/agent-skills · 207 tokens

write-contracts

Generates secure Aptos Move V2 smart contracts with Object model, Digital Asset integration, security patterns, and storage type guidance. Includes comprehensive storage decision framework for optimal data structure selection. Triggers on: 'write contract', 'create NFT collection', 'build marketplace', 'implement…

aptos-labs/aptos-agent-skills · 104 tokens

modernize-move

Detects and modernizes outdated Move V1 syntax, patterns, and APIs to Move V2+. Use when upgrading legacy contracts, migrating to modern syntax, or converting old patterns to current best practices. NOT for writing new contracts (use write-contracts) or fixing bugs.

aptos-labs/aptos-agent-skills · 60 tokens