{
  "openapi": "3.1.0",
  "info": {
    "title": "WealthPulse",
    "version": "1.0.0",
    "contact": {
      "email": "jay@lonestaroracle.xyz"
    },
    "x-guidance": "Cross-asset personal finance risk analyzer. Combines crypto wallet health, token security, and equity portfolio data into an AI-synthesized risk score and narrative. Pass a wallet address and optional equity tickers. $0.25/query via x402. | Also: PortfolioRisk (portfolio.lonestaroracle.xyz) WalletIntel (wallet.lonestaroracle.xyz) | Full catalog: lonestaroracle.xyz",
    "description": "Wealth allocation and diversification analysis across asset classes."
  },
  "externalDocs": {
    "url": "https://docs.lonestaroracle.xyz",
    "description": "LoneStarOracle API & integration docs"
  },
  "paths": {
    "/health": {
      "get": {
        "summary": "Health",
        "operationId": "health_health_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": {}
              }
            }
          }
        }
      }
    },
    "/analyze": {
      "get": {
        "summary": "Holdings risk score (wallet, tickers, tokens)",
        "operationId": "analyze_analyze_get",
        "parameters": [
          {
            "name": "wallet",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "title": "Wallet"
            }
          },
          {
            "name": "tickers",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "title": "Tickers"
            },
            "description": "Comma-separated stock tickers, e.g. NVDA,AAPL"
          },
          {
            "name": "contracts",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "title": "Contracts"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.25"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "description": "Cross-asset holdings risk analyzer: pass a Base wallet (auto-fetches ERC-20 + ETH holdings with USD values, stablecoin % and concentration risk), stock tickers (?tickers=NVDA,AAPL) and/or token contracts; returns a unified risk score 1-10 plus an AI narrative. When to call: risk across a set of holdings. For a single-stock buy/hold/sell signal use GET https://equity.lonestaroracle.xyz/equity; for the combined insider + Congress + 13F + analyst read use GET https://smartmoney.lonestaroracle.xyz/smartmoney; for raw Form 4 trades GET https://insider.lonestaroracle.xyz/trades; for congressional trades GET https://capitol.lonestaroracle.xyz/trades.",
        "tags": [
          "wealth",
          "allocation",
          "portfolio",
          "diversification"
        ]
      }
    }
  },
  "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"
      }
    }
  }
}