{
  "openapi": "3.1.0",
  "info": {
    "title": "MacroPulse",
    "version": "2.0.0",
    "x-guidance": "US macro intelligence \u2014 Fed rate, CPI/Core PCE YoY, yield curve, M2, GDP, VIX, Fear & Greed, AI macro regime narrative. $0.05/query via x402 USDC on Base.  |  Also from LoneStarOracle: EquityScope (equity.lonestaroracle.xyz)  |  RealEstatePulse (realestate.lonestaroracle.xyz)  |  CrownBlock (crownblock.lonestaroracle.xyz)  |  Full catalog: lonestaroracle.xyz NEW: VIX (fear) and CPI (inflation) include historical percentile context vs their own history (fields vix_percentile_5y, cpi_percentile_10y, vs_history).",
    "contact": {
      "email": "jay@lonestaroracle.xyz"
    },
    "description": "US macro snapshot, CPI/inflation, rates, growth and unemployment with a regime signal. FRED data.",
    "x-x402-proof": "https://macro.lonestaroracle.xyz/.well-known/x402-proof"
  },
  "externalDocs": {
    "url": "https://docs.lonestaroracle.xyz",
    "description": "LoneStarOracle API & integration docs"
  },
  "paths": {
    "/subscribe": {
      "post": {
        "summary": "Subscribe",
        "description": "Subscribe to push alerts \u2014 3/month via x402 USDC on Base.",
        "operationId": "subscribe_subscribe_post",
        "parameters": [
          {
            "name": "webhook_url",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "",
              "title": "Webhook Url"
            }
          },
          {
            "name": "wallet",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "",
              "title": "Wallet"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/subscribers": {
      "get": {
        "summary": "Subscribers",
        "operationId": "subscribers_subscribers_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/": {
      "get": {
        "summary": "Root",
        "operationId": "root__get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "x-payment-info": {
          "authMode": "free"
        }
      }
    },
    "/macro": {
      "get": {
        "summary": "US Macro Dashboard Signal",
        "description": "US macro snapshot, CPI/inflation, rates, growth and unemployment with a regime signal. FRED data. Use this for the macro regime itself. To measure how a specific portfolio of tickers is exposed (volatility, beta, VaR, correlation), call GET https://portfolio.lonestaroracle.xyz/analyze?tickers=SPY,TLT; for the yield-curve recession flag call GET https://rates.lonestaroracle.xyz/rates.",
        "operationId": "macro_macro_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "Service response data"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        },
        "x-payment-info": {
          "authMode": "payment",
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.050000"
          },
          "protocols": [
            {
              "x402": {}
            },
            {
              "mpp": {
                "method": "stripe",
                "intent": "charge",
                "currency": "usd"
              }
            }
          ],
          "outputSchema": {
            "type": "object",
            "description": "Service response data"
          }
        },
        "tags": [
          "macro",
          "economy",
          "cpi",
          "inflation",
          "rates",
          "fred",
          "gdp"
        ]
      }
    },
    "/health": {
      "get": {
        "summary": "Health",
        "operationId": "health_health_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "x-payment-info": {
          "authMode": "free"
        }
      }
    }
  },
  "components": {
    "schemas": {
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          },
          "input": {
            "title": "Input"
          },
          "ctx": {
            "type": "object",
            "title": "Context"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    }
  }
}