flows-and-events

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

DeFi Flows and Events

DeFi流量与事件

Bridge Flows

桥接流量

Tool:
defillama:get_bridge_flows
  • Two-way bridge deduplication is applied automatically when aggregating
  • Grain: bridge x chain (one row per bridge per chain)
  • inflows = deposit_amount - withdraw_amount
    (pre-computed, positive = net inflow)
  • Params:
    bridge
    ,
    chain
    ,
    period
    ,
    start_date
    ,
    end_date
    ,
    sort_by
    ,
    limit
工具:
defillama:get_bridge_flows
  • 聚合时会自动应用双向桥接去重
  • 粒度:桥接 x 链(每个桥接每条链对应一行数据)
  • inflows = deposit_amount - withdraw_amount
    (已预先计算,正数表示净流入)
  • 参数:
    bridge
    ,
    chain
    ,
    period
    ,
    start_date
    ,
    end_date
    ,
    sort_by
    ,
    limit

ETF Flows

ETF资金流

Tool:
defillama:get_etf_flows
  • flow_usd
    is signed: positive = inflow, negative = outflow
  • Filter by underlying:
    token: "bitcoin"
    for all BTC ETFs,
    token: "ethereum"
    for ETH ETFs
  • Use
    etf
    param to filter specific ETF (e.g.,
    "ibit"
    ,
    "fbtc"
    )
  • Current view shows latest day only. Use
    period: "30d"
    for historical.
