{
  "tool_id": "sharpe-vs-sortino-calculator",
  "slug": "sharpe-vs-sortino-calculator",
  "path": "/sharpe-vs-sortino-calculator/",
  "mode": "client_side",
  "usage": "Client-side calculator. Open https://aifinhub.io/sharpe-vs-sortino-calculator/ and fill in the inputs; results render in-browser.",
  "methodology": "https://aifinhub.io/methodology/sharpe-vs-sortino-calculator/",
  "sample_input": {
    "tool": "sharpe-vs-sortino-calculator",
    "rf_annual": 0.04,
    "returns": [
      0.01,
      0.02,
      -0.005,
      0.015,
      -0.01
    ]
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "rf_annual": {
        "type": "number"
      },
      "returns": {
        "type": "array",
        "items": {
          "type": "number"
        }
      }
    },
    "required": [
      "tool",
      "rf_annual",
      "returns"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "sharpe": {
        "type": "number"
      },
      "sortino": {
        "type": "number"
      },
      "calmar": {
        "type": "number"
      },
      "omega": {
        "type": "number"
      },
      "max_drawdown": {
        "type": "number"
      }
    }
  }
}
