hodlmm-flow
HODLMM Flow
Swap flow intelligence for Bitflow HODLMM concentrated liquidity pools.
What it does
Every other HODLMM tool looks at pool state — TVL, bin distribution, positions. This one looks at swap flow: what's actually trading, in what direction, by whom, and what it means for LPs.
Fetches on-chain swap transactions from Hiro API, parses DLMM core contract events to extract per-bin-hop volumes, and computes six market microstructure metrics: direction bias, flow toxicity, bin velocity, whale concentration, liquidation pressure, and bot/organic classification. Produces an LP safety verdict with a predicted range lifespan.
Why agents need it
Concentrated liquidity LPs face adverse selection — informed traders extract value from stale positions. Without flow analysis, an agent choosing range parameters is flying blind. This skill gives agents the data to:
- Detect toxic flow — consecutive same-direction swaps signal informed trading that picks off LPs
- Predict range lifespan — bin velocity tells you how long a ±N-bin position will stay in range
- Identify who's trading — bot vs organic vs liquidator classification reveals market structure
- Assess directional risk — strong bias means one side of your position is getting drained
- Spot liquidation cascades — Zest liquidation flow through HODLMM pools signals collateral stress