KAIRO
Docs · 06

Integrating

interface IKairoFeeds {
  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 {
  IKairoFeeds constant KAIRO = IKairoFeeds(KAIRO_FEEDS);
  function hypeUsd() internal view returns (uint256) {
    (int256 v, uint64 at, , bool flagged) = KAIRO.latest(0); // HYPE/USD mid, 1e18
    require(!flagged && block.timestamp - at <= 75 minutes && v > 0, "kairo");
    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 print for hour h, as Hyperliquid settled it.

Off chain

  • GET /api/feeds every feed with Hyperliquid's value, final value, pending round, pool and next round; ?key=hype-mid for 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/kairo.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 Kairo.