360 Secure SkillHub
360 安全技能中心

Crypto Exchange

调用 LightningEX 交易所接口,支持查询币种及其网络组合、获取兑换汇率、校验收款地址、发起兑换并监控订单状态;提供聊天、CLI 命令行和本地网页界面三种交互方式,附带网页样式与订单展示资源。

zhutx
zhutx
热度 33.82
最近更新 2026-03-21 05:16:46
分类:自动化依赖:代码执行 / 第三方 API应用场景:财务 / 工作流 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add crypto-exchange
Metadata
name
crypto-exchange
description
Lightning-fast crypto swaps. 240+ coins, best rates, done in minutes. Chat, CLI, or web — however you prefer.

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)
node exchange.js

CLI Commands:

# Start interactive wizard
node exchange.js

# List supported currencies
node exchange.js currencies

# List supported currency-network pairs
node exchange.js pair-list --send USDT --receive USDT
node exchange.js pair-list --send USDT --receive USDT --send-network TRX

# Get pair info
node exchange.js pair --send USDT --receive USDT --send-network TRX --receive-network BSC

# Check exchange rate
node exchange.js rate --send USDT --receive USDT --send-network TRX --receive-network BSC --amount 100

# Validate address
node exchange.js validate --currency USDT --network BSC --address 0x...

# Check order status
node exchange.js status --id I1Y0EFP31Rwu

# Monitor order until complete
node exchange.js monitor --id I1Y0EFP31Rwu

UI Mode

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

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