{
  "openapi": "3.1.0",
  "info": {
    "title": "Aurifex Macro Open Data",
    "version": "0.84.0-s108",
    "summary": "US Treasury 10-year yield and Fed broad dollar index for AI agents (x402).",
    "description": "Pay-per-call macro data for AI agents: the US Treasury 10-year yield and the Federal Reserve nominal broad U.S. dollar index (H.10), delivered as timestamped JSON with a SHA-256 digest. 0.01 USDC per call on Base mainnet via x402. Public data from the U.S. Treasury and the Federal Reserve Board. Facts only: not a trading signal, not investment advice."
  },
  "servers": [
    {
      "url": "https://aurifex.kder-ai.com"
    }
  ],
  "paths": {
    "/tools/macro-data": {
      "get": {
        "operationId": "getMacroOpenData",
        "summary": "Macro open data snapshot, 0.01 USDC per call (x402).",
        "description": "GET https://aurifex.kder-ai.com/tools/macro-data without payment returns HTTP 402 with a PAYMENT-REQUIRED header (x402 v2, scheme exact, 10000 units of USDC on eip155:8453). Sign it with any x402 v2 client and retry with PAYMENT-SIGNATURE (or X-PAYMENT). Free preview: send the header X-Preview: true to receive taux_10a_pct only, without payment. If the snapshot is missing or older than 48 hours, the endpoint answers 503 before asking for any payment. Each value keeps the date of its source observation in provenance; the H.10 index is released weekly, so its value can be up to about ten days older than the snapshot.",
        "parameters": [
          {
            "name": "X-Preview",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true"
              ]
            },
            "description": "Free preview: returns taux_10a_pct only."
          },
          {
            "name": "PAYMENT-SIGNATURE",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "x402 v2 payment payload (base64 JSON)."
          },
          {
            "name": "X-PAYMENT",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Same payload, legacy header name."
          }
        ],
        "responses": {
          "200": {
            "description": "Paid delivery (or free preview with X-Preview: true).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "schema": {
                      "type": "string",
                      "description": "snapshot or preview schema id"
                    },
                    "genere_le": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "donnees": {
                      "type": "object",
                      "properties": {
                        "taux_10a_pct": {
                          "type": "number",
                          "description": "US Treasury 10-year par yield, in percent (U.S. Department of the Treasury, daily par yield curve rates)."
                        },
                        "indice_dollar_large_fed": {
                          "type": "number",
                          "description": "Nominal Broad U.S. Dollar Index (Federal Reserve Board, H.10 release, published weekly)."
                        }
                      }
                    },
                    "provenance": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "sha256": {
                      "type": "string",
                      "pattern": "^sha256:[0-9a-f]{64}$"
                    },
                    "empreinte_livraison": {
                      "type": "string"
                    },
                    "paiement": {
                      "type": "object"
                    }
                  },
                  "required": [
                    "donnees"
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Payment required: 10000 units of USDC on eip155:8453 (x402 v2, scheme exact).",
            "headers": {
              "PAYMENT-REQUIRED": {
                "description": "x402 v2 PaymentRequired object, base64 JSON.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Data temporarily unavailable; no payment is requested."
          }
        },
        "x-x402": {
          "price_usdc": "0.01",
          "amount_units": 10000,
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "scheme": "exact"
        }
      }
    },
    "/tools/cockpit-premium": {
      "get": {
        "operationId": "getCockpitPremium",
        "summary": "Cockpit Premium (BTC, ETH, PAXG gold, US CPI, US Treasury, Fed H.10, Base gas), 0.02 USDC per call (x402).",
        "description": "Rich macro and crypto snapshot: BTC/USD and ETH/USD via Nansen token_ohlcv, XAUUSD/PAXG via Nansen, US CPI via BLS, US Treasury 10Y, Fed broad dollar index and Base gas. Free X-Preview: true returns only prix_or_usd. Payment is x402 v2 exact, 20000 units of USDC on eip155:8453; 503 before payment if a source is unavailable.",
        "parameters": [
          {
            "name": "X-Preview",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true"
              ]
            },
            "description": "Free preview: returns prix_or_usd only."
          },
          {
            "name": "PAYMENT-SIGNATURE",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "x402 v2 payment payload (base64 JSON)."
          },
          {
            "name": "X-PAYMENT",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Legacy header alias."
          }
        ],
        "responses": {
          "200": {
            "description": "Paid Premium delivery, or free gold-only preview with X-Preview: true.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "produit": {
                      "type": "string"
                    },
                    "schema": {
                      "type": "string"
                    },
                    "donnees": {
                      "type": "object",
                      "properties": {
                        "prix_btc_usd": {
                          "type": "number"
                        },
                        "prix_eth_usd": {
                          "type": "number"
                        },
                        "prix_or_usd": {
                          "type": "number"
                        },
                        "inflation_us_cpi": {
                          "type": "number"
                        },
                        "taux_10a_pct": {
                          "type": "number"
                        },
                        "indice_dollar_large_fed": {
                          "type": "number"
                        },
                        "gas_base_gwei": {
                          "type": "number"
                        }
                      }
                    },
                    "prix_usdc": {
                      "type": "string"
                    },
                    "prix_unites": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "donnees"
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Payment required: 20000 units of USDC on eip155:8453.",
            "headers": {
              "PAYMENT-REQUIRED": {
                "description": "x402 v2 PaymentRequired object, base64 JSON.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Premium data temporarily unavailable; no payment requested."
          }
        },
        "x-x402": {
          "price_usdc": "0.02",
          "amount_units": 20000,
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "scheme": "exact"
        }
      }
    }
  }
}