leoyeai/openclaw-master-skills/grid-trading
Claude Code and agent skill by leoyeai/openclaw-master-skills
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Create and manage grid trading strategies with OpenMM. Automated buy/sell around center price.
Install
npx vskill@latest install leoyeai/openclaw-master-skills/grid-tradingSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as leoyeai/openclaw-master-skills/grid-trading.
OpenMM Grid Trading
Create automated grid trading strategies that profit from market volatility.
What is Grid Trading?
Grid trading places multiple buy and sell orders at preset price intervals around the current center price. As price oscillates, the bot automatically:
- Buys low — places buy orders below the center price
- Sells high — places sell orders above the center price
- Profits from volatility — each complete cycle captures the spread
The grid uses levels per side and spacing to distribute orders. With 5 levels and 2% spacing (linear), orders are placed at 2%, 4%, 6%, 8%, 10% from center on both sides (10 total orders).
When to Use
Good for:
- Sideways/ranging markets
- High volatility pairs
- Passive income generation
- 24/7 automated trading
Avoid when:
- Strong trending markets (risk of holding losing positions)
- Low liquidity pairs
- High fee environments
Quick Start
1. Dry Run First (Always!)
2. Start Grid with Defaults
3. Custom Configuration
4. Stop the Strategy
Press Ctrl+C to gracefully stop. The system will:
- Cancel all open orders
- Disconnect from exchange
- Display final status
Command Options
Required Parameters
--strategy grid— Specifies grid trading strategy--exchange <exchange>— Exchange to trade on (mexc, bitget, gateio, kraken)--symbol <symbol>— Trading pair (e.g., INDY/USDT, SNEK/USDT, ADA/EUR)
Grid Parameters
| Parameter | Description | Default | |
|---|---|---|---|
--levels <number> | Grid levels each side (max: 10, total = levels x 2) | 5 | |
--spacing <decimal> | Base price spacing between levels (0.02 = 2%) | 0.02 | |
--size <number> | Base order size in quote currency | 50 | |
--confidence <decimal> | Minimum price confidence to trade | 0.6 | |
--deviation <decimal> | Price deviation to trigger grid recreation | 0.015 | |
--debounce <ms> | Delay between grid adjustments | 2000 | |
--max-position <decimal> | Max position size as % of balance | 0.8 | |
--safety-reserve <decimal> | Safety reserve as % of balance | 0.2 | |
--dry-run | Simulate without placing real orders | — |
Dynamic Grid Parameters
| Parameter | Description | Default | |
|---|---|---|---|
--spacing-model <model> | linear, geometric, or custom | linear | |
--spacing-factor <number> | Geometric spacing multiplier per level | 1.3 | |
--size-model <model> | flat, pyramidal, or custom | flat | |
--grid-profile <path> | Load grid config from a JSON profile file | — |
Volatility Parameters
| Parameter | Description | Default | |
|---|---|---|---|
--volatility | Enable volatility-based spread adjustment | off | |
--volatility-low <decimal> | Low volatility threshold | 0.02 | |
--volatility-high <decimal> | High volatility threshold | 0.05 |
Spacing Models
Linear (default): Equal spacing between all levels.
Geometric: Tighter spacing near center, wider gaps at outer levels.
Custom: Define exact spacing offsets per level using a grid profile JSON file.
Size Models
Flat (default): All levels get equal order sizes.
Pyramidal: Larger orders near center price where fills are more likely, tapering at outer levels.
Grid Profiles
JSON files for complete grid configuration:
Volatility-Based Spread Adjustment
When enabled, the grid automatically widens during volatile conditions and tightens when the market calms. Tracks price changes over a 5-minute rolling window.
- Below low threshold (default 2%): Normal spacing (1.0x)
- Between thresholds: Elevated spacing (1.5x)
- Above high threshold (default 5%): Wide spacing (2.0x)
Trading Examples
Conservative
Active
Dynamic (Geometric + Pyramidal)
Risk Management
--max-position— Maximum % of balance used for trading (default: 80%)--safety-reserve— % of balance kept as reserve (default: 20%)--confidence— Minimum price confidence required (default: 60%)- Grid is automatically recreated when orders are filled
- Adjusts to significant price movements (configurable via
--deviation)
Exchange-Specific Notes
MEXC/Gate.io: Minimum order value 1 USDT per order Bitget: Minimum 1 USDT. Requires API key, secret, and passphrase. 6 decimal price precision for SNEK/NIGHT pairs. Kraken: Minimum 5 EUR/USD per order. Supports major fiat pairs (EUR, USD, GBP).
Tips for Agents
- Always dry-run first — show user the plan before executing
- Check balance — verify sufficient funds with
openmm balance --exchange <ex> - Check current price — use
openmm ticker --exchange <ex> --symbol <sym> - Respect minimum order values — ensure
--sizedivided by--levelsmeets exchange minimums - Use Ctrl+C to stop — graceful shutdown cancels all open orders
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/openmm/skills/grid-trading/SKILL.md
Popularity
- Repository stars
- 2,157
- Repository forks
- 324
- 7-day trend score
- 43
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/leoyeai/openclaw-master-skills/grid-trading)