# 📊 Analytics

The **Analytics Suite** on KaspaFinance provides real-time insight into user portfolios, farm performance, liquidity positions, token prices, protocol health, and more — all presented through a clean, intuitive interface.

Built directly into the KaspaFinance DEX, it removes the need for third-party tools and helps users make smarter, faster decisions across every DeFi vertical.

(Some of this functionality will arrive as a later addition on our roadmap of dev sprints)

***

#### 🧭 What You Can Track

The analytics dashboard allows users to monitor:

**🔹 Global Protocol Stats**

* **Total Value Locked (TVL)** — across all farms, staking, and lending
* **24h Trading Volume** — platform-wide or per pair
* **Circulating Supply** and **KFC Price** (live feed)
* **Token Emissions** per epoch or farm

**🔹 Farm & Pool Performance**

* TVL, APR, and volume for every liquidity pool
* Breakdown of reward types per pool (KFC, partner tokens)
* Ranking of top-performing farms
* Emission models (single, dual, triple) per pool

**🔹 Token Metrics**

* Token price charts (KFC, KAS, partner tokens)
* Volume change, price change, and volatility
* Market cap estimates, FDV (Fully Diluted Valuation), and trading pair dominance

**🔹 Wallet-Level Portfolio Tracking**

* Current staked value
* Total yield earned
* Historical harvests
* LP position values and impermanent loss
* Lending/borrowing stats (collateral, borrow %, interest earned)

**🔹 KasBot Performance**

* ROI per bot strategy
* Live bot leaderboard with performance ranking
* Risk score, win/loss ratio, and Sharpe-like metrics

***

#### 🧱 How It Works (Under the Hood)

KaspaFinance Analytics aggregates data from:

* Smart contracts deployed on **Kaspa EVM**
* Oracle feeds for token prices (from on-chain + major CEXs)
* Subgraph-style indexing for performance and user tracking

All analytics are streamed in near-real time thanks to:

* **Kaspa DAG's fast confirmation times**
* Optimized backend architecture (Next.js + Web3.js)
* Caching layers to support thousands of concurrent users

***

#### 📊 Power Features

| Feature              | Description                                               |
| -------------------- | --------------------------------------------------------- |
| **Custom Filters**   | Sort and filter pools by APR, liquidity, or emission type |
| **Real-Time Charts** | Trade volume, yield curves, token volatility              |
| **TVL Heatmaps**     | Visualize capital flow across pools                       |
| **Yield Breakdown**  | Separate views for base rewards vs. boosted emissions     |
| **Wallet Snapshots** | Exportable records of your earnings and positions         |

***

#### 👨‍💻 For Advanced Users

* CSV/JSON Export for tax or DeFi portfolio apps
* Strategy performance across bots or time periods
* Gas fee tracking per transaction or bot session

***

#### 🚀 Coming Soon

* **Alert System**: Set custom alerts for APR dips, pool changes, or token price triggers
* **Bot Copy Trading Leaderboard**: Mirror strategies of top KasBot traders
* **Impermanent Loss Calculator**: Project real risk before farming
* **Mobile-Friendly Analytics Widget**

***

#### 💡 Why It Matters

DeFi can be complex and chaotic — especially for users juggling multiple farms, bots, and tokens. KaspaFinance Analytics turns that chaos into clarity, providing the tools needed to:

* Identify the best yield opportunities
* Adjust your capital allocation
* Track performance over time
* Understand your DeFi portfolio like a pro
