hive-dex-pool-analysis — DEX And Pool Analysis
Analyze on-chain DEX pools and pairs: liquidity, swaps, OHLCV, trends, and
token-level DEX flow, keeping pool-level and token-level facts clearly
separate.
Task toolset and identifiers
Toolset: onchain_dex_pool_analysis. Read
hive://toolsets/onchain_dex_pool_analysis before execution; it is
authoritative for the current output schema, material-call budget, phases,
fallback condition, and stop conditions.
- Required: chain/network plus pair/pool address, token contract, or both
token sides.
- Optional: DEX name, time window, candle interval, trade direction.
If the user gives only one token, search candidate pools and prefer the pool
most relevant by liquidity/volume — and say which pool you chose, because the
same pair can have several pools with different fee tiers.
Before choosing endpoints, select exactly one matching entry from the exact
workflow's routes[]. Follow its ordered steps, use a fallback only under that
step's published condition, stop at four material calls, and preserve the
selected route_id in the typed result. The broad coverageCatalog is discovery
coverage, not an execution plan.
Procedure
- Resolve chain and pool/pair/token identifiers.
- Call
search_tools for pair search, pool info, liquidity, trades, OHLCV,
and trending-pool capabilities.
- Call
get_api_endpoint_schema for each endpoint before calling it.
- Start with pool/pair metadata and liquidity; add trades/OHLCV for flow or
trend questions.
- Report liquidity depth, recent flow, and data freshness.
Bounded calls
- Limit trade lists and candle counts.
- Do not infer token-wide liquidity from one pool without saying so.
- Keep pool-level and token-level metrics separate.
Worked example
User: "How deep is the main PEPE/WETH pool on Ethereum, and which way has
flow gone today?"
search_tools → {"query": "dex pair search pool liquidity trades ethereum", "limit": 5}
- Resolve candidate pools for PEPE
(0x6982508145454Ce325dDbE47a25d4ec3d2311933), pick the deepest PEPE/WETH
pool, and state the choice.
get_api_endpoint_schema then invoke_api_endpoint for pool info,
liquidity, and a bounded trade list (explicit limit, today's window).
- Report depth, net flow direction, and freshness with the template below.
Report template
## Summary
[Pool/liquidity/trade-flow read in one or two sentences.]
## Calls made
- Toolset: onchain_dex_pool_analysis
- Endpoint(s): [exact endpoint names]
- Identifiers: [chain, pair/pool/token addresses]
## Evidence
- Liquidity: [depth, fee tier, venue]
- Flow: [trades, volume, OHLCV in window]
- Provenance: [provider, fetched_at, observed_at/cache_age_ms, runtime status per call]
## Caveats
[Missing pools, stale candles, thin liquidity, degraded provider.]
## Next action
[Compare pools, widen time window, or add token diligence — only if needed.]
Gotchas
- The same token pair can have multiple pools with different fee tiers and
liquidity.
- Trending pools are not necessarily safe or liquid.
- OHLCV data can be unavailable even when pair metadata exists.
Evidence receipt (required)
End every Hive-backed answer with a compact receipt built from the _hive
object on each material tool response:
provider, tool, fetched_at, observed_at, cache_age_ms, and runtime_status
receipt_id, receipt_version, server/build version, and SHA-256 input/result
digests when present (self-checks, not signatures)
source, cache_status, truncated, and any warnings
- canonical chain/entity identifiers plus block, slot, transaction, or query ids
present in provider data
- material provider disagreements and how they were handled
- checks that were unavailable, gated, stale, truncated, or intentionally not run
- a
claims[] citation from each material statement to exact receipt IDs
- one
coverage[] entry for every canonical evidence phase, with each gap explained
Never turn missing evidence into a clean result, silently merge conflicting
provider values, or omit a degraded/fallback call from the receipt.
observed_at is Hive's first-observation/original cache-population time, and
cache_age_ms: 0 only means newly retrieved by Hive. Use provider time, block,
slot, transaction, or candle close for source recency; if absent, mark it
unknown. Run validate_task_result before presenting the typed workflow result;
it checks structure but cannot authenticate an invented receipt.
Runtime status handling
If a DEX/pool endpoint is degraded, fall back to pair search or token-pool
tools and state which exact metric is missing.
Hand-offs
- CEX prices, order books, funding, derivatives →
hive-market-research.
- Whole-token diligence (holders, risk, metadata) →
hive-token-diligence.
- Pool-token purchase risk →
hive-security-risk.
1---2name: hive-dex-pool-analysis3description: Use this skill when the user asks about a DEX pool or trading pair — liquidity depth, recent swaps/trades, OHLCV candles, trending pools, fee tiers, or token-level DEX flow on a chain — including "how deep is the X/Y pool", "what's trading on Uniswap", or a pasted pair address. For CEX prices, order books, and funding use hive-market-research; for whole-token diligence use hive-token-diligence.4license: MIT5---67# hive-dex-pool-analysis — DEX And Pool Analysis89Analyze on-chain DEX pools and pairs: liquidity, swaps, OHLCV, trends, and10token-level DEX flow, keeping pool-level and token-level facts clearly11separate.1213## Task toolset and identifiers1415Toolset: `onchain_dex_pool_analysis`. Read16`hive://toolsets/onchain_dex_pool_analysis` before execution; it is17authoritative for the current output schema, material-call budget, phases,18fallback condition, and stop conditions.1920- Required: chain/network plus pair/pool address, token contract, or both21 token sides.22- Optional: DEX name, time window, candle interval, trade direction.2324If the user gives only one token, search candidate pools and prefer the pool25most relevant by liquidity/volume — and say which pool you chose, because the26same pair can have several pools with different fee tiers.2728Before choosing endpoints, select exactly one matching entry from the exact29workflow's routes[]. Follow its ordered steps, use a fallback only under that30step's published condition, stop at four material calls, and preserve the31selected route_id in the typed result. The broad coverageCatalog is discovery32coverage, not an execution plan.3334## Procedure35361. Resolve chain and pool/pair/token identifiers.372. Call `search_tools` for pair search, pool info, liquidity, trades, OHLCV,38 and trending-pool capabilities.393. Call `get_api_endpoint_schema` for each endpoint before calling it.404. Start with pool/pair metadata and liquidity; add trades/OHLCV for flow or41 trend questions.425. Report liquidity depth, recent flow, and data freshness.4344## Bounded calls4546- Limit trade lists and candle counts.47- Do not infer token-wide liquidity from one pool without saying so.48- Keep pool-level and token-level metrics separate.4950## Worked example5152User: "How deep is the main PEPE/WETH pool on Ethereum, and which way has53flow gone today?"54551. `search_tools` → `{"query": "dex pair search pool liquidity trades ethereum", "limit": 5}`562. Resolve candidate pools for PEPE57 (0x6982508145454Ce325dDbE47a25d4ec3d2311933), pick the deepest PEPE/WETH58 pool, and state the choice.593. `get_api_endpoint_schema` then `invoke_api_endpoint` for pool info,60 liquidity, and a bounded trade list (explicit limit, today's window).614. Report depth, net flow direction, and freshness with the template below.6263## Report template6465```markdown66## Summary67[Pool/liquidity/trade-flow read in one or two sentences.]6869## Calls made70- Toolset: onchain_dex_pool_analysis71- Endpoint(s): [exact endpoint names]72- Identifiers: [chain, pair/pool/token addresses]7374## Evidence75- Liquidity: [depth, fee tier, venue]76- Flow: [trades, volume, OHLCV in window]77- Provenance: [provider, fetched_at, observed_at/cache_age_ms, runtime status per call]7879## Caveats80[Missing pools, stale candles, thin liquidity, degraded provider.]8182## Next action83[Compare pools, widen time window, or add token diligence — only if needed.]84```8586## Gotchas8788- The same token pair can have multiple pools with different fee tiers and89 liquidity.90- Trending pools are not necessarily safe or liquid.91- OHLCV data can be unavailable even when pair metadata exists.9293## Evidence receipt (required)9495End every Hive-backed answer with a compact receipt built from the `_hive`96object on each material tool response:9798- `provider`, `tool`, `fetched_at`, `observed_at`, `cache_age_ms`, and `runtime_status`99- `receipt_id`, `receipt_version`, server/build version, and SHA-256 input/result100 digests when present (self-checks, not signatures)101- `source`, `cache_status`, `truncated`, and any warnings102- canonical chain/entity identifiers plus block, slot, transaction, or query ids103 present in provider data104- material provider disagreements and how they were handled105- checks that were unavailable, gated, stale, truncated, or intentionally not run106- a `claims[]` citation from each material statement to exact receipt IDs107- one `coverage[]` entry for every canonical evidence phase, with each gap explained108109Never turn missing evidence into a clean result, silently merge conflicting110provider values, or omit a degraded/fallback call from the receipt.111`observed_at` is Hive's first-observation/original cache-population time, and112`cache_age_ms: 0` only means newly retrieved by Hive. Use provider time, block,113slot, transaction, or candle close for source recency; if absent, mark it114unknown. Run `validate_task_result` before presenting the typed workflow result;115it checks structure but cannot authenticate an invented receipt.116117## Runtime status handling118119If a DEX/pool endpoint is `degraded`, fall back to pair search or token-pool120tools and state which exact metric is missing.121122## Hand-offs123124- CEX prices, order books, funding, derivatives → `hive-market-research`.125- Whole-token diligence (holders, risk, metadata) → `hive-token-diligence`.126- Pool-token purchase risk → `hive-security-risk`.