okx-uniswap-strategy

Generates data-driven Uniswap LP strategies with volatility-based ranges, pool scoring, and pre-filled deep links.

Updated Apr 5, 2026
One-click install
npx skills add https://github.com/Nith567/xlayer-skills-arena --skill okx-uniswap-strategy-nith567
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: okx-uniswap-strategy
Source: https://github.com/Nith567/xlayer-skills-arena/tree/main/okx-uniswap-strategy
Command: npx skills add https://github.com/Nith567/xlayer-skills-arena --skill okx-uniswap-strategy-nith567

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Creating a Uniswap liquidity position requires choosing the right pool, fee tier, and price range, which most users guess at. This Skill replaces guesswork with onchain data: it analyzes 30-day price volatility, scores every available pool by real fee APY, runs security checks, balances your token ratio, and opens a pre-filled Uniswap position link. ## Core Features & Use Cases - Volatility-Based Range Calculation: Fetches 30-day kline data via OKX onchainos and derives an optimal concentrated liquidity range from standard deviation of daily returns. - Pool Discovery & Scoring: Queries DexScreener and DeFi Llama to rank all Uniswap V3/V4 pools for a pair by fee APY and TVL, recommending the best risk-adjusted option. - Security Screening: Blocks honeypot tokens via OKX token detection and flags risky Uniswap V4 hooks using a permission risk matrix. - Auto-Balancing & Deep Links: Swaps tokens into the required LP ratio and generates a pre-filled app.uniswap.org position creation URL, plus optional out-of-range monitoring. - Use Case: Ask to create an ETH/USDC LP on Base, and the Skill checks your wallet, computes a ±15% range from volatility, picks the 0.30% V4 pool, balances your tokens, and opens Uniswap with everything pre-filled. ## Quick Start Ask the agent to create an ETH/USDC liquidity position on Base with a specific amount and let it analyze volatility, pick the best pool, and open the pre-filled Uniswap link.

Frequently Asked Questions about okx-uniswap-strategy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Uniswap LP position with the right price range?▼

The Skill fetches 30-day price history via onchainos market kline, computes weekly volatility from daily returns, and sets the range at current price plus or minus 1.5x weekly volatility. Stablecoin pairs get tight ±0.5-1% ranges while volatile pairs get ±30-50%.

How to choose the best Uniswap pool and fee tier for a token pair?▼

Pools are discovered via the DexScreener API filtered to Uniswap, then scored as fee APY (volume x fee x 365 / TVL) weighted 70% plus a TVL safety score weighted 30%. The highest-scoring pool is recommended, with ties broken toward higher TVL.

Does this work with Uniswap V4 hooks and custom pools?▼

Yes, V4 is the default on Ethereum, Base, and Arbitrum. If a pool has a custom hook, the Skill applies a permission risk matrix: CRITICAL flags like beforeSwapReturnDelta block the position, HIGH flags trigger a warning, and standard no-hook pools pass automatically.

Which chains are supported for Uniswap liquidity strategies?▼

Ethereum, Base, Arbitrum, Optimism, Polygon, and BNB Chain are supported. V4 is used where deployed (Ethereum, Base, Arbitrum); V3 is the fallback on Optimism, Polygon, and BNB Chain.

What happens if my token ratio does not match the LP range requirements?▼

The Skill calculates the required token ratio from the range bounds using concentrated liquidity math, then executes an onchainos swap to convert the excess token into the deficit token before generating the deposit link.

Can I get alerts when my Uniswap LP position goes out of range?▼

Yes, after generating the position link the Skill offers to create an hourly cron monitor that checks the current price via onchainos and notifies you when price exits your range, with options to rebalance, exit, or hold.