{
  "service": "METAR Settle",
  "summary": "Settlement values for Polymarket daily highest/lowest temperature markets, computed exactly the way the market rules define them from Aviation Weather Center METARs. Most traders watch a weather app's daily high; these markets settle on the hourly T-group remark of routine reports only (SPECI excluded), timed by the report's own stamp in station local time, rounded half up. The paid call returns the qualifying value so far, the range it is in, and ranges that are already impossible but still priced.",
  "payment": {
    "protocol": "x402 (v1 and v2)",
    "network": "Base (eip155:8453)",
    "asset": "USDC",
    "payTo": "0x600ef397d4e6ddcdd48e89ec5d88830747475deb",
    "facilitator": "https://facilitator.payai.network"
  },
  "endpoints": {
    "/v1/polymarket/weather": {
      "price_usdc": 0.01,
      "description": "Live settlement state of one Polymarket daily highest/lowest temperature market, computed exactly as its rules say from Aviation Weather Center METARs: qualifying value so far (routine reports only, T-group tenths with body fallback, report timestamp in station local time, half-up rounding), the range it falls in, ranges already impossible with their current Yes prices, every observation counted or excluded with the reason, and time left in the local day.",
      "query": {
        "slug": "Polymarket event slug, e.g. highest-temperature-in-nyc-on-december-5-2026"
      }
    },
    "/v1/metar/extreme": {
      "price_usdc": 0.005,
      "description": "Highest or lowest temperature of one station's local calendar day from routine METARs, with Polymarket-style rules (SPECI excluded, T-group tenths with body fallback, report timestamp in local time) and half-up rounding to whole °C or °F. Works for any supported ICAO station without a market.",
      "query": {
        "station": "ICAO code, e.g. KLGA, RKSI, EGLC",
        "date": "Local date YYYY-MM-DD (default: today at the station)",
        "kind": "high or low (default high)",
        "unit": "C or F (default C)"
      }
    }
  },
  "free": {
    "markets": "https://metar-settle.manifester.workers.dev/v1/polymarket/weather/markets",
    "rules": "https://metar-settle.manifester.workers.dev/v1/polymarket/weather/rules?slug=<event slug>",
    "sample": "https://metar-settle.manifester.workers.dev/v1/sample",
    "mcp": "https://metar-settle.manifester.workers.dev/mcp",
    "docs": "https://metar-settle.manifester.workers.dev/llms.txt",
    "openapi": "https://metar-settle.manifester.workers.dev/openapi.json"
  },
  "rules_implemented": [
    "Routine reports only: a report whose line begins with SPECI does not count; unlabeled and off-hour reports count.",
    "Temperature from the RMK T-group (T + sign + 3 digits tenths °C + dew point); if absent, the body temperature group in whole °C (M = minus).",
    "An observation belongs to the local calendar day of its own ddhhmmZ timestamp in the station time zone (DST aware), not the feed's rounded reportTime.",
    "Rounding half up to whole °C, or to whole °F via F = C*9/5+32 computed exactly from tenths.",
    "Highest-temperature markets: ranges entirely below the running max are impossible; lowest-temperature markets: ranges above the running min."
  ],
  "source_code": "https://github.com/flowlabassit-lgtm/metar-settle",
  "disclaimer": "Computed from public Aviation Weather Center METAR data following each market's published rules. Not affiliated with Polymarket, NOAA or the Aviation Weather Center. Not financial advice; the market's own resolution is final. Late or corrected reports can change the value until resolution."
}