80trust / 100

Risk Max Ltv

by regimeshift.xyz in Security & trust

x402 APIPassing, checked 3 h ago

Maximum-safe LTV for collateralized agent loans. Computed from (cv + λ·j²)-derived variance over loan horizon + 6-mode regime cap. Lender-specifiable max_default_prob. Returns binding constraint (math vs regime_cap) so agents can see WHY the cap is what it is. Same calibrator as Agent-SOFR rate endpoint.

GET https://regimeshift.xyz/api/v1/risk/max-ltv

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
184 ms typical, 193 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://regimeshift.xyz/api/v1/risk/max-ltv?asset=ETH&duration_sec=3600&max_default_prob=0.001"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fregimeshift.xyz%2Fapi%2Fv1%2Frisk%2Fmax-ltv
const res = await pay("https://regimeshift.xyz/api/v1/risk/max-ltv?asset=ETH&duration_sec=3600&max_default_prob=0.001");
console.log(await res.json());

Example input

{
  "asset": "ETH",
  "duration_sec": 3600,
  "max_default_prob": 0.001
}

Example output

{
  "binding_constraint": "regime_cap",
  "computed_at": 1779380000,
  "math_max_ltv": 0.97,
  "max_ltv": 0.92,
  "ok": true,
  "regime": "NORMAL",
  "regime_cap_ltv": 0.92,
  "sigma_T": 0.0051
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402166 ms$0.001
7 h agoPassed402193 ms$0.001
10 h agoPassed402158 ms$0.001
14 h agoPassed402184 ms$0.001
18 h agoPassed402193 ms$0.001
21 h agoPassed402194 ms$0.001
27 h agoPassed402184 ms$0.001