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/normalizeEingaben
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
| chain | string | Ja | |
| protocol | string | Ja | Protocol id as the directory names it, for example "aave-v3", "uniswap-v3", "aerodrome-v1". |
| pool | string | Ja | Directory pool id (uuid) or the pool symbol, for example "WETH-USDC". |
| stake_sizes_usd | array | Nein | Stake 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."
}
}
}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
- Defiwerk0,008 USDC
bridge / quote
POSThttps://defi.halowerk.com/bridge/quoteFetches live offers from a public bridge aggregator and reports for every option what arrives, what it costs in fees and gas, and how long it usually takes. The security model is given equal weight to the price: bridges are the most expensi
- Defiwerk0,005 USDC
dex / quote
POSThttps://defi.halowerk.com/dex/quoteFor a given chain, token pair and input amount, every connected DEX is queried through its own contracts: Uniswap V3 through the Quoter via eth_call across all fee tiers, constant-product pools through the pool maths on live reserves, Solid
- Defiwerk0,006 USDC
lending / health
POSThttps://defi.halowerk.com/lending/healthResolves pool, price oracle and data provider through the protocol address provider rather than hard-coded addresses, then reads every reserve the wallet touches: collateral amounts, variable and stable debt, LTV, liquidation threshold, liq