ToolAssay

Historical commodity OHLC bars (gzip required)

Historical commodity OHLC bars (gzip required). Requires `Accept-Encoding: gzip`. Covers precious metals (XAUUSD, XAGUSD, XPTUSD, XPDUSD), energy, and industrials (e.g. XCUUSD copper, USOUSD WTI, NATGAS). Volume may be 0 for instruments without a reported tick count. When `start` predates upstream coverage the API returns `422` with code `data_unavailable` and an `earliest` field carrying the first date it can serve. Pay per call in USDC via x402; no account or API key.

Answeringour last check, 2026-11-27
1 of 1checks answered this week
827 msmedian answer time
$0.01listed price per call
$0.01price it asked us

Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.

Endpoint

GET https://x402.sifting.io/v1/hist/commodities/:symbol/bars

CategoryCode and developer
Provider hostx402.sifting.io
Networkseip155:8453
Payment schemesexact
Self-reported calls, 30 days3 from 1 payers (the provider's figure, not ours)

Our checks, last 30 days

DayResultHTTPAskedTime
2026-11-27 valid payment request 402$0.01 827 ms

Example input (from the provider)

{
  "method": "GET",
  "pathParams": {
    "symbol": "XAUUSD"
  },
  "queryParams": {
    "interval": "1h",
    "limit": 1000,
    "order": "asc",
    "start": "2026-11-01"
  },
  "type": "http"
}

Promised output schema (from the provider)

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET"
          ],
          "type": "string"
        },
        "pathParams": {
          "properties": {
            "symbol": {
              "description": "Commodity code (4-12 upper alphanumerics), e.g. `XAUUSD`, `XCUUSD`.",
              "type": "string"
            }
          },
          "required": [
            "symbol"
          ],
          "type": "object"
        },
        "queryParams": {
          "properties": {
            "cursor": {
              "description": "Opaque pagination cursor from a previous response's `meta.next_cursor`.",
              "type": "string"
            },
            "end": {
              "description": "Inclusive upper bound. Default now.",
              "type": "string"
            },
            "interval": {
              "default": "1m",
              "description": "Bar interval. Default 1m. Full set: intraday (1m\u20131h), `1d` (daily candle with a true session boundary), `1w` (Monday-aligned), and `1mo` (calendar month), all aggregated from 1-minute history.",
              "enum": [
                "1m",
                "5m",
                "15m",
                "30m",
                "1h",
                "1d",
                "1w",
                "1mo"
              ],
              "type": "string"
            },
            "limit": {
              "default": 1000,
              "maximum": 2000,
              "type": "integer"
            },
            "order": {
              "default": "asc",
              "description": "Sort direction by time. `asc` (default) returns oldest\u2192newest. `desc` returns newest\u2192oldest and anchors the first page at the most recent bar, so fetching the latest N costs one request instead of paging the whole window. Supported on commodities and forex only; other historical routes are ascending-only.",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            },
            "start": {
              "description": "Inclusive lower bound (YYYY-MM-DD or RFC3339). Required.",
              "type": "string"
            }
          },
          "required": [
            "start"
          ],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "data": {
              "items": {
                "properties": {
                  "c": {
                    "type": "number"
                  },
                  "h": {
                    "type": "number"
                  },
                  "l": {
                    "type": "number"
                  },
                  "o": {
                    "type": "number"
                  },
                  "t": {
                    "type": "integer"
                  },
                  "v": {
                    "type": "number"
                  }
                },
                "type": "object"
              },
              "type": "array"
            },
            "meta": {
              "properties": {
                "as_of": {
                  "format": "date-time",
                  "type": "string"
                },
                "interval": {
                  "type": "string"
                },
                "next_cursor": {
                  "type": "string"
                },
                "symbol": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}

This page as JSON