--- name: liquidity-watch description: >- Shows who added or pulled liquidity on a token in the last day: totals added and removed, the net, the largest removals, the wallets that took the most out net of what they put back, and a flag when a pull is large against the token's liquidity (the classic rug). Avalanche, Base, BNB Chain, Arbitrum and Ethereum: every add and remove with its wallet, read live from the token's busiest pools. Solana: per pool, deposits against withdrawals. Arc: the token's pool list only. Monad and Robinhood Chain are not covered. Use when the user asks whether liquidity was pulled or drained, who removed it, or if a token is being rugged. Not for price or volume (token-stats), holders (holders) or contract safety (token-check). Read only; never signs or moves funds. license: MIT compatibility: Needs python3 and HTTPS to api.getchord.xyz. Set CHORD_API_KEY (free at chordsi.xyz/me). metadata: author: Chord (getchord.xyz) homepage: https://chordsi.xyz/s/liquidity-watch version: "1.0.0" --- # Liquidity Watch A pull of most of a token's liquidity right before or during a dump is the classic rug. This skill reads the liquidity adds and removes of a token's pools and says, in numbers, how much left, who took it, and whether that is large against what is left. It nets each wallet's removals against what it added back, so liquidity bots that pull and re-add all day do not trip the flag. ## Run it ```bash python3 scripts/liquidity_watch.py CHAIN TOKEN [--big-usd 25000] [--quick] ``` - `CHAIN`: avalanche, base, bnb, arbitrum, ethereum, solana or arc. Monad and robinhood exit 2: not covered. - `TOKEN`: a contract address (best) or a listed symbol. On Solana, the mint exactly as written (case matters). - `--big-usd`: a wallet taking out this many dollars net is flagged when the token's liquidity is unknown, or when it is also 5 % of the liquidity or more (default 25000). Taking 20 % of the liquidity or more is flagged at any size. - `--quick`: skip the read of the token's liquidity now (one call fewer); flags then go by dollars alone. Example: `python3 scripts/liquidity_watch.py base 0x940181a94a35a4569e4529a3cdfb74e38fd98631` ## Read the answer - `verdict`: `flagged`, `nothing alarming`, `quiet` (no adds or removes in the window) or `not measured` (Chord could not read the token's pools: say so, it is not a clean bill). - `flags`: `LARGE PULL` (a wallet or pool took out a big share net), `DRAIN` (30 % or more of the liquidity left net), `NET OUTFLOW`. Say each one with its numbers. - EVM chains: `totals` (`window` 24h, or `partial` with the hours covered), `liquidityNowUsd`, `netOutSharePct`, `largestPulls` (dollars, wallet, venue, pool, time, tx), `topPullers` (removed, added back, net out), `largestAdds`, `poolsRead` / `poolsLeftOut`. - Solana: `totals` (deposits, withdrawals, net, liquidity now) and `pools` (per pool, most net outflow first). - Arc: `pools` (count by kind and venue) and `newestPools`; no amounts, so no flag. - `notes`: coverage limits for this answer. Exit 2 = a chain not covered, or no pool activity found. ## How to answer the user 1. Lead with the verdict in one line, then the numbers: added, removed, net, and the share of liquidity that left. 2. For a flag, name the wallet (full address), the amount, the venue and the time, and link the tx if they ask. 3. Say what the answer cannot see: a partial window, pools left out, `not measured`, or a chain that is not covered. 4. A pull is evidence, not proof of a scam: owners also move liquidity between pools. Never call it safe or a rug with certainty; say what the numbers show. For the contract itself, use token-check. ## Cost Two calls on Avalanche, Base, BNB Chain, Arbitrum and Ethereum (one with `--quick`), one on Solana and Arc, plus one for a Solana symbol. `billableCalls` says how many it used. Token lists are free. 300 calls a month are free; then $0.006 a call from your ChordSI credit. If the script exits with code 4, show the person the message: their credit is empty or a limit was reached, and chordsi.xyz/me is where they top up. ## Chord endpoints it calls - `GET /v1/chains/{chain}/token/{address}/liquidity`: adds and removes of the token's busiest V2 / V3-style pools. - `GET /v1/tokens/stats/{address}?chain=`: the token's liquidity now. - `GET /v1/chains/solana/lp/pools?q=&sort=withdrawals&hours=24`, `GET /v1/chains/solana/search`: Solana. - `GET /v1/arc/token/{address}/pools`: Arc. - Free lookups: `GET /v1/tokens`, `GET /v1/tokens/search`.