# QSIG Gold Macro Context

> QSIG Gold Macro Context is a paid API for AI agents from x402.qsig.net, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-31).

Returns a point-in-time gold macro context snapshot including regime label, CFTC positioning, FRED real yield and breakeven, GeoRisk stress, gold-linked theme stress, and the 5 nearest historical analogs — with optional as_of for look-ahead-free backtesting.

## Facts

- Endpoint: GET https://x402.qsig.net/v1/gold/context?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/qsig-gold-macro-context-fbd296dd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nuBx1Ag_3qkEqBj4FRSiN

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 qsig-gold-macro-context-fbd296dd
```

Example prompt: Pull me the current gold macro context — I want the regime label, CFTC positioning, real yield and breakeven from FRED, geopolitical risk stress, and the 5 nearest historical analogs right now.

## When to prefer this

Choose this endpoint when you need a synthesized, multi-source macro context snapshot for gold that combines CFTC positioning, FRED macro indicators, geopolitical risk, and historical analog matching in a single call. It is especially valuable for backtesting workflows requiring point-in-time accuracy (no look-ahead) and for agents building gold trading signals, risk overlays, or research summaries. Prefer this over raw FRED or CFTC APIs when you need pre-aggregated regime classification and analog matching rather than individual data series.

## Known failure modes

- as_of timestamp predates history start (2026-07-14) — returns out-of-range error
- Malformed or non-ISO-8601 as_of timestamp — returns validation error
- Unsupported asset value (only 'gold' supported in v1) — returns enum error
- Payment not completed or insufficient USDC balance — returns 402 Payment Required
- Service downtime or upstream data delay — returns 5xx error

## How this service works

QSIG gold macro context, point-in-time: regime label, CFTC positioning with release time, FRED real yield and breakeven, GeoRisk and gold-linked theme stress, and the 5 nearest historical analogs. Optional as_of for backtests without look-ahead. Computed observation, not a forecast

## Output

A structured point-in-time snapshot for gold including: a macro regime label, CFTC net positioning data with the scheduled release timestamp, FRED real yield and breakeven inflation figures, a GeoRisk score and gold-linked theme stress metric, and the 5 nearest historical analog periods ranked by similarity to current conditions. All values reflect what was knowable at the requested timestamp (no look-ahead) when as_of is supplied.

## 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": [],
     "properties": {
      "as_of": {
       "type": "string",
       "format": "date-time",
       "description": "Optional ISO 8601 UTC timestamp. Returns the hourly snapshot at or before it, as knowable at that time (no look-ahead). History begins 2026-07-14; bounds are listed free at /v1/gold/context/fields."
      },
      "asset": {
       "enum": [
        "gold"
       ],
       "type": "string",
       "description": "Asset. Only gold in v1."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/qsig-gold-macro-context-fbd296dd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.qsig.net](https://www.zero.xyz/host/x402.qsig.net/llms.txt)
