Execute leverage trading on Avantis (Base). Long/short crypto, forex, commodities with up to 100x leverage. Uses Python SDK with direct wallet integration.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install avantis-skill或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install avantis-skill⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/avantis-skill/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: avantis description: Execute leverage trading on Avantis (Base). Long/short crypto, forex, commodities with up to 100x leverage. Uses Python SDK with direct wallet integration. metadata: author: beanbot version: "1.0.0" requires: - Python 3.12+ - avantis-trader-sdk - Wallet: 0x79622Ea91BBbDF860e9b0497E4C297fC52c8CE64 ---
Execute leverage trades on Avantis - Base's largest derivatives exchange for crypto, forex, commodities, and indices.
avantis_venv/bin/python skills/avantis/scripts/positions.py
# 5x long ETH with $10 collateral
avantis_venv/bin/python skills/avantis/scripts/trade.py long ETH 10 5
# 10x short BTC with $20 collateral
avantis_venv/bin/python skills/avantis/scripts/trade.py short BTC 20 10
# Close specific position
avantis_venv/bin/python skills/avantis/scripts/close.py <pair_index> <trade_index>
# Or close all positions for a pair
avantis_venv/bin/python skills/avantis/scripts/close.py ETH
Main Wallet: 0x79622Ea91BBbDF860e9b0497E4C297fC52c8CE64
/home/ubuntu/clawd/MAIN_WALLET.txt# Long ETH: 5x leverage, $10 collateral
# Position size: $50 (10 × 5)
python scripts/trade.py long ETH 10 5
# With take profit and stop loss
python scripts/trade.py long ETH 10 5 --tp 3500 --sl 3000
python scripts/positions.py
# Output:
# 📊 Open positions: 1
# • LONG 5x | $10 collateral | ETH/USD
# • Entry: $3200 | Current: $3250
# • PnL: +$7.81 (+7.81%)
# Full close
python scripts/close.py 0 0 # pair_index=0 (ETH), trade_index=0
# Partial close (50%)
python scripts/close.py 0 0 --amount 5
python scripts/update-tpsl.py 0 0 --tp 3800 --sl 3100
collateral × leverage ≥ minimum⚠️ Liquidation Risk
⚠️ Market Risk
⚠️ Fee Impact
# Open long at specific price
python scripts/trade.py long ETH 10 5 --limit 3000
# Add $5 collateral (reduces leverage)
python scripts/update-margin.py 0 0 --deposit 5
# Remove $3 collateral (increases leverage)
python scripts/update-margin.py 0 0 --withdraw 3
# Get current price + analysis
python scripts/market-info.py ETH
# Compare multiple assets
python scripts/market-info.py ETH BTC SOL
instincts/crypto/All scripts in skills/avantis/scripts/:
positions.py - View open positionstrade.py - Open new positionclose.py - Close position (full or partial)update-tpsl.py - Update take profit / stop lossupdate-margin.py - Add/remove collateralmarket-info.py - Get market databalance.py - Check wallet balancesThe SDK is already installed in /home/ubuntu/clawd/avantis_venv/:
# Activate venv (if needed for manual testing)
source /home/ubuntu/clawd/avantis_venv/bin/activate
# Check installation
python -c "from avantis_trader_sdk import TraderClient; print('✓ SDK ready')"
...
安装 Avantis Skill 后,可以对 AI 说这些话来触发它
Help me get started with Avantis Skill
Explains what Avantis Skill does, walks through the setup, and runs a quick demo based on your current project
Use Avantis Skill to execute leverage trading on Avantis (Base)
Invokes Avantis Skill with the right parameters and returns the result directly in the conversation
What can I do with Avantis Skill in my finance & investment workflow?
Lists the top use cases for Avantis Skill, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/avantis-skill/ 目录(个人级,所有项目可用),或 .claude/skills/avantis-skill/(项目级)。重启 AI 客户端后,用 /avantis-skill 主动调用,或让 AI 根据上下文自动发现并使用。
Avantis Skill 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Avantis Skill 可免费安装使用。请查阅仓库了解许可证信息。
Execute leverage trading on Avantis (Base). Long/short crypto, forex, commodities with up to 100x leverage. Uses Python SDK with direct wallet integration.
Avantis Skill 属于「Finance & Investment」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my finance & investment tasks using Avantis Skill
Identifies repetitive steps in your workflow and sets up Avantis Skill to handle them automatically