A Stock Analysis
A股实时行情与分时量能分析
Swap or trade tokens on Base network. Use when you or the user want to trade, swap, exchange, buy, sell, or convert between tokens like USDC, ETH, and WETH. Covers phrases like "buy ETH", "sell ETH for USDC", "convert USDC to ETH", "get some ETH".
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
SkillHub CLI
skillhub install 0xrag/trade打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。
将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。
Use the npx awal@latest trade command to swap tokens on Base network via the CDP Swap API. You must be authenticated to trade.
npx awal@latest status
If the wallet is not authenticated, refer to the authenticate-wallet skill.
npx awal@latest trade <amount> <from> <to> [options]
| Argument | Description |
|---|---|
amount |
Amount to swap (see Amount Formats below) |
from |
Source token: alias (usdc, eth, weth) or contract address (0x...) |
to |
Destination token: alias (usdc, eth, weth) or contract address (0x...) |
The amount can be specified in multiple formats:
| Format | Example | Description |
|---|---|---|
| Dollar prefix | '$1.00', '$0.50' |
USD notation (decimals based on token) |
| Decimal | 1.0, 0.50, 0.001 |
Human-readable with decimal point |
| Whole number | 5, 100 |
Interpreted as whole tokens |
| Atomic units | 500000 |
Large integers treated as atomic units |
Auto-detection: Large integers without a decimal point are treated as atomic units. For example, 500000 for USDC (6 decimals) = $0.50.
Decimals: For known tokens (usdc=6, eth=18, weth=18), decimals are automatic. For arbitrary contract addresses, decimals are read from the token contract.
| Option | Description |
|---|---|
-c, --chain <name> |
Blockchain network (default: base) |
-s, --slippage <n> |
Slippage tolerance in basis poi... |
这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。
# Trading Tokens Use the `npx awal@latest trade` command to swap tokens on Base network via the CDP Swap API. You must be authenticated to trade. ## Confirm wallet is initialized and authed ```bash npx awal@latest status ``` If the wallet is not authenticated, refer to the `authenticate-wallet` skill. ## Command Syntax ```bash npx awal@latest trade <amount> <from> <to> [options] ``` ## Arguments | Argument | Description | | -------- | ---------------------------------------------------------------------- | | `amount` | Amount to swap (see Amount Formats below) | | `from` | Source token: alias (usdc, eth, weth) or contract address (0x...) | | `to` | Destination token: alias (usdc, eth, weth) or contract address (0x...) | ## Amount Formats The amount can be specified in multiple formats: | Format | Example | Description | | ------------- | ---------------------- | -------------------------------------- | | Dollar prefix | `'$1.00'`, `'$0.50'` | USD notation (decimals based on token) | | Decimal | `1.0`, `0.50`, `0.001` | Human-readable with decimal point | | Whole number | `5`, `100` | Interpreted as whole tokens | | Atomic units | `500000` | Large integers treated as atomic units | **Auto-detection**: Large integers without a decimal point are treated as atomic units. For example, `500000` for USDC (6 decimals) = $0.50. **Decimals**: For known tokens (usdc=6, eth=18, weth=18), decimals are automatic. For arbitrary contract addresses, decimals are read from the token contract. ## Options | Option | Description | | -------------------- | --------------------------------------------- | | `-c, --chain <name>` | Blockchain network (default: base) | | `-s, --slippage <n>` | Slippage tolerance in basis poi...
A股实时行情与分时量能分析
A股模拟交易系统 - 数据爬取、存储、策略回测、模拟交易 / A-Share Paper Trading System - Data Fetch, Storage, Backtest, Simulation
Discover, install, update, or create the right skill when a workflow gap appears. Use when a task is repetitive, a role lacks a reliable procedure, an existing skill might save time, ClawHub search/install coul...
AI Automation Agency Blueprint