{
  "openapi": "3.0.3",
  "info": {
    "title": "RegioFolio \u2014 Crypto Portfolio & Risk API",
    "version": "1.0",
    "description": "Send crypto holdings, get live total value, per-asset allocation, 24h profit/loss and concentration risk (Herfindahl index) \u2014 powered by live market data.",
    "contact": {
      "email": "office@installateur1210.at",
      "url": "https://folio.installateur1210.at/"
    }
  },
  "servers": [
    {
      "url": "https://folio.installateur1210.at"
    }
  ],
  "components": {
    "securitySchemes": {
      "apiKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key"
      },
      "apiKeyQuery": {
        "type": "apiKey",
        "in": "query",
        "name": "key"
      }
    }
  },
  "paths": {
    "/v1/portfolio/value": {
      "get": {
        "summary": "Query form: ?holdings=BTC:0.5,ETH:3",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "apiKeyHeader": []
          },
          {
            "apiKeyQuery": []
          }
        ]
      },
      "post": {
        "summary": "JSON body: {\"holdings\":{\"BTC\":0.5,\"ETH\":3}}",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "apiKeyHeader": []
          },
          {
            "apiKeyQuery": []
          }
        ]
      }
    }
  }
}