okx-dex-ws

Manage WebSocket sessions and subscribe to OKX DEX data channels.

3|2|Updated May 6, 2020
One-click install
npx skills add https://github.com/Dargon789/coinbase-ethereum-smartcontracts --skill okx-dex-ws-dargon789
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: okx-dex-ws
Source: https://github.com/Dargon789/coinbase-ethereum-smartcontracts/tree/main/.agents/skills/okx-dex-ws
Command: npx skills add https://github.com/Dargon789/coinbase-ethereum-smartcontracts --skill okx-dex-ws-dargon789

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides the capability to manage WebSocket sessions and consume real-time DEX data, solving the need for up-to-date market and trade information without latency.

Core Features & Use Cases

  • WebSocket Session Management: Start, poll, stop, and list WebSocket sessions.
  • Channel Coverage: Access all 9 DEX WebSocket channels for price, market, trades, signals, and more.
  • Custom Scripting: Supports custom WebSocket clients in Python, Node, or Rust.
  • Use Case: For example, use this Skill to set up WebSocket connections for real-time price updates and trade alerts in a bot application.

Quick Start

To start a WebSocket session for price updates, use the command: onchainos ws start --channel price --token-pair 1:0xdac17f958d2ee523a2206206994597c13d831ec7.

Frequently Asked Questions about okx-dex-ws

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage WebSocket connections for real-time DEX data streams?

To manage WebSocket connections for real-time DEX data streams, you can start, poll, stop, and list WebSocket sessions directly. This handles the complete session lifecycle to ensure low-latency market updates for automated trading bots.

How do I subscribe to OKX DEX price channels using WebSocket?

You can subscribe to OKX DEX price channels using WebSocket by starting a session with a command like `onchainos ws start --channel price --token-pair 1:0xdac17f958d2ee523a2206206994597c13d831ec7`, which immediately streams real-time token pair updates.

Can I write custom WebSocket clients in Python or Rust for DEX market monitoring?

Yes, you can write custom WebSocket clients in Python, Node, or Rust for DEX market monitoring. The Skill supports custom scripting to consume low-latency price, trade, and market data across all 9 available WebSocket channels.

What DEX WebSocket channels are available for real-time trading data?

There are 9 DEX WebSocket channels available for real-time trading data, covering price updates, market metrics, trades, and trading signals. This broad channel coverage ensures comprehensive market monitoring without latency.

Does this Skill handle the full WebSocket session lifecycle for automated trading bots?

Yes, this Skill handles the full WebSocket session lifecycle for automated trading bots, managing everything from initial connection and channel subscription to polling and graceful shutdown, ensuring continuous low-latency data streams.

Why use WebSocket sessions instead of REST polling for low-latency DEX market data?

WebSocket sessions provide low-latency DEX market data by maintaining persistent connections, eliminating the overhead and delay of repeated REST polling. This approach ensures automated bots receive instant price and trade updates.