返回 Skill 列表
extension
分类: 开发与工程无需 API Key

Crypto Exchange

LightningEX API加密货币兑换服务,支持自然语言对话、命令行及网页界面多模式交互。当用户需要...时使用。

person作者: zhutxhubclawhub

Crypto Exchange Skill (LightningEX)

A versatile cryptocurrency exchange service powered by LightningEX API with three interaction modes:

  • Chat Mode: Natural language conversation for swaps and queries
  • CLI Mode: Command-line interface for scripting and automation
  • UI Mode: Web-based DeFi interface for visual trading

Quick Start

Chat Mode (Default)

Simply talk to perform exchanges:

  • "Swap 100 USDT to ETH"
  • "What's the exchange rate for BTC to USDT?"
  • "Show me supported tokens"
  • "Check order status I1Y0EFP31Rwu"

CLI Mode

Run the CLI:

# Navigate to skill directory
cd /path/to/crypto-exchange

# Start interactive wizard (default)
./crypto-exchange

CLI Commands:

# Start interactive wizard
./crypto-exchange

# List supported currencies
./crypto-exchange currencies

# List supported currency-network pairs
./crypto-exchange pair-list --send USDT --receive USDT
./crypto-exchange pair-list --send USDT --receive USDT --send-network TRX

# Get pair info
./crypto-exchange pair --send USDT --receive USDT --send-network TRX --receive-network BSC

# Check exchange rate
./crypto-exchange rate --send USDT --receive USDT --send-network TRX --receive-network BSC --amount 100

# Validate address
./crypto-exchange validate --currency USDT --network BSC --address 0x...

# Check order status
./crypto-exchange status --id I1Y0EFP31Rwu

# Monitor order until complete
./crypto-exchange monitor --id I1Y0EFP31Rwu

UI Mode

# Launch web UI (default port 8080, auto-assign if occupied)
./crypto-exchange ui

Then open http://localhost:8080 (or the displayed port) in your browser for the DeFi-style trading interface.