# TokenGuard Correlation API

> TokenGuard Correlation API is a paid API for AI agents from eltociear-tokenguard.hf.space, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Computes correlation metrics between crypto assets or DeFi data series for on-chain intelligence and market analysis

## Facts

- Endpoint: POST https://eltociear-tokenguard.hf.space/correlation
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tokenguard-correlation-api-4150b24f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_10Yf8XE7gTnCWq4990NB0

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 tokenguard-correlation-api-4150b24f -d '<json body>'
```

Example prompt: What's the price correlation between WETH and USDC on Base over the last 30 days — are they moving together or inversely?

## When to prefer this

Choose this endpoint when you need to quantify the statistical relationship between two or more crypto/DeFi assets — particularly for portfolio risk analysis, hedging strategy, or identifying co-movement patterns on-chain. Prefer it over general market data endpoints when the specific output needed is a correlation coefficient rather than raw price or volume data.

## Known failure modes

- Invalid or unrecognized token address returns error
- Unsupported blockchain network or token pair returns empty or null result
- Insufficient historical data for the requested time range causes computation failure
- Malformed request body returns 400-level error
- Micropayment (x402) authorization failure blocks the call
- Rate limiting or service unavailability on HuggingFace Spaces infrastructure

## How this service works

correlation data for AI agents.

## Output

Returns a JSON object containing correlation coefficients (typically ranging from -1 to 1) between the specified crypto asset pairs or data series, along with any supporting statistical metadata such as sample size or time window used in the computation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [],
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tokenguard-correlation-api-4150b24f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from eltociear-tokenguard.hf.space](https://www.zero.xyz/host/eltociear-tokenguard.hf.space/llms.txt)
