{"slug":"acp-ratehopper-ai-x402-provide-borrowing-rate-history-7c021d","title":"Historical borrow rates across Aave v3, Morpho, Compound v3, Moonwell and Fluid","host":"acp.ratehopper.ai","method":"POST","resource":"https://acp.ratehopper.ai/x402/provide_borrowing_rate_history","category":"market","description":"Historical borrow rates across Aave v3, Morpho, Compound v3, Moonwell and Fluid. BORROW rates only - supply rates live on provide_lending_rate_history. Five shapes: end-of-day moving averages across a chain (mode=eod), raw hourly snapshots (mode=hourly), one market's whole retained history (mode=ful","price_listed":0.01,"price_asked":0.01,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":340,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"assetAddress":{"description":"Token contract address filter (mode=hourly | full)","example":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","examples":["0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"],"type":"string"},"chainId":{"default":8453,"description":"Chain id, e.g. 8453 for Base (mode=eod)","example":8453,"examples":[8453],"exclusiveMinimum":0,"type":"number"},"days":{"default":30,"description":"Trailing days to return (mode=eod)","example":30,"examples":[30],"exclusiveMinimum":0,"maximum":365,"type":"number"},"externalMarketId":{"description":"Market identifier filter. Get one from provide_lending_markets.","example":"0x1c21c59df9db44bf6f645d854ee710a8ca17b479451447e9f56758aee10a2fad","examples":["0x1c21c59df9db44bf6f645d854ee710a8ca17b479451447e9f56758aee10a2fad"],"type":"string"},"limit":{"default":100,"description":"Rows per page","example":100,"examples":[100],"exclusiveMinimum":0,"maximum":1000,"type":"number"},"mode":{"default":"eod","description":"eod = end-of-day moving averages across a chain; hourly = raw hourly snapshots; full = one market’s whole retained history (requires slug); weekly = weekly protocol-averaged trends (requires symbols and slugs); usdc-comparison = the USDC comparison table.","enum":["eod","hourly","full","weekly","usdc-comparison"],"example":"eod","examples":["eod"],"type":"string"},"offset":{"default":0,"description":"Page offset","example":0,"examples":[0],"maximum":100000,"minimum":0,"type":"number"},"slug":{"description":"Single protocol slug, e.g. aave_v3_base. Required when mode=full. List them with provide_lending_markets.","example":"aave_v3_base","examples":["aave_v3_base"],"type":"string"},"slugs":{"description":"Several protocol slugs (mode=hourly | weekly). List them with provide_lending_markets.","example":["aave_v3_base","morpho_v1_base"],"examples":[["aave_v3_base","morpho_v1_base"]],"items":{"type":"string"},"type":"array"},"snapshotTime":{"description":"ISO-8601 instant; pins mode=hourly to one snapshot","example":"2026-08-01T00:00:00Z","examples":["2026-08-01T00:00:00Z"],"type":"string"},"symbol":{"description":"Token symbol filter, e.g. USDC, WETH, cbBTC (mode=eod)","example":"USDC","examples":["USDC"],"type":"string"},"symbols":{"description":"Asset symbols to trend, e.g. USDC, WETH, cbBTC. Required when mode=weekly.","example":["USDC","WETH"],"examples":[["USDC","WETH"]],"items":{"type":"string"},"type":"array"},"weeks":{"default":25,"description":"Weeks of history to return","example":25,"examples":[25],"exclusiveMinimum":0,"maximum":260,"type":"number"}},"required":[],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"cached":{"description":"Whether this was served from cache","type":"boolean"},"data":{"description":"The BORROW-rate payload. mode=hourly returns a bare ARRAY of hourly rate rows; mode=eod and mode=full return { success, data: { rates, total } } with per-horizon moving-average APYs; mode=weekly returns { success, data: [{ date, rates: { <slug>: { <symbol>: {...} } } }] } - one entry per week; mode=usdc-comparison returns the comparison table."},"endpoint":{"description":"Upstream path the payload came from","type":"string"},"error":{"description":"Present when status=failed","type":"string"},"fetchedAt":{"description":"ISO-8601 time the payload was read","type":"string"},"offering":{"description":"Echo of the offering name","type":"string"},"query":{"description":"The resolved query, so the read is reproducible","type":"object"},"source":{"description":"Upstream that produced the data (rh-history)","type":"string"},"status":{"description":"completed, or failed with an error field","type":"string"}},"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-30","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":340,"error":null}],"description_full":"Historical borrow rates across Aave v3, Morpho, Compound v3, Moonwell and Fluid. BORROW rates only - supply rates live on provide_lending_rate_history. Five shapes: end-of-day moving averages across a chain (mode=eod), raw hourly snapshots (mode=hourly), one market's whole retained history (mode=full), weekly protocol-averaged trends for any symbols up to 260 weeks back (mode=weekly, sub-$250k markets excluded), or the cross-protocol USDC borrow comparison table (mode=usdc-comparison).","last_updated":"2026-11-30T07:56:47.281Z","schemes":["exact"]}