Zum Inhalt
HALOWERK

Defiwerk

pool / liquidity

Resolves a pool either by address or by chain, token pair and DEX, then reads token0, token1, fee tier, reserves, in-range liquidity and the current tick straight from the contract. Exit impact is not estimated from a formula but simulated: for Uniswap V3 through the official Quoter contract via eth_call, which walks the same ticks a real swap would and reports how many it crossed; for constant-product and Solidly pools through the pool maths or the pool own getAmountOut. Nothing is ever.

POST https://defi.halowerk.com/pool/liquidity

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
chainstringJa
poolstringNeinPool address. Either this or token_a plus token_b plus dex.
token_astringNein
token_bstringNein
dexstringNeinDEX id, required together with token_a and token_b.
fee_tier_ppmintegerNeinOptional fee tier in parts per million for Uniswap V3. Omitted means the deepest tier.
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "required": [
    "chain"
  ],
  "additionalProperties": false,
  "properties": {
    "chain": {
      "type": "string",
      "enum": [
        "base",
        "ethereum",
        "arbitrum",
        "optimism",
        "polygon"
      ]
    },
    "pool": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{40}$",
      "description": "Pool address. Either this or token_a plus token_b plus dex."
    },
    "token_a": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{40}$"
    },
    "token_b": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{40}$"
    },
    "dex": {
      "type": "string",
      "description": "DEX id, required together with token_a and token_b."
    },
    "fee_tier_ppm": {
      "type": "integer",
      "enum": [
        100,
        500,
        3000,
        10000
      ],
      "description": "Optional fee tier in parts per million for Uniswap V3. Omitted means the deepest tier."
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "chain": "base"
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →