{"openapi":"3.1.0","info":{"title":"Amphora API","version":"1.0.0","description":"Read-only HyperEVM credit data: safe LTV from order-book depth, live borrow rates, yields, safety grades, liquidations and wallet loans. Open to any origin; a free key raises the limits.","license":{"name":"Data CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"}},"servers":[{"url":"https://amphora.markets/api/v1"}],"security":[{},{"apiKey":[]}],"tags":[{"name":"Risk"},{"name":"Rates"},{"name":"Yield"},{"name":"Markets"},{"name":"Safety"},{"name":"Liquidations"},{"name":"Governance"},{"name":"Wallets"},{"name":"Amphora"}],"paths":{"/risk":{"get":{"tags":["Risk"],"summary":"Every asset: safe LTV, liquidation threshold, order-book depth and tier","operationId":"risk","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskList"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited. Without a key: 240 calls a minute per IP; with a key: 5x."}}}},"/risk/{coin}":{"get":{"tags":["Risk"],"summary":"One asset's safe LTV and depth","operationId":"riskCoin","parameters":[{"name":"coin","in":"path","required":true,"description":"Hyperliquid coin, e.g. HYPE.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskOne"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited. Without a key: 240 calls a minute per IP; with a key: 5x."}},"x-example":"https://amphora.markets/api/v1/risk/HYPE"}},"/rates":{"get":{"tags":["Rates"],"summary":"Live borrow quotes across lenders, cheapest open first","operationId":"rates","parameters":[{"name":"collateral","in":"query","required":false,"description":"Collateral asset.","schema":{"type":"string","enum":["HYPE","kHYPE","BTC","ETH"],"default":"HYPE"}},{"name":"borrow","in":"query","required":false,"description":"Asset to borrow, e.g. USDC, USDT0, feUSD.","schema":{"type":"string","default":"USDC"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Rates"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited. Without a key: 240 calls a minute per IP; with a key: 5x."}},"x-example":"https://amphora.markets/api/v1/rates?collateral=HYPE&borrow=USDC"}},"/rates/history":{"get":{"tags":["Rates"],"summary":"Rate history recorded every 30 minutes (percent APY), up to 90 days","operationId":"ratesHistory","parameters":[{"name":"borrow","in":"query","required":false,"description":"Borrow asset.","schema":{"type":"string"}},{"name":"supply","in":"query","required":false,"description":"Supply asset (instead of borrow).","schema":{"type":"string"}},{"name":"days","in":"query","required":false,"description":"Days back, up to 90.","schema":{"type":"integer","maximum":90}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited. Without a key: 240 calls a minute per IP; with a key: 5x."}}}},"/rates/impact":{"get":{"tags":["Rates"],"summary":"Borrow APY before and after a borrow of a given size on each lender","operationId":"ratesImpact","parameters":[{"name":"collateral","in":"query","required":false,"description":"Collateral asset.","schema":{"type":"string"}},{"name":"borrow","in":"query","required":false,"description":"Borrow asset.","schema":{"type":"string"}},{"name":"amount","in":"query","required":true,"description":"Amount in the borrow asset.","schema":{"type":"number"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited. Without a key: 240 calls a minute per IP; with a key: 5x."}}}},"/yields":{"get":{"tags":["Yield"],"summary":"Supply rates: lending pools and curated Morpho vaults","operationId":"yields","parameters":[{"name":"asset","in":"query","required":false,"description":"Asset to supply, e.g. USDC.","schema":{"type":"string","default":"USDC"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited. Without a key: 240 calls a minute per IP; with a key: 5x."}},"x-example":"https://amphora.markets/api/v1/yields?asset=USDC"}},"/fixed-yield":{"get":{"tags":["Yield"],"summary":"Pendle PT markets and their fixed APY","operationId":"fixedYield","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited. Without a key: 240 calls a minute per IP; with a key: 5x."}}}},"/real-yield":{"get":{"tags":["Yield"],"summary":"Yield split into real income and incentives","operationId":"realYield","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited. Without a key: 240 calls a minute per IP; with a key: 5x."}}}},"/morpho":{"get":{"tags":["Yield"],"summary":"Morpho markets and vaults on HyperEVM","operationId":"morpho","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited. Without a key: 240 calls a minute per IP; with a key: 5x."}}}},"/funding":{"get":{"tags":["Markets"],"summary":"Hyperliquid funding now and over 7 days","operationId":"funding","parameters":[{"name":"coin","in":"query","required":false,"description":"Coin.","schema":{"type":"string","default":"HYPE"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Funding"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited. Without a key: 240 calls a minute per IP; with a key: 5x."}},"x-example":"https://amphora.markets/api/v1/funding?coin=HYPE"}},"/grades":{"get":{"tags":["Safety"],"summary":"Safety grades for lenders, markets and vaults","operationId":"grades","parameters":[{"name":"compact","in":"query","required":false,"description":"Set to 1 for a short form.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited. Without a key: 240 calls a minute per IP; with a key: 5x."}}}},"/oracles":{"get":{"tags":["Safety"],"summary":"Oracle prices compared with Hyperliquid","operationId":"oracles","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited. Without a key: 240 calls a minute per IP; with a key: 5x."}}}},"/bad-debt":{"get":{"tags":["Safety"],"summary":"Bad debt per lender","operationId":"badDebt","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited. Without a key: 240 calls a minute per IP; with a key: 5x."}}}},"/cascade":{"get":{"tags":["Safety"],"summary":"What liquidations a price drop would trigger","operationId":"cascade","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited. Without a key: 240 calls a minute per IP; with a key: 5x."}}}},"/vault-stress":{"get":{"tags":["Safety"],"summary":"Stress test of a vault's markets","operationId":"vaultStress","parameters":[{"name":"vault","in":"query","required":true,"description":"Vault address.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited. Without a key: 240 calls a minute per IP; with a key: 5x."}}}},"/sandbox":{"get":{"tags":["Safety"],"summary":"Risk sandbox: shock a market or lender and see the outcome","operationId":"sandbox","parameters":[{"name":"kind","in":"query","required":false,"description":"aave or morpho; leave out to list what can be tested.","schema":{"type":"string"}},{"name":"lender","in":"query","required":false,"description":"hyperlend or hypurrfi (kind=aave).","schema":{"type":"string"}},{"name":"market","in":"query","required":false,"description":"Morpho market id (kind=morpho).","schema":{"type":"string"}},{"name":"asset","in":"query","required":false,"description":"Asset.","schema":{"type":"string"}},{"name":"shock","in":"query","required":false,"description":"Price change, e.g. -0.2.","schema":{"type":"number"}},{"name":"value","in":"query","required":false,"description":"Value for the chosen branch.","schema":{"type":"number"}},{"name":"branch","in":"query","required":false,"description":"Which parameter to change.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited. Without a key: 240 calls a minute per IP; with a key: 5x."}}}},"/radar":{"get":{"tags":["Liquidations"],"summary":"Loans closest to liquidation and recent liquidations","operationId":"radar","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited. Without a key: 240 calls a minute per IP; with a key: 5x."}}}},"/liquidators":{"get":{"tags":["Liquidations"],"summary":"Who liquidates on HyperEVM and how much","operationId":"liquidators","parameters":[{"name":"days","in":"query","required":false,"description":"Days back.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited. Without a key: 240 calls a minute per IP; with a key: 5x."}}}},"/pending":{"get":{"tags":["Governance"],"summary":"Queued parameter changes (timelocks) at the lenders","operationId":"pending","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited. Without a key: 240 calls a minute per IP; with a key: 5x."}}}},"/changes":{"get":{"tags":["Governance"],"summary":"Recent parameter changes at the lenders","operationId":"changes","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited. Without a key: 240 calls a minute per IP; with a key: 5x."}}}},"/incidents":{"get":{"tags":["Governance"],"summary":"Protocol incidents on HyperEVM lending","operationId":"incidents","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited. Without a key: 240 calls a minute per IP; with a key: 5x."}}}},"/curators":{"get":{"tags":["Governance"],"summary":"Vault curators and their track record","operationId":"curators","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited. Without a key: 240 calls a minute per IP; with a key: 5x."}}}},"/revenue":{"get":{"tags":["Amphora"],"summary":"Amphora protocol revenue","operationId":"revenue","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited. Without a key: 240 calls a minute per IP; with a key: 5x."}}}},"/vault":{"get":{"tags":["Amphora"],"summary":"The Amphora vault and a deposit preview","operationId":"vault","parameters":[{"name":"size","in":"query","required":false,"description":"Deposit size in USD.","schema":{"type":"number"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited. Without a key: 240 calls a minute per IP; with a key: 5x."}}}},"/wallets/{address}/loans":{"get":{"tags":["Wallets"],"summary":"Every loan of a wallet with health factors","operationId":"walletsAddressLoans","parameters":[{"name":"address","in":"path","required":true,"description":"Wallet address (0x…).","schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Loans"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited. Without a key: 240 calls a minute per IP; with a key: 5x."}}}},"/wallets/{address}/interest":{"get":{"tags":["Wallets"],"summary":"What a wallet earns and pays, per month","operationId":"walletsAddressInterest","parameters":[{"name":"address","in":"path","required":true,"description":"Wallet address (0x…).","schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited. Without a key: 240 calls a minute per IP; with a key: 5x."}}}}},"components":{"schemas":{"Depth":{"type":"object","properties":{"band":{"type":"number","description":"Distance from mid, e.g. 0.02 = 2%."},"bidUsd":{"type":"number"},"askUsd":{"type":"number"}}},"Asset":{"type":"object","properties":{"coin":{"type":"string"},"mid":{"type":"number"},"spreadBps":{"type":"number"},"depth":{"type":"array","items":{"$ref":"#/components/schemas/Depth"}},"safeLtv":{"type":"number","description":"Highest LTV Amphora considers safe (0–0.7)."},"liqThreshold":{"type":"number"},"tier":{"type":"string","enum":["Deep","Moderate","Thin","Too thin"]},"fundingApr":{"type":"number"},"dayVolumeUsd":{"type":"number"},"change24h":{"type":"number"}}},"RiskList":{"type":"object","properties":{"method":{"type":"string","description":"How safe LTV is computed."},"assets":{"type":"array","items":{"$ref":"#/components/schemas/Asset"}},"updatedAt":{"type":"number"}}},"RiskOne":{"type":"object","properties":{"asset":{"$ref":"#/components/schemas/Asset"},"updatedAt":{"type":"number"}}},"Quote":{"type":"object","properties":{"lender":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"url":{"type":"string"},"kind":{"type":"string"}}},"borrowApy":{"type":"number","description":"Percent."},"maxLtv":{"type":"number"},"liquidityUsd":{"type":"number"},"borrowSymbol":{"type":"string"},"open":{"type":"boolean"},"direct":{"type":"boolean","description":"Can be borrowed from Amphora directly."},"note":{"type":"string"},"status":{"type":"string"}}},"Rates":{"type":"object","properties":{"collateral":{"type":"string"},"borrow":{"type":"string"},"quotes":{"type":"array","items":{"$ref":"#/components/schemas/Quote"}}}},"Funding":{"type":"object","properties":{"coin":{"type":"string"},"nowApr":{"type":"number"},"avg7Apr":{"type":"number"},"positiveShare":{"type":"number"},"markPx":{"type":"number"},"points":{"type":"array","items":{"type":"array","items":{"type":"number"},"description":"[time ms, hourly rate]"}}}},"Loans":{"type":"object","description":"Positions on Aave-style lenders, Felix troves and Morpho loans, each with a health factor.","additionalProperties":true},"Error":{"type":"object","properties":{"error":{"type":"string"}}}},"securitySchemes":{"apiKey":{"type":"apiKey","in":"header","name":"x-api-key","description":"Optional. Get one free on /developers."}}}}