# DeFi Data: Yields, Hacks, TVL & Protocols (`stlakchain/defi-yields-hacks-tvl`) Actor

DeFi-wide data: where a token earns and what it really pays, every recorded hack and exploit, which chains hold the capital and stablecoin dry powder, and any protocol's TVL trend with its security history.

- **URL**: https://apify.com/stlakchain/defi-yields-hacks-tvl.md
- **Developed by:** [StalkChain](https://apify.com/stlakchain) (community)
- **Categories:** AI, Developer tools, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## DeFi Data: Yields, Hacks, TVL, Chains & Hyperliquid Perps

DeFi-wide data: where a token earns and what it really pays, every recorded hack and exploit, which chains hold the capital and how many people actually use them (active addresses, transactions, fees, costs), any protocol's TVL trend with its security history, DEX volumes, protocol fees and revenue, stablecoins, and Hyperliquid perps: markets including stocks, funding against Binance and Bybit, any wallet's positions, the trader leaderboard and candles.

### What you can do with it

- Security check before depositing
- Find the best stablecoin yield
- Compare chain usage and costs
- Track Hyperliquid funding and whales

### Datasets

Choose one in the `dataset` field. Each is priced per row.

| `dataset` | What you get | Price per row |
| --- | --- | --- |
| `defi-hacks` | **DeFi Hacks & Exploits Database**. Exploits and rug pulls on record, newest first, with amount lost and attack method. Filter by protocol or chain. Check it before putting money into something unfamiliar. | $0.004 |
| `defi-yields` | **DeFi Yield Finder: Best APY for Any Token**. Where a token can earn and what it pays: pools with base and reward APY, the 7-day trend, pool size and impermanent-loss risk, ranked by money already in the pool rather than headline APY. Give a symbol or a chain. | $0.004 |
| `chain-health` | **Blockchain TVL & Stablecoin Dry Powder**. Which chain has the money: total value locked, stablecoin supply and the ratio between them for Solana, Ethereum, Base, BNB Chain, Monad, Hyperliquid and Robinhood Chain. Stablecoins waiting to deploy are dry powder. | $0.003 |
| `chain-trend` | **Blockchain TVL & Stablecoin History**. How a chain's capital moved over time: TVL and stablecoin supply with 1, 7, 30, 90 and 365-day change, the TVL all-time high and drawdown from it, and a weekly series. One chain or all of DeFi. | $0.003 |
| `chain-activity` | **Chain Usage: Active Addresses, Transactions, Fees, Costs**. Ethereum, its layer 2s and Robinhood Chain side by side: daily active addresses, weekly users, transactions, fees paid, median transaction cost, onchain profit, value secured and top apps, with ranks. | $0.003 |
| `chain-metric-history` | **Chain Usage History: One Figure Over Time**. One chain's active addresses, transactions, fees, transaction cost, onchain profit or app revenue over time, with 1, 7, 30 and 90-day change. | $0.003 |
| `protocol-report` | **DeFi Protocol Report: TVL Trend & Hack History**. What a DeFi protocol holds and which way it is moving: TVL with 1, 7 and 30-day change, chains, audit status and any exploit on record with the amount lost. Growth and security in one row. | $0.030 |
| `protocol-fees` | **DeFi Protocol Fees & Revenue Rankings**. Which DeFi protocols make money: fees users pay and revenue each protocol keeps over 24 hours, 7 days and 30 days, the share of fees it keeps, and the weekly trend. All chains or one. | $0.003 |
| `chain-revenue` | **Blockchain Revenue by Chain: What Each Chain's Apps Earn**. Protocol revenue per chain: how much the apps on Solana, Ethereum, Base, BNB Chain, Hyperliquid, Robinhood Chain and Monad earn over 24 hours, 7 days and 30 days, each chain's share of all DeFi revenue, the weekly trend and the top earning protocols on each. | $0.003 |
| `dex-volumes` | **DEX Trading Volume by Exchange and Chain**. Trading volume for every decentralised exchange, across all chains or on one: 24-hour, 7-day and 30-day volume, each DEX's share of the day, and its day-over-day and week-over-week trend. | $0.003 |
| `stablecoins` | **Stablecoin Supply, Flows & Peg Monitor**. Every dollar stablecoin, across all chains or on one: supply, how it moved over a day, a week and a month, net new stablecoin money in or out, and whether each still holds its $1 peg. | $0.003 |
| `perps-markets` | **Hyperliquid Perp Markets: Volume, Open Interest, Funding**. Every Hyperliquid perp, crypto or stock, index and commodity: mark price, 24h change and volume, open interest in USD, hourly and yearly funding, premium and max leverage. | $0.003 |
| `perps-funding` | **Perp Funding Rates: Hyperliquid vs Binance vs Bybit**. Funding for each coin on Hyperliquid, Binance and Bybit on one hourly and yearly basis, with the spread between venues. | $0.003 |
| `perps-wallet` | **Hyperliquid Wallet Positions, PnL and Trades**. Any wallet's Hyperliquid account: open positions with entry, liquidation price and funding paid, PnL by day, week, month and all time, and recent fills with win rate. | $0.003 |
| `perps-leaderboard` | **Hyperliquid Trader Leaderboard: PnL and ROI**. All Hyperliquid traders ranked by profit, ROI, losses, size or volume over a day, week, month or all time, vaults left out. | $0.003 |
| `perps-candles` | **Hyperliquid Perp Candles, Crypto and Stocks**. OHLCV candles for any Hyperliquid perp, including stock perps such as TSLA and NVDA, with the range's high, low and change. | $0.003 |
| `perps-open-interest` | **Perps Open Interest by Exchange**. Open interest on perpetual futures, options and prediction-market venues: how much is in open leveraged positions right now, each venue's share, and the 1, 7 and 30-day change. | $0.003 |

### Input

| Field | What it is |
| --- | --- |
| `wallets` | 0x wallet address. Add as many as you need; each wallet is looked up in turn. Used by: perps-wallet. |
| `query` | Protocol or project name to match. Used by: defi-hacks, protocol-fees, dex-volumes. |
| `chain` | Narrow to one chain. One of solana, ethereum, base, bsc, monad, hyperliquid, robinhood. Used by: defi-hacks, defi-yields, chain-trend, chain-metric-history, protocol-fees, chain-revenue, dex-volumes, stablecoins, perps-open-interest. |
| `limit` | Incidents to return (default 20). Used by: defi-hacks, defi-yields, chain-activity, protocol-fees, dex-volumes, stablecoins, perps-markets, perps-leaderboard, perps-open-interest. |
| `symbol` | Token ticker such as SOL, USDC, ETH. Matches pools containing it, so a pair like SOL-USDC is included. Used by: defi-yields. |
| `minTvlUsd` | Ignore pools smaller than this (default 100,000) — small pools show inflated rates. Used by: defi-yields. |
| `stablesOnly` | Only stablecoin pools, for parking money rather than taking price risk. Used by: defi-yields. |
| `chains` | Chains to compare (default: all). One of solana, ethereum, base, bsc, monad, hyperliquid, robinhood. Used by: chain-health, chain-activity. |
| `weeks` | Weekly points in the series (default 12). Used by: chain-trend. |
| `sortBy` | Rank rows by this figure (default daa, active addresses). Used by: chain-activity, protocol-fees, perps-markets, perps-leaderboard. |
| `metric` | One of: daa (active addresses), txcount (transactions), fees (fees paid by users (USD)), txcosts (median transaction cost (USD)), profit (onchain profit: fees kept after the chain's own costs (USD)), app_revenue (revenue of the apps on the chain (USD)), throug |
| `granularity` | Point spacing (default daily). Used by: chain-metric-history. |
| `days` | How far back the series goes (default 90). Used by: chain-metric-history, perps-funding. |
| `protocol` | Protocol name or slug, e.g. jupiter, aave, raydium. Used by: protocol-report. |
| `top` | Top earning protocols to list per chain (default 5). Used by: chain-revenue. |
| `coins` | Only these markets (BTC, HYPE, TSLA, xyz:NVDA). Used by: perps-markets, perps-funding. |
| `venue` | crypto (default): the main perps; stocks: the builder markets (stocks, indices, commodities); all: both. Used by: perps-markets. |
| `fills` | Recent fills to include (default 20, 0 for none). Used by: perps-wallet. |
| `window` | Period (default week). Used by: perps-leaderboard. |
| `minAccountValueUsd` | Leave out smaller accounts (default 100,000, which keeps tiny accounts from topping ROI). Used by: perps-leaderboard. |
| `coin` | Market: BTC, HYPE, TSLA, xyz:NVDA. Used by: perps-candles. |
| `interval` | Candle size (default 1h). Used by: perps-candles. |
| `hours` | How far back (default 24; capped at 500 candles). Used by: perps-candles. |
| `maxItems` | Stop after this many rows, whatever the inputs would produce. Caps the cost of a run. |

Examples:

```json
{
  "dataset": "defi-hacks",
  "limit": 50
}
```

```json
{
  "dataset": "defi-yields",
  "symbol": "USDC",
  "limit": 25
}
```

```json
{
  "dataset": "chain-trend",
  "chain": "solana"
}
```

### Output

One row per result, as a table you can export to JSON, CSV or Excel, or read from the API. Every row carries `scrapedAt`.

Columns by dataset:

- `defi-hacks`: `name`, `chain`, `date`, `amountUsd`, `technique`, `targetType`
- `defi-yields`: `project`, `chain`, `symbol`, `tvlUsd`, `apy`, `apyBase`, `apyReward`, `stablecoin`, `ilRisk`
- `chain-health`: `totalTvlUsd`, `chain`, `tvlUsd`, `stablecoinSupplyUsd`, `stablecoinToTvlRatio`, `nativeSymbol`, `listed`
- `chain-trend`: `chain`, `asOf`, `date`, `tvlUsd`, `stablecoinSupplyUsd`
- `chain-activity`: `basis`, `sortedBy`, `chain`, `name`, `technology`, `purpose`, `activeAddresses`, `weeklyUsers`, `userSharePct`, `crossChainUsersPct`, `transactions`, `feesPaidUsd`, `medianTxCostUsd`, `onchainProfitUsd`
- `chain-metric-history`: `chain`, `metric`, `label`, `unit`, `latest`, `granularity`, `points`, `date`, `value`
- `protocol-report`: `found`, `name`, `slug`, `category`, `tvlUsd`, `change1dPct`, `change7dPct`, `change30dPct`, `chains`, `url`, `audits`, `knownHacks`, `otherMatches`
- `protocol-fees`: `chain`, `fees24hUsd`, `fees7dUsd`, `fees30dUsd`, `revenue24hUsd`, `revenue7dUsd`, `revenue30dUsd`, `feesWeekOverWeekPct`, `name`, `slug`, `category`, `revenueShareOfFeesPct`, `feesChange1dPct`, `revenueByChainCount`
- `chain-revenue`: `chain`, `revenue24hUsd`, `revenue7dUsd`, `revenue30dUsd`, `fees24hUsd`, `fees30dUsd`, `revenueShareOfFeesPct`, `revenueWeekOverWeekPct`, `shareOfAllDefiRevenuePct`, `topEarnersCount`
- `dex-volumes`: `chain`, `volume24hUsd`, `volume7dUsd`, `volume30dUsd`, `change1dPct`, `weekOverWeekPct`, `monthOverMonthPct`, `name`, `slug`, `category`, `shareOf24hPct`, `chainsCount`
- `stablecoins`: `chain`, `supplyUsd`, `netChange1dUsd`, `netChange7dUsd`, `netChange30dUsd`, `change7dPct`, `change30dPct`, `name`, `symbol`, `mechanism`, `shareOfTotalPct`, `change1dPct`, `priceUsd`, `pegDeviationPct`
- `perps-markets`: `venue`, `sortedBy`, `coin`, `dex`, `kind`, `maxLeverage`, `markPx`, `change24hPct`, `volume24hUsd`, `openInterestUsd`, `fundingHourlyPct`, `fundingAprPct`, `premiumPct`
- `perps-funding`: `basis`, `coin`, `hourlyPctHyperliquid`, `hourlyPctBinance`, `hourlyPctBybit`, `aprPctHyperliquid`, `aprPctBinance`, `aprPctBybit`, `spreadAprPct`
- `perps-wallet`: `wallet`, `accountValueUsd`, `withdrawableUsd`, `openNotionalUsd`, `coin`, `side`, `size`, `entryPx`, `markPx`, `valueUsd`, `unrealizedPnlUsd`, `returnOnEquityPct`, `leverage`, `marginMode`
- `perps-leaderboard`: `window`, `sortedBy`, `minAccountValueUsd`, `tradersRanked`, `rank`, `address`, `name`, `accountValueUsd`, `pnlUsd`, `roiPct`, `volumeUsd`
- `perps-candles`: `coin`, `interval`, `at`, `open`, `high`, `low`, `close`, `volume`, `trades`
- `perps-open-interest`: `chain`, `openInterestUsd`, `change1dPct`, `change7dPct`, `change30dPct`, `name`, `slug`, `category`, `shareOfTotalPct`, `chainsCount`

A missing value is `null`, never `0`: null means the data was not captured, which is worth telling apart from a real zero. If one input fails, the others still arrive, and the failures are listed in the run's `RUN_SUMMARY` record.

### Pricing

Pay per result, at the price per row shown for each dataset above, plus $0.001 per run. `maxItems` caps what one run can spend.

### Use it from an AI agent

This Actor is a tool in [Apify's MCP server](https://mcp.apify.com/?actors=stlakchain/defi-yields-hacks-tvl), so Claude, ChatGPT, Cursor or any MCP client can call it directly. The same data is also served interactively, with every tool in one place, by the StalkChain MCP server at [data.stalkchain.com](https://data.stalkchain.com).

### Schedule it

Much of this data is live and not kept by the source. A scheduled run (every 10 minutes, hourly, daily) builds a history you can chart and diff, with `scrapedAt` on every row.

### More from StalkChain

- [FOMO Crypto Trader Intelligence: PnL & Wallets](https://apify.com/stlakchain/fomo-crypto-trader-intelligence)
- [FOMO Smart Money Token Data: Holders, Flow, Devs](https://apify.com/stlakchain/fomo-smart-money-token-data)
- [FOMO Live Smart Money Signals & Trade Alerts](https://apify.com/stlakchain/fomo-live-smart-money-signals)
- [Solana On-chain: Token Risk, Snipers, Wallet PnL](https://apify.com/stlakchain/solana-token-wallet-onchain)
- [StonkFun Launchpad Data: Tokens, Burns, Rewards](https://apify.com/stlakchain/stonkfun-launchpad-data)
- [Multi-chain Crypto Wallets & Token Prices](https://apify.com/stlakchain/crypto-wallets-prices-multichain)

# Actor input Schema

## `dataset` (type: `string`):

What to fetch. Each dataset uses the fields below marked for it; fields for other datasets are ignored.

## `wallets` (type: `array`):

0x wallet address. Add as many as you need; each wallet is looked up in turn. Used by: perps-wallet.

## `query` (type: `string`):

Protocol or project name to match. Used by: defi-hacks, protocol-fees, dex-volumes.

## `chain` (type: `string`):

Narrow to one chain. One of solana, ethereum, base, bsc, monad, hyperliquid, robinhood. Used by: defi-hacks, defi-yields, chain-trend, chain-metric-history, protocol-fees, chain-revenue, dex-volumes, stablecoins, perps-open-interest.

## `limit` (type: `integer`):

Incidents to return (default 20). Used by: defi-hacks, defi-yields, chain-activity, protocol-fees, dex-volumes, stablecoins, perps-markets, perps-leaderboard, perps-open-interest.

## `symbol` (type: `string`):

Token ticker such as SOL, USDC, ETH. Matches pools containing it, so a pair like SOL-USDC is included. Used by: defi-yields.

## `minTvlUsd` (type: `integer`):

Ignore pools smaller than this (default 100,000) — small pools show inflated rates. Used by: defi-yields.

## `stablesOnly` (type: `boolean`):

Only stablecoin pools, for parking money rather than taking price risk. Used by: defi-yields.

## `chains` (type: `array`):

Chains to compare (default: all). One of solana, ethereum, base, bsc, monad, hyperliquid, robinhood. Used by: chain-health, chain-activity.

## `weeks` (type: `integer`):

Weekly points in the series (default 12). Used by: chain-trend.

## `sortBy` (type: `string`):

Rank rows by this figure (default daa, active addresses). Used by: chain-activity, protocol-fees, perps-markets, perps-leaderboard.

## `metric` (type: `string`):

One of: daa (active addresses), txcount (transactions), fees (fees paid by users (USD)), txcosts (median transaction cost (USD)), profit (onchain profit: fees kept after the chain's own costs (USD)), app_revenue (revenue of the apps on the chain (USD)), throughput (throughput (gas per second)), tvl (total value secured (USD)), stables_mcap (stablecoins on the chain (USD)). Used by: chain-metric-history.

## `granularity` (type: `string`):

Point spacing (default daily). Used by: chain-metric-history.

## `days` (type: `integer`):

How far back the series goes (default 90). Used by: chain-metric-history, perps-funding.

## `protocol` (type: `string`):

Protocol name or slug, e.g. jupiter, aave, raydium. Used by: protocol-report.

## `top` (type: `integer`):

Top earning protocols to list per chain (default 5). Used by: chain-revenue.

## `coins` (type: `array`):

Only these markets (BTC, HYPE, TSLA, xyz:NVDA). Used by: perps-markets, perps-funding.

## `venue` (type: `string`):

crypto (default): the main perps; stocks: the builder markets (stocks, indices, commodities); all: both. Used by: perps-markets.

## `fills` (type: `integer`):

Recent fills to include (default 20, 0 for none). Used by: perps-wallet.

## `window` (type: `string`):

Period (default week). Used by: perps-leaderboard.

## `minAccountValueUsd` (type: `integer`):

Leave out smaller accounts (default 100,000, which keeps tiny accounts from topping ROI). Used by: perps-leaderboard.

## `coin` (type: `string`):

Market: BTC, HYPE, TSLA, xyz:NVDA. Used by: perps-candles.

## `interval` (type: `string`):

Candle size (default 1h). Used by: perps-candles.

## `hours` (type: `integer`):

How far back (default 24; capped at 500 candles). Used by: perps-candles.

## `maxItems` (type: `integer`):

Stop after this many rows, whatever the inputs would produce. Caps the cost of a run.

## Actor input object example

```json
{
  "dataset": "defi-hacks",
  "limit": 50,
  "maxItems": 1000
}
```

# Actor output Schema

## `results` (type: `string`):

Every row the run saved, one per item.

## `summary` (type: `string`):

Rows saved, whether the run stopped early, and failed lookups.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "limit": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("stlakchain/defi-yields-hacks-tvl").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "limit": 50 }

# Run the Actor and wait for it to finish
run = client.actor("stlakchain/defi-yields-hacks-tvl").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "limit": 50
}' |
apify call stlakchain/defi-yields-hacks-tvl --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,stlakchain/defi-yields-hacks-tvl"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/mMUmoGlihbSsy9L0L/builds/OyNQsYeXqNBtpjdBC/openapi.json
