XT Exchange CLI for Openclaw

A progressive conversational CLI tool for XT.COM exchange that handles spot and futures trading, market data, and account management.

realm520
v1.0.0
Feb 28, 2026
0
1.1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install xt-exchange

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install xt-exchange using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is XT Exchange CLI?

The XT Exchange skill provides a comprehensive command-line interface for interacting with the XT.COM cryptocurrency exchange. It is designed to facilitate both spot and futures trading through a guided, progressive disclosure workflow that ensures accuracy and safety. By leveraging this tool within your Openclaw Skills collection, you can monitor market depth, check non-zero balances, and execute complex orders without leaving your terminal environment.

This skill bridges the gap between raw API interactions and human-centric trading by providing formatted tables for order history and bolded price highlights for better readability. It supports a wide range of operations from simple ticker lookups to advanced multi-account transfers and secure asset withdrawals.

XT Exchange CLI Use Cases

  • Executing spot and futures trades with manual confirmation for safety.
  • Monitoring real-time market data, including order books and 24h tickers.
  • Managing account assets across different sub-accounts like Margin and Futures.
  • Automating the withdrawal process to external blockchain addresses.
  • Reviewing trade history and active orders in a clean, tabular format.

How XT Exchange CLI Works

  1. The user initiates the skill, and the system immediately prompts for the desired trading mode: Spot or Futures.
  2. The skill validates the presence of XT_ACCESS_KEY and XT_SECRET_KEY via environment variables or a local credentials file.
  3. Based on the user's choice, the agent enters a progressive Q&A flow to collect necessary parameters like trading pairs, price, and quantity.
  4. For any sensitive transaction (buying, selling, or withdrawing), the skill presents a summary of all parameters for user verification.
  5. Upon receiving a positive confirmation (e.g., "yes"), the underlying Python scripts communicate with the XT.COM API to execute the command.
  6. The result is parsed and displayed to the user, filtering out noise like zero-balances or raw JSON data.

XT Exchange CLI Setup

To use this skill, ensure you have Python 3 installed and the required library:

pip3 install requests -q

Configure your API credentials by setting environment variables:

export XT_ACCESS_KEY="your_access_key"
export XT_SECRET_KEY="your_secret_key"

Alternatively, you can save your credentials to ~/.xt-exchange/credentials.json for persistent access across Openclaw Skills sessions.

XT Exchange CLI Data Schema & Taxonomy

The skill utilizes a structured script-based organization to separate concerns between different market types:

Script Scope Functionality
xt_spot.py Spot Market Market tickers, balance, spot orders, transfers, withdrawals
xt_futures.py Futures Market Account equity, positions, long/short orders, funding rates

All output data is transformed from raw JSON into human-readable Markdown tables and bolded values for financial metrics.

XT Exchange CLI Advanced Features

  • Progressive conversational flow that limits follow-up questions to a maximum of 2 rounds.
  • Multi-account support for transferring funds between SPOT, LEVER, FUTURES_U, and FINANCE accounts.
  • Enhanced safety protocols for withdrawals, including mandatory display of destination addresses and network chains.
  • Support for both market and limit orders across all trading pairs.
  • Capability to fetch historical k-lines and market depth with customizable limits for technical analysis within Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*