DeFi Position Tracker for Openclaw

A comprehensive multi-chain monitoring tool for tracking liquidity provider positions, staking rewards, and yield farming analytics.

samledger67-dotcom
v2.0.0
Mar 19, 2026
0
989
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install defi-position-tracker

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 defi-position-tracker 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 DeFi Position Tracker?

The DeFi Position Tracker is a powerful utility designed for Openclaw Skills to provide deep visibility into decentralized finance portfolios. It aggregates data from major protocols like Uniswap, Aave, and Curve across multiple networks including Ethereum, Arbitrum, and Solana. By synthesizing data from premium APIs and on-chain RPC calls, it offers a unified view of net worth, debt health, and yield performance.

This skill bridges the gap between raw on-chain data and actionable financial intelligence. It specifically addresses the complexity of non-custodial positions, allowing users to monitor health factors for lending protocols and range status for concentrated liquidity, ensuring that your Openclaw Skills workflow remains informed and proactive in volatile markets.

DeFi Position Tracker Use Cases

  • Tracking active DeFi positions across protocols like Uniswap v3, Curve, and Balancer.
  • Calculating impermanent loss (IL) on LP pairs to understand true performance vs. HODLing.
  • Monitoring health factors on lending platforms like Aave and Compound to prevent liquidations.
  • Preparing structured DeFi data for tax reporting and DAO treasury dashboards.
  • Automating the collection of staking rewards and yield farming returns for income tracking.

How DeFi Position Tracker Works

  1. The skill initiates a full portfolio snapshot by querying multi-chain aggregators like DeBank, Zapper, or Moralis.
  2. It fetches specific position details, including token quantities and entry prices, to establish a cost basis.
  3. Complex mathematical models are applied to calculate real-time metrics such as impermanent loss and net P&L.
  4. For lending positions, it performs on-chain RPC calls via cast or Alchemy to verify current health factors and liquidation thresholds.
  5. The gathered data is structured into a standardized JSON schema, ready for visualization or handoff to tax preparation tools.

DeFi Position Tracker Setup

To get started with this component of Openclaw Skills, ensure you have the necessary environment and API keys.

# Install required system dependencies
sudo apt-get install python3 nodejs

# Install cast (Foundry) for on-chain reads
curl -L https://foundry.paradigm.xyz | bash
foundryup

# Set your API keys in your environment variables
export DEBANK_API_KEY='your_key_here'
export MORALIS_KEY='your_key_here'

DeFi Position Tracker Data Schema & Taxonomy

The skill organizes data into a hierarchical JSON structure designed for interoperability within the Openclaw Skills ecosystem.

Object Description Key Fields
Snapshot The top-level portfolio state total_value_usd, wallet, snapshot_date
Position Individual protocol data protocol, type (lp/staking), il_usd, net_pnl
LPEntry Historical cost basis data token0_price_usd, gas_cost_usd, timestamp
TaxEvent Export-ready tax objects income_usd, gain_loss_usd, tx_hash

DeFi Position Tracker Advanced Features

  • Impermanent Loss Calculator: Built-in Python implementation for 50/50 and concentrated liquidity (Uniswap v3) analytics.
  • Tax Handoff Engine: Automatically formats income and disposal events for consumption by the crypto-tax-agent skill.
  • Aave Health Monitoring: Real-time monitoring of liquidation risks with configurable threshold alerts.
  • Multi-Chain Aggregation: Support for L1s and L2s including Base, Polygon, Optimism, and Avalanche.
  • Uniswap v3 Range Detection: Verification of whether concentrated liquidity positions are actively earning fees.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*