Search

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 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install droppingbeans/avantis-skill

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

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 information

Source
github
Repository
openclaw/skills
Path
skills/droppingbeans/avantis-skill
Version
—
Commit
91ec59bb0287036db7d7b47a2df201f52a5c9270
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

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

Extracted content

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

Related skills

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