ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified finance Safety 3/5

defi

Complete DeFi toolkit for XPR Network — DEX trading, AMM swaps, OTC escrow, yield farming, liquidity, and multisig

Why use this skill?

Manage your XPR Network portfolio with the defi skill. Trade on Metal X, execute AMM swaps, and manage yield farms using intuitive AI commands.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/paulgnz/xpr-defi
Or

What This Skill Does

The defi skill provides a comprehensive toolkit for managing decentralized finance operations on the XPR Network. It bridges the gap between complex blockchain interactions and intuitive AI-driven agent commands. Whether you are looking to trade assets via the Metal X central limit order book, perform instant AMM swaps via proton.swaps, or manage liquidity and yield farming positions, this skill centralizes all necessary functionality into one coherent interface.

Installation

To integrate this skill into your OpenClaw agent, execute the following command in your terminal: clawhub install openclaw/skills/skills/paulgnz/xpr-defi Ensure that your environment is configured for the XPR Network before initiating the installation to avoid dependency resolution errors.

Use Cases

  1. Active Trading: Utilize the Metal X order book to execute limit or stop-loss orders for assets like XPR or XETH, quoted against the XMD stablecoin.
  2. Liquidity Management: Provide liquidity to AMM pools to earn trading fees, and stake your resulting LP tokens into yield farms for additional token rewards.
  3. Portfolio Balancing: Perform rapid swaps to rebalance your holdings, ensuring you account for price slippage by using the built-in rate preview functions.
  4. Market Analysis: Monitor OHLCV data and order book depth to inform your trading strategies directly through natural language queries.

Example Prompts

  1. "What is the current price and 24h volume for XPR/XMD on Metal X?"
  2. "Preview a swap of 100 XPR to XMD; if the rate is favorable, execute the swap with a 1% slippage tolerance."
  3. "Show me all my active open orders on the Metal X DEX and tell me which ones have already been partially filled."

Tips & Limitations

  • Safety First: Always use defi_get_swap_rate before executing any swap to ensure you understand the expected output and price impact.
  • Slippage Protection: When executing trades, always set a min_output parameter, typically calculated as 98-99% of the previewed amount, to prevent front-running or extreme price swings.
  • Rate Limits: Keep in mind the 10 requests per second limit for Metal X API endpoints to avoid being throttled.
  • Atomic Transactions: The defi_place_order and defi_swap functions are designed for atomicity, handling deposits and executions in a single transaction, which minimizes gas overhead.

Metadata

Author@paulgnz
Stars1217
Views1
Updated2026-02-20
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-paulgnz-xpr-defi": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#xpr#defi#trading#blockchain#liquidity
Safety Score: 3/5

Flags: network-access, external-api