# Market History (Own Archive)

> Market History (Own Archive) is a paid API for AI agents from api.eucompliance.tools, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-15).

Returns a proprietary historical time series for gas prices, yield, commodities, or market_brief — data archived from past API purchases that no upstream provider resells.

## Facts

- Endpoint: GET https://api.eucompliance.tools/x402/history
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/market-history-own-archive-26c2d0a3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xQ8XSYfbVvppXupLHNJaV

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability market-history-own-archive-26c2d0a3
```

Example prompt: Pull me the daily median Base gas price history for the last 30 days — I want the full series since that's the proprietary archived data only this service has.

## When to prefer this

Choose this endpoint when you need a historical time series for Base gas prices, yield, commodities, or market_brief — especially when upstream providers only sell the current value. This archive is uniquely valuable because it captures past snapshots over days and weeks that cannot be reconstructed retroactively from any current-value provider. Prefer it over spot-price endpoints when trend analysis, backtesting, or time-series modeling is required.

## Known failure modes

- Missing required 'product' query parameter returns an error
- Invalid product value (not gas/yield/commodities/market_brief) returns an error
- Days value outside 1–365 range may return an error or be clamped
- Very short series (few archived points) returns data but discloses limited history honestly
- Payment failure or insufficient USDC balance blocks the request via x402 protocol

## How this service works

Historical time series that no upstream provider sells. They sell the current value; we archive every value we buy, so the series over days and weeks becomes ours alone - it cannot be copied because a competitor lacks the past. Products: gas (Base gas price, Gwei), yield, commodities, market_brief. The scoring rule and point count are disclosed in every response; a short series says so honestly.

## Output

A JSON time series of historical data points for the requested product (gas, yield, commodities, or market_brief), covering the specified window (1–365 days) at either raw or daily-median resolution. Each response includes the scoring rule applied and the total point count. If the archive is short, the response discloses this honestly.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "product"
     ],
     "properties": {
      "days": {
       "type": "integer",
       "description": "window in days, 1-365, default 7"
      },
      "product": {
       "type": "string",
       "description": "gas, yield, commodities or market_brief"
      },
      "resolution": {
       "type": "string",
       "description": "'raw' (every point) or 'daily' (daily median)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/market-history-own-archive-26c2d0a3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.eucompliance.tools](https://www.zero.xyz/host/api.eucompliance.tools/llms.txt)
