Orca LP Management and Analytics for Openclaw

A comprehensive agent skill for analyzing Orca Whirlpools and managing concentrated liquidity positions via the Solana blockchain.

kaizen-orca
v1.0.5
May 3, 2026
4
887
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install orca-lp-analytics

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install orca-lp-analytics using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Orca LP Management and Analytics?

The Orca LP skill is a sophisticated toolkit designed for Openclaw Skills that enables AI agents to interact deeply with Orca Whirlpools. It provides a dual-mode workflow: a robust read-only analytics engine for pool discovery, ranking, and stability analysis, and an on-chain management layer for executing transactions. By integrating this into your Openclaw Skills environment, developers can build agents that not only find the most profitable pools but also handle the complex math of range sizing and position rebalancing.

This skill leverages multiple data sources, including the Orca REST API for discovery, the Beachhouse API for historical timeseries, and the Snorkel API for multi-hop swap quotes. Whether you are performing a Monte Carlo projection to simulate price paths or executing a Token-2022 swap, this skill provides the necessary TypeScript scaffolds and logic to ensure high-performance DeFi automation.

Orca LP Management and Analytics Use Cases

  • Discovering and ranking Orca pools based on TVL, APR, and volume-to-TVL ratios.
  • Performing historical stability analysis and volatility checks using 6-month Beachhouse data.
  • Determining optimal concentrated liquidity ranges using ATR-based sizing and containment backtests.
  • Running forward-looking Monte Carlo simulations to project price path percentiles.
  • Executing on-chain liquidity operations such as opening, increasing, decreasing, or closing LP positions.
  • Planning complex exits that involve fee collection, liquidity drainage, and multi-hop swaps back to SOL.

How Orca LP Management and Analytics Works

  1. The agent identifies the user intent, such as scanning pools or managing a position, and routes it to the appropriate playbook.
  2. For analytics, the skill fetches data from public Orca and Beachhouse endpoints to compute metrics like realized volatility and retrospective yield.
  3. For range planning, the skill calculates tick indices aligned with pool-specific tick spacing based on current sqrtPrice data.
  4. If a write operation is required, the skill generates TypeScript code utilizing the @orca-so/whirlpools-sdk to build a transaction quote.
  5. The skill requests a confirm flag from the user before using the provided Solana keypair to sign and broadcast the transaction.
  6. Finally, the skill monitors the Solana RPC for signature confirmation and reports the final status and transaction signature.

Orca LP Management and Analytics Setup

To integrate this into your Openclaw Skills workflow, ensure you have the required environment variables configured. Read-only features work out of the box, but write operations require a Solana keypair.

# Set your Solana RPC and Keypair path
export SOLANA_RPC_URL="https://api.mainnet-beta.solana.com"
export KEYPAIR_PATH="/path/to/your/wallet.json"

# Install necessary pinned dependencies
npm install @solana/[email protected] @orca-so/[email protected] @coral-xyz/[email protected]

Ensure your wallet contains at least 0.02 SOL to cover rent for position metadata and priority fees.

Orca LP Management and Analytics Data Schema & Taxonomy

The skill organizes data across several technical domains, primarily focusing on pool statistics and on-chain position metadata:

Data Type Source Key Fields
Pool Metadata Orca REST address, feeRate, tvlUsdc, tickSpacing, tokenA/B
Timeseries Beachhouse unixTime, totalVolumeUsd, volumeBase, volumeQuote, tvl
LP Position On-chain positionMint, liquidity, tickLowerIndex, tickUpperIndex
Swap Quotes Snorkel inputAmount, outputAmount, price_impact, routes

All numeric fields from REST APIs are returned as strings and must be cast to numbers before performing calculations like APR or volatility.

Orca LP Management and Analytics Advanced Features

  • Advanced Monte Carlo projections using Geometric Brownian Motion (GBM) to visualize risk percentiles (p5 to p95).
  • Token-2022 support for modern Solana assets, including automatic handling of V2 instructions and transfer fees.
  • Intelligent multi-hop swap routing via Snorkel for assets without direct liquidity pairs.
  • Retrospective yield analysis that identifies stable price periods to provide grounded historical earning estimates.
  • Automated rent management for closing empty Associated Token Accounts (ATAs) and reclaiming SOL.
  • Dynamic priority fee estimation based on recent network load to ensure transaction landing during high congestion.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*