搜索

PythonReactSEOPDF
OpenClaw

avantis

Execute leverage trading on Avantis (Base). Long/short crypto, forex, commodities with up to 100x leverage. Uses Python SDK with direct wallet integration.

droppingbeans0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install droppingbeans/avantis-skill

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

Avantis Leverage Trading

Execute leverage trades on Avantis - Base's largest derivatives exchange for crypto, forex, commodities, and indices.

Quick Start

Check Positions
avantis_venv/bin/python skills/avantis/scripts/positions.py
Open Trade
# 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
# 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

来源信息

Source
github
Repository
openclaw/skills
Path
skills/droppingbeans/avantis-skill
Version
—
Commit
91ec59bb0287036db7d7b47a2df201f52a5c9270
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

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
avantis_venv/bin/python skills/avantis/scripts/positions.py
Open Trade
# 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
# 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

# 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 -...

来源内容

SKILL.md
# 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...
README
# 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
-...

相关技能

OpenClaw

humanpages

human-pages-ai

Search and hire real humans for tasks — photography, delivery, research, and more

OpenClaw

openclaw-skills

zseven-w

Reusable skill templates for OpenClaw AI agents. Templates for API integration, data processing, web scraping, CLI tools, and file processing.

OpenClaw

0xarchive

0xfantommenace

Query historical crypto market data from 0xArchive across Hyperliquid, Lighter.xyz, and HIP-3. Covers orderbooks, trades, candles, funding rates, open interest, liquidations, and data quality. Use when the user...

OpenClaw

1sec-security

cutmob

Install, configure, and manage 1-SEC — an open-source, all-in-one cybersecurity platform (16 modules, single binary) on Linux servers and VPS instances. Use when the user asks to secure a server, install securi...