工具:
defillama:get_etf_flows
  • flow_usd
    为带符号数值:正数表示流入,负数表示流出
  • 可按标的过滤:
    token: "bitcoin"
    筛选所有BTC ETF,
    token: "ethereum"
    筛选ETH ETF
  • 使用
    etf
    参数筛选特定ETF(例如
    "ibit"
    ,
    "fbtc"
  • 默认仅显示最新单日数据,使用
    period: "30d"
    可查看历史数据

Stablecoin Supply

稳定币供应量

Tool:
defillama:get_stablecoin_supply
  • Supply = issuance on each chain, NOT DeFi deposits
  • Grain: stablecoin x chain (one row per stablecoin per chain)
  • Use
    circulating_supply
    (not
    total_supply
    ) for supply queries
  • Filter by
    peg_type
    (usd, eur)
  • Params:
    stablecoin
    ,
    chain
    ,
    peg_type
    ,
    period
    ,
    sort_by
    ,
    limit
工具:
defillama:get_stablecoin_supply
  • 供应量指各链上的发行量,而非DeFi存款量
  • 粒度:稳定币 x 链(每个稳定币每条链对应一行数据)
  • 查询供应量时请使用
    circulating_supply
    (而非
    total_supply
  • 可按
    peg_type
    筛选(usd、eur)
  • 参数:
    stablecoin
    ,
    chain
    ,
    peg_type
    ,
    period
    ,
    sort_by
    ,
    limit

Institutional Holdings (DAT)

机构持仓(DAT)

Tool:
defillama:get_dat_holdings
  • Tokens are automatically prefixed with
    coingecko:
    if not already (e.g.,
    token: "bitcoin"
    works)
  • Base response: institution overview (total value, cost, mNAV ratios)
  • include_history: true
    adds historical holding snapshots
  • include_mnav: true
    adds mNAV time series
  • transaction_type
    filters history by transaction type (e.g.,
    "purchase"
    ,
    "sale"
    )
mNAV (multiple of Net Asset Value) -- measures crypto exposure relative to market cap:
  • realized_mnav
    : conservative estimate
  • realistic_mnav
    : expected dilution
  • max_mnav
    : maximum dilution
  • mNAV > 1 means crypto holdings exceed the company's market cap attribution
工具:
defillama:get_dat_holdings
  • 若代币未添加前缀,系统会自动添加
    coingecko:
    (例如
    token: "bitcoin"
    可正常使用)
  • 基础响应:机构概况(总价值、成本、mNAV比率)
  • include_history: true
    会添加历史持仓快照
  • include_mnav: true
    会添加mNAV时间序列数据
  • transaction_type
    可按交易类型筛选历史记录(例如
    "purchase"
    ,
    "sale"
mNAV(净资产价值倍数)——衡量加密资产相对于市值的敞口:
  • realized_mnav
    : 保守估算值
  • realistic_mnav
    : 预期稀释值
  • max_mnav
    : 最大稀释值
  • mNAV > 1表示加密资产持仓超过公司市值对应的归属部分

Hacks and Exploits

黑客攻击与漏洞利用

Tool:
defillama:get_events
with
event_type: "hacks"
  • Filter by
    protocol
    (victim slug),
    chain
    (uses
    = ANY(chains)
    for array column),
    min_amount
  • returned_funds
    shows how much was recovered after the hack
  • Use
    sort_by: "amount desc"
    for biggest hacks
工具:
defillama:get_events
,搭配
event_type: "hacks"
  • 可按
    protocol
    (受害项目缩写)、
    chain
    (对数组列使用
    = ANY(chains)
    )、
    min_amount
    筛选
  • returned_funds
    显示攻击后追回的资金量
  • 使用
    sort_by: "amount desc"
    可查看金额最大的攻击事件

Fundraising Rounds

融资轮次

Tool:
defillama:get_events
with
event_type: "raises"
  • Filter by
    protocol
    ,
    chain
    (uses
    = ANY(chains)
    for array column),
    min_amount
  • Use
    sort_by: "amount desc"
    for largest rounds
工具:
defillama:get_events
,搭配
event_type: "raises"
  • 可按
    protocol
    chain
    (对数组列使用
    = ANY(chains)
    )、
    min_amount
    筛选
  • 使用
    sort_by: "amount desc"
    可查看金额最大的融资轮次

Protocol Events

协议事件

Tool:
defillama:get_events
with
event_type: "protocol_events"
  • Governance votes, upgrades, launches, and other protocol milestones
  • Additional filters:
    target_type
    (filter by target type),
    sub_protocol
    (filter by sub-protocol slug)
工具:
defillama:get_events
,搭配
event_type: "protocol_events"
  • 涵盖治理投票、版本升级、项目上线及其他协议里程碑事件
  • 额外筛选条件:
    target_type
    (按目标类型筛选)、
    sub_protocol
    (按子项目缩写筛选)

CEX Volumes

CEX交易量

Tool:
defillama:get_cex_volumes
  • CEX slugs differ from common names: binance ->
    binance-cex
    , huobi ->
    htx
    , gate.io ->
    gate-io
  • Params:
    cex
    ,
    period
    ,
    sort_by
    ,
    limit
工具:
defillama:get_cex_volumes
  • CEX缩写与常用名称不同:binance ->
    binance-cex
    ,huobi ->
    htx
    ,gate.io ->
    gate-io
  • 参数:
    cex
    ,
    period
    ,
    sort_by
    ,
    limit

Open Interest

未平仓合约量

Tool:
defillama:get_open_interest
  • Aggregates with SUM/GROUP BY for proper protocol-level totals
  • Params:
    protocol
    ,
    chain
    ,
    period
    ,
    start_date
    ,
    end_date
    ,
    sort_by
    ,
    limit
工具:
defillama:get_open_interest
  • 通过SUM/GROUP BY聚合以获取准确的协议级总量
  • 参数:
    protocol
    ,
    chain
    ,
    period
    ,
    start_date
    ,
    end_date
    ,
    sort_by
    ,
    limit

Treasury

金库

Tool:
defillama:get_treasury
  • Aggregates with SUM/GROUP BY for proper protocol-level totals
  • treasury_excl_own_token
    is the realistic value (excludes inflation of protocol's own token)
  • treasury_total
    includes own token (inflated value)
  • Params:
    treasury
    ,
    chain
    (for per-chain breakdown),
    period
    ,
    start_date
    ,
    end_date
    ,
    sort_by
    ,
    limit
工具:
defillama:get_treasury
  • 通过SUM/GROUP BY聚合以获取准确的协议级总量
  • treasury_excl_own_token
    为实际价值(排除协议原生代币的通胀影响)
  • treasury_total
    包含原生代币(含通胀价值)
  • 参数:
    treasury
    ,
    chain
    (用于按链拆分),
    period
    ,
    start_date
    ,
    end_date
    ,
    sort_by
    ,
    limit

Examples

示例

Example 1: User: "Bitcoin ETF flows this month" Tool call:
defillama:get_etf_flows(token: "bitcoin", period: "30d")
Example 2: User: "MicroStrategy bitcoin holdings" Tool call:
defillama:get_dat_holdings(institution: "microstrategy", token: "coingecko:bitcoin", include_history: true)
Example 3: User: "Biggest DeFi hacks in 2024" Tool call:
defillama:get_events(event_type: "hacks", sort_by: "amount desc", limit: 10, start_date: "2024-01-01", end_date: "2024-12-31")
Example 4: User: "USDT supply across chains" Tool call:
defillama:get_stablecoin_supply(stablecoin: "coingecko:tether", sort_by: "circulating_supply desc")
Example 5: User: "Top bridge volume this week" Tool call:
defillama:get_bridge_flows(period: "7d", sort_by: "volume desc", limit: 10)
Example 6: User: "Largest crypto fundraises this year" Tool call:
defillama:get_events(event_type: "raises", period: "365d", sort_by: "amount desc", limit: 20)
Example 7: User: "Binance trading volume" Tool call:
defillama:get_cex_volumes(cex: "binance-cex")
Example 8: User: "Uniswap treasury breakdown" Tool call:
defillama:get_treasury(treasury: "uniswap")
Example 9: User: "ETF flows in February 2025" Tool call:
defillama:get_etf_flows(token: "bitcoin", start_date: "2025-02-01", end_date: "2025-02-28")
示例1: 用户: "本月比特币ETF资金流" 工具调用:
defillama:get_etf_flows(token: "bitcoin", period: "30d")
示例2: 用户: "MicroStrategy的比特币持仓" 工具调用:
defillama:get_dat_holdings(institution: "microstrategy", token: "coingecko:bitcoin", include_history: true)
示例3: 用户: "2024年金额最大的DeFi黑客攻击事件" 工具调用:
defillama:get_events(event_type: "hacks", sort_by: "amount desc", limit: 10, start_date: "2024-01-01", end_date: "2024-12-31")
示例4: 用户: "各链上USDT的供应量" 工具调用:
defillama:get_stablecoin_supply(stablecoin: "coingecko:tether", sort_by: "circulating_supply desc")
示例5: 用户: "本周交易量最高的桥接" 工具调用:
defillama:get_bridge_flows(period: "7d", sort_by: "volume desc", limit: 10)
示例6: 用户: "今年规模最大的加密货币融资轮次" 工具调用:
defillama:get_events(event_type: "raises", period: "365d", sort_by: "amount desc", limit: 20)
示例7: 用户: "Binance的交易量" 工具调用:
defillama:get_cex_volumes(cex: "binance-cex")
示例8: 用户: "Uniswap金库明细" 工具调用:
defillama:get_treasury(treasury: "uniswap")
示例9: 用户: "2025年2月的ETF资金流" 工具调用:
defillama:get_etf_flows(token: "bitcoin", start_date: "2025-02-01", end_date: "2025-02-28")