Zum Inhalt
HALOWERK

Defiwerk

yield / normalize

Resolves a pool in a public yield directory by chain, protocol and pool id or symbol, then rebuilds the number a buyer actually needs. Advertised total APY and a conservative APY are reported separately: the conservative figure uses the trailing seven-day realised base yield and deliberately excludes token emissions, because emissions are only worth what the reward token is worth. Every reward token is priced at the moment of the call and that price is stated as the assumption it is; the end.

POST https://defi.halowerk.com/yield/normalize

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
chainstringJa
protocolstringJaProtocol id as the directory names it, for example "aave-v3", "uniswap-v3", "aerodrome-v1".
poolstringJaDirectory pool id (uuid) or the pool symbol, for example "WETH-USDC".
stake_sizes_usdarrayNeinStake sizes for net_apy_after_gas. Default 200, 1000, 10000, 100000.
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "required": [
    "chain",
    "protocol",
    "pool"
  ],
  "additionalProperties": false,
  "properties": {
    "chain": {
      "type": "string",
      "enum": [
        "base",
        "ethereum",
        "arbitrum",
        "optimism",
        "polygon"
      ]
    },
    "protocol": {
      "type": "string",
      "description": "Protocol id as the directory names it, for example \"aave-v3\", \"uniswap-v3\", \"aerodrome-v1\"."
    },
    "pool": {
      "type": "string",
      "description": "Directory pool id (uuid) or the pool symbol, for example \"WETH-USDC\"."
    },
    "stake_sizes_usd": {
      "type": "array",
      "items": {
        "type": "number",
        "minimum": 1,
        "maximum": 100000000
      },
      "maxItems": 8,
      "description": "Stake sizes for net_apy_after_gas. Default 200, 1000, 10000, 100000."
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "chain": "base",
  "protocol": "beispiel",
  "pool": "beispiel"
}

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 →