Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Automates Uniswap V3 liquidity rebalancing on EVM L2s, sizing ranges by volatility and running claim, remove, swap, and deposit steps.
Use this skill ↓5% 59%+55 ptsof test cases passed
Passed 13 of 22 test cases with the skill, and 1 of 22 without it.
3 of 3 safety checks passed
Cron 驱动的 Uniswap V3 集中流动性自动调仓机器人,运行在 EVM L2 链上,通过 onchainos CLI 执行 DeFi 操作。核心思路:波动率决定范围宽度 — 低波动率时收紧范围提高资本效率,高波动率时放宽范围减少调仓频率和无常损失。
每个 tick:获取价格 → 波动率分析 → 范围计算 → 调仓决策 → 执行调仓 → 报告。
Cron (5min) → Python script → onchainos CLI → OKX Web3 API → Chain
↓ ↓
cl_lp_state.json Wallet (TEE signing)
↓
┌──────────────┐
│ Price Fetch │ ← onchainos swap quote / market price
│ K-line ATR │ ← onchainos market kline (1H × 24)
│ MTF Analysis │ ← price_history (288 bars = 24h)
└──────┬───────┘
↓
Range Calculation (vol-adaptive)
↓
Rebalance Decision
↓
┌──────────────┐
│ Claim Fees │ ← onchainos defi claim
│ Remove Liq │ ← onchainos defi redeem
│ Swap Ratio │ ← onchainos swap swap
│ Add Liq │ ← onchainos defi deposit
└──────┬───────┘
↓
Structured JSON output
OKX Skill Dependencies (via onchainos CLI — 处理认证、链解析、错误重试):
onchainos market price --address <token> --chain <chain>onchainos market kline --address <token> --chain <chain> --bar 1H --limit 24onchainos swap quote --from <A> --to <B> --amount <amt> --chain <chain>onchainos swap swap --from <A> --to <B> --amount <amt> --chain <chain> --wallet <addr> --slippage <pct>onchainos swap approve --token <addr> --amount <amt> --chain <chain>Next to this one in the catalogue, plus more from the same author.