Squidlor
Loading docs

Taking longer than usual. Check your connection, or reload the page.

Quick start

Read a Squidlor price from a Solidity contract or over plain HTTP. No SDK and no API key needed to start.

Squidlor feeds are readable two ways, and both hit the same on-chain state:

  • On-chain, through the standard Chainlink AggregatorV3Interface. If your contract already reads a Chainlink feed, you change one address.
  • Off-chain, through the public read API, which returns JSON over HTTPS. No key is required to start; a free key raises your rate limit from 30 to 300 requests/minute.

Read a price on-chain

Every pair has its own SquidlorOracleAggregator instance that implements Chainlink's interface. Point your existing consumer code at it.

Solidity
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

interface IAggregatorV3 {
    function decimals() external view returns (uint8);
    function description() external view returns (string memory);
    function latestRoundData()
        external
        view
        returns (
            uint80 roundId,
            int256 answer,
            uint256 startedAt,
            uint256 updatedAt,
            uint80 answeredInRound
        );
}

contract PriceConsumer {
    // BTC/USD aggregator on Arc mainnet. Take the address from /networks/addresses;
    // Arc Testnet uses a different one, resolvable from the testnet registry.
    IAggregatorV3 public constant BTC_USD =
        IAggregatorV3(0x7D86f28D1BBECf39f7BB192a1c26C7c19447E47C); // Arc (5042)

    /// @notice Latest BTC/USD price, reverting if the feed has gone stale.
    function btcPrice(uint256 maxAge) external view returns (int256) {
        (, int256 answer, , uint256 updatedAt, ) = BTC_USD.latestRoundData();

        require(answer > 0, "invalid price");
        require(block.timestamp - updatedAt <= maxAge, "stale price");

        return answer; // 8 decimals
    }
}

That is the whole integration. Aggregator addresses for every pair are in deployed addresses, generated from the deployment manifest for the Arc network currently served. On Arc each aggregator has one on-chain source today, Squidlor's own feed, so read peek() for healthyCount rather than assuming two legs; see Arc.

Important

Always bound staleness yourself. The aggregator drops sources it considers unhealthy, but your protocol decides what age of price is acceptable for the risk it is taking. Never read answer without also checking updatedAt.

For the richer read paths (peek(), historical rounds, and committing a round with poke()), see read prices on-chain.

Read a price off-chain

The public API needs no key. Ask for one value:

Shell
curl https://api.squidlor.com/aggregator/v1/arc/feeds/BTC_USD/value
JSON
{
  "pair": "BTC/USD",
  "chainId": 5042,
  "value": "75546.5",
  "valueRaw": "7554650000000",
  "decimals": 8,
  "healthyCount": 1,
  "updatedAt": 1789567706
}

healthyCount is the point: it says how many on-chain sources were fresh for the value. On Arc that is 1 today (Squidlor's own feed, itself an off-chain median of several exchanges) and becomes 2 when a second oracle network publishes on Arc. Captured from the live API on 2026-09-16; chainId 5042 is Arc mainnet.

Note the pair format: a URL uses _ where the pair uses /, so BTC/USD becomes BTC_USD.

List everything configured on a chain:

Shell
curl https://api.squidlor.com/aggregator/v1/arc/feeds

The full surface, including per-source breakdowns, history, OHLC candles and provider scorecards, is in the API reference.

Ask in natural language

Oracle Chat answers questions about live feed state without any integration work, and the MCP server exposes the same data as tools your own agent can call. The hub at app.squidlor.com streams the same answers next to the markets, the launch board and the builder portal.

Which BTC sources are currently unhealthy, and how far apart are they?