# KiHustle Sortino Ratio Calculator

> KiHustle Sortino Ratio Calculator is a paid API for AI agents from kihustle.tech, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-16).

Computes the Sortino ratio for a series of investment returns given a risk-free rate

## Facts

- Endpoint: POST https://kihustle.tech/api/v1/sortino-ratio-calculator
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/kihustle-sortino-ratio-calculator-58d85cf0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Wyo-wLnuoGUyHtVSXHpp_

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability kihustle-sortino-ratio-calculator-58d85cf0 -d '<json body>'
```

Example prompt: Calculate the Sortino ratio for these monthly returns [0.02, -0.01, 0.03, 0.015, -0.005, 0.04, 0.01, -0.02] using a risk-free rate of 0.001.

## When to prefer this

Choose this endpoint when you need a quick, affordable API call to compute the Sortino ratio for a portfolio or strategy's return series, especially in automated quant pipelines or agent-driven financial analysis workflows where Sharpe ratio is insufficient because downside risk is the primary concern.

## Known failure modes

- Missing or empty returns array returns an error or null result
- Non-numeric values in the returns array may cause computation failure
- All returns above the risk-free rate (no downside deviation) may result in division-by-zero or infinity
- Missing risk_free field may default to zero or return an error
- Malformed JSON body returns a 400-level error

## How this service works

Kostenlose Guides, Solo-Playbooks und Artikel zu KI, Automation und Side Hustles — für Menschen, die mit echten Systemen online Einkommen aufbauen wollen. Transparent finanziert über faire Affiliate-Links.

## Output

Returns a JSON object containing the computed Sortino ratio result and a success status indicator, allowing the caller to assess the downside risk-adjusted performance of the provided return series.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "returns": {
   "type": "array",
   "items": {
    "type": "number"
   }
  },
  "risk_free": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "processed",
  "status": "success"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/kihustle-sortino-ratio-calculator-58d85cf0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kihustle.tech](https://www.zero.xyz/host/kihustle.tech/llms.txt)
