NetflowMetrics
Documentation for eth_defi.research.vault_metrics.NetflowMetrics Python class.
- class NetflowMetrics
Bases:
objectDeposit and withdrawal flow metrics for a time period.
Aggregates daily deposit/withdrawal event counts and USD values over a given period (e.g.
"1d","7d","30d").Only available for chains that support vault flow tracking (currently Hyperliquid). For other chains this will be
Nonein the vault record.Attributes summary
Period label (e.g.
Number of deposit events in the period
Number of withdrawal events in the period
Total USD deposited in the period
Total USD withdrawn in the period (positive value)
Net flow (deposit_usd - withdrawal_usd)
Methods summary
__init__(period[, deposit_count, ...])- period: str
Period label (e.g.
"1d","7d","30d")
- deposit_count: int
Number of deposit events in the period
- withdrawal_count: int
Number of withdrawal events in the period
- deposit_usd: float
Total USD deposited in the period
- withdrawal_usd: float
Total USD withdrawn in the period (positive value)
- net_flow_usd: float
Net flow (deposit_usd - withdrawal_usd)