Integrating
interface IRequiemFeeds {
function latest(uint256 feedId) external view
returns (int256 value, uint64 observedAt, uint64 round, bool flagged);
function valueAt(uint256 feedId, uint256 round) external view
returns (int256 value, uint64 observedAt);
function roundAt(uint256 feedId, uint256 timestamp) external view
returns (uint64 round);
function pending(uint256 feedId) external view
returns (int256 value, uint64 observedAt, uint64 round, uint64 finalAt, uint8 status);
function isFinal(uint256 feedId, uint256 round) external view returns (bool);
}
contract UsesHype {
IRequiemFeeds constant REQUIEM = IRequiemFeeds(REQUIEM_FEEDS);
function hypeUsd() internal view returns (uint256) {
(int256 v, uint64 at, , bool flagged) = REQUIEM.latest(0); // HYPE/USD mid, 1e18
require(!flagged && block.timestamp - at <= 75 minutes && v > 0, "requiem");
return uint256(v);
}
}Settled funding by hour
Hourly feeds store one round per settled hour, so roundAt(3, h * 3600) then valueAt(3, round) returns HYPE's funding rate for hour h, as Hyperliquid settled it. The hourly recipes work the same way: roundAt(7, T) then valueAt(7, round) is HYPE's TWAP for the hour ending at T.
Off chain
GET /api/recipesevery recipe with its definition, inputs and parameters, the value computed now with the inputs that went into it, its last round and signers, and its final value;?key=hype-depth-2pctfor one.GET /api/feedsevery feed with its live value (Hyperliquid's, or the recipe computed now), final value, pending round, pool and next round;?key=hype-midfor one.GET /api/feeds/history?key=hype-mid&range=24h,GET /api/rounds?feed=0,GET /api/reporters,GET /api/reporters/a,GET /api/disputes,GET /api/network.- SDK:
/sdk/requiem.js, one ES module with no dependency. - MCP:
POST /mcp, keyless Streamable HTTP; reads and calldata, it never signs. /skill.md: one file an agent reads to use Requiem.