360 Secure SkillHub
360 安全技能中心

Crypto Swap

通过 LightningEX 服务完成加密货币兑换:对话模式用自然语言查询币种、网络、汇率并下单、查订单;CLI 模式提供 currencies、pair-list、pair、rate、status、monitor 等命令;UI 模式启动本地网页界面。材料称支持跨链兑换与多种币种。

yoyoemily
yoyoemily
热度 58.35
最近更新 2026-05-11 17:34:40
分类:自动化依赖:代码执行 / 第三方 API / 联网浏览搜索应用场景:财务 / 自动化脚本 / API 集成 / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add crypto-swap
Metadata
name
crypto-swap
description
Lightning-fast crypto swaps. 240+ coins, best rates, done in minutes. Chat, CLI, or web — however you prefer.
metadata
{"openclaw":{"requires":{"bins":["crypto-swap"]},"install":[{"id":"node","kind":"node","package":"crypto-swap","bins":["crypto-swap"],"label":"Install Crypto Swap CLI (npm)"}]}}

Crypto Swap Skill (LightningEX)

A versatile cryptocurrency swap 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:

Exchange & Rates:

  • "Swap 100 USDT to ETH"
  • "What's the exchange rate for BTC to USDT?"
  • "Exchange rate for 100 USDT (TRC20) to USDT (BEP20)"

Explore:

  • "Show me supported tokens"
  • "List all currencies"
  • "What networks does USDT support?"

Order Management:

  • "Check order status I1Y0××××"
  • "Monitor order I1Y0××××"
  • "Where is my order?"

Cross-chain Swaps:

  • "Swap USDT from Tron to BSC"
  • "Bridge ETH from Ethereum to Arbitrum"
  • "Convert BTC to SOL"

CLI Mode

Prerequisite: Install the CLI tool globally:

npm install -g crypto-swap

Run the CLI:

# Start interactive wizard (default)
crypto-swap

# Show all available commands
crypto-swap --help

# List supported currencies
crypto-swap currencies

# List supported currency-network pairs
crypto-swap pair-list --send USDT --receive USDT
crypto-swap pair-list --send USDT --receive USDT --send-network TRX

# Get pair info
crypto-swap pair --send USDT --receive USDT --send-network TRX --receive-network BSC

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

# Check order status
crypto-swap status --id I1Y0...

# Monitor order until complete
crypto-swap monitor --id I1Y0...

UI Mode

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

Files

This skill contains the following files:

  • swap.js - Main CLI script (~1000 lines, open source)
  • package.json - Package metadata
  • SKILL.md - This documentation
  • LICENSE - MIT License
  • README.md - Package readme
  • assets/ - Web UI assets (HTML/CSS/JS)

Author: @yoyoemily
Repository: https://github.com/yoyoemily/crypto-swap
License: MIT