81trust / 100

Analytics Zscore

by Market Intelligence API in Markets & finance

x402 APIPassing, checked 30 min ago

Use to measure how unusual a value is versus its history ($0.01): send value and reference values; get mean, standard deviation and z = (value - mean) / sd. Choose SAMPLE (default, n-1) or POPULATION (n) standard deviation. Deterministic, works for prices, volumes, spreads or any series.

POST https://api.marketintelligenceapi.com/api/v1/analytics/zscore

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
54 ms typical, 54 ms slowest 5%
Last check
30 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.marketintelligenceapi.com/api/v1/analytics/zscore" \
  -H "content-type: application/json" \
  -d '{"method":"SAMPLE","value":125,"values":[98,102,101,110,99,103,100]}'
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%2Fapi.marketintelligenceapi.com%2Fapi%2Fv1%2Fanalytics%2Fzscore
const res = await pay("https://api.marketintelligenceapi.com/api/v1/analytics/zscore", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"method":"SAMPLE","value":125,"values":[98,102,101,110,99,103,100]}),
});
console.log(await res.json());

Example input

{
  "method": "SAMPLE",
  "value": 125,
  "values": [
    98,
    102,
    101,
    110,
    99,
    103,
    100
  ]
}

Example output

{
  "mean": 101.857143,
  "method": "SAMPLE",
  "observations": 7,
  "operation": "zscore",
  "result": 5.820464,
  "standardDeviation": 3.976119,
  "value": 125,
  "zScore": 5.820464
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
30 min agoPassed40254 ms$0.01
4 h agoPassed40254 ms$0.01
9 h agoPassed40251 ms$0.01