Overview
- Skill Key
- droppingbeans/avantis-skill
- Author
- droppingbeans
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/droppingbeans/avantis-skill
- Latest Commit SHA
- 91ec59bb0287036db7d7b47a2df201f52a5c9270
Execute leverage trading on Avantis (Base). Long/short crypto, forex, commodities with up to 100x leverage. Uses Python SDK with direct wallet integration.
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 avantis 技能。 若已安装,则直接安装 avantis 技能。
# Avantis Leverage Trading Execute leverage trades on Avantis - Base's largest derivatives exchange for crypto, forex, commodities, and indices. ## Quick Start ### Check Positions ```bash avantis_venv/bin/python skills/avantis/scripts/positions.py ``` ### Open Trade ```bash # 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 Position ```bash # 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 ``` ## Wallet Configuration **Main Wallet**: `0x79622Ea91BBbDF860e9b0497E4C297fC52c8CE64` - Private key: `/home/ubuntu/clawd/MAIN_WALLET.txt` - USDC approved: 100 USDC - Gas balance: 0.004500 ETH (~89 trades) ## Supported Markets ### Crypto (up to 50x) - ETH/USD, BTC/USD, SOL/USD, LINK/USD - ARB/USD, OP/USD, AVAX/USD, etc. ### Forex (up to 100x) - EUR/USD, GBP/USD, USD/JPY, AUD/USD - USD/CAD, USD/CHF, NZD/USD ### Commodities (up to 100x) - Gold (XAU/USD), Silver (XAG/USD) - Oil (WTI, Brent) ### Indices (up to 50x) - SPX, NDX, DJI ## Features ### Leverage Trading - **Long**: Profit when price goes up - **Short**: Profit when price goes down - **Min leverage**: 2x - **Max leverage**: 50x crypto, 100x forex/commodities ### Risk Management - **Take Profit**: Auto-close at target price (max 500% of entry) - **Stop Loss**: Auto-close to limit losses - **Margin Updates**: Add/remove collateral to adjust leverage - **Partial Close**: Close portion of position ### Fee Features - **Loss Protection**: Up to 20% rebate on losses when trading against popular sentiment - **Positive Slippage**: Better execution when helping balance open interest - **Dynamic Fees**: 0.04-0.1% based on market conditions ## Common Operations ### Open a Position ```python...
# Avantis Leverage Trading Skill Execute leverage trades on Avantis - Base's largest derivatives exchange for crypto, forex, commodities, and indices. ## Features - **Direct wallet integration** - No API key needed - **Multiple markets** - Crypto (50x), forex/commodities (100x), indices (50x) - **Long and short** - Profit from price movements in either direction - **Risk management** - Take profit, stop loss, margin updates - **Python SDK** - Reliable, well-documented integration ## Quick Start ### Check Positions ```bash avantis_venv/bin/python skills/avantis/scripts/positions.py ``` ### Open Trade ```bash # 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, TP/SL avantis_venv/bin/python skills/avantis/scripts/trade.py short BTC 20 10 --tp 95000 --sl 102000 ``` ### Close Position ```bash # Full close avantis_venv/bin/python skills/avantis/scripts/close.py 0 0 # Partial close avantis_venv/bin/python skills/avantis/scripts/close.py 0 0 --amount 5 ``` ## Requirements - Python 3.12+ - `avantis-trader-sdk` (installed in virtual env) - Wallet with USDC on Base - Gas ETH on Base ## Installation ```bash # Create virtual environment python3 -m venv avantis_venv # Install SDK avantis_venv/bin/pip install avantis-trader-sdk # Set up wallet echo "Private Key: 0xYOUR_KEY_HERE" > MAIN_WALLET.txt ``` ## Supported Markets ### Crypto (up to 50x) ETH, BTC, SOL, LINK, ARB, OP, AVAX, and more ### Forex (up to 100x) EUR/USD, GBP/USD, USD/JPY, AUD/USD, USD/CAD, USD/CHF, NZD/USD ### Commodities (up to 100x) Gold (XAU/USD), Silver (XAG/USD), Oil (WTI, Brent) ### Indices (up to 50x) SPX, NDX, DJI ## Position Sizing **Minimum position size**: ~$100 - $4 collateral × 25x leverage = $100 ✅ - $5 collateral × 20x leverage = $100 ✅ - $10 collateral × 10x leverage = $100 ✅ ## Fee Structure - **Opening**: 0.04-0.1% of position size (dynamic) - **Closing**: 0.04-0.1% of position size -...
human-pages-ai
Search and hire real humans for tasks — photography, delivery, research, and more
zseven-w
Reusable skill templates for OpenClaw AI agents. Templates for API integration, data processing, web scraping, CLI tools, and file processing.
blackeight4752
Enhance video resolution using Alibaba Cloud Super Resolution API. Use when the user wants to: (1) upscale low-res videos to higher resolution, (2) improve video quality before publishing, or (3) convert 480p videos to 1080p.
asenwang
Manage Shopify store — products, metafields, metaobjects, blogs & articles via Shopify Admin GraphQL API. Pure official Shopify API wrapper with no third-party plugins required; built on the same API surface as Shopify CLI, giving you full control without extra dependencies.
aurora2035
Xeon ASR
aznikline
深度分析项目的系统边界、核心概念、模块架构、关键算法、技术选型以及错误排查。当用户需要深入理解代码库或定位疑难问题时调用。