# CoinOpSelect Perp Preflight — Perpetual Futures Pre-Trade Analysis

> CoinOpSelect Perp Preflight — Perpetual Futures Pre-Trade Analysis is a paid API for AI agents from coinop.publicvm.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-21).

Returns a pre-trade risk verdict for a perpetual futures order, including funding rate, oracle/mark price spread, open interest, and an impact-adjusted caution label.

## Facts

- Endpoint: GET https://coinop.publicvm.com/api/v1/market/perp-preflight?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coinopselect-perp-preflight-perpetual-futures-pre-trade-analysis-0139e2f3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_C8lhZJIeYCLwne5N7K3YF

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 coinopselect-perp-preflight-perpetual-futures-pre-trade-analysis-0139e2f3
```

Example prompt: Before I open a $25,000 long position on BTC perp, can you run a preflight check and tell me what the current funding rate, mark vs oracle spread, and overall risk verdict are?

## When to prefer this

Use this endpoint when an AI agent needs a structured, verdict-ready pre-trade risk summary for crypto perpetual futures — especially when funding rate elevation, price impact on large orders, or mark/oracle divergence are decision factors. Prefer over raw exchange APIs when you want a normalized risk label and human-readable one-liner rather than raw tick data. The $0.01 USDC micropayment via x402 makes it suitable for high-frequency agent loops.

## Known failure modes

- Unsupported symbol returns an error or empty response
- Missing required 'type' or 'method' input fields causes a 400-level error
- x402 payment failure (insufficient USDC balance or wallet not configured) blocks the request
- Stale data if oracle/mark feed is delayed
- 'size_usd' passed as non-numeric string may cause impact computation to fail

## How this service works

Pay-per-call agent data over x402. No signup, no API key, no minimum spend. CoinOpSelect Agent Data API

## Output

Returns a JSON object with: symbol, as_of timestamp, mark price, oracle price, funding rate, premium, open interest, impact object (side, level, impactPx, premiumPct), an array of risk factors each with name/level/value/severity/threshold, and a verdict object containing a label (e.g. 'caution'), a human-readable reason, and a one-liner summary string.

## Request schema (JSON Schema)

```json
{
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "method": {
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "side": {
       "type": "string",
       "description": "long or short; defaults to long"
      },
      "symbol": {
       "type": "string",
       "description": "Perp symbol (BTC, ETH, BTC-PERP accepted)"
      },
      "size_usd": {
       "type": "string",
       "description": "Order size in USD; drives the impact factor"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "as_of": {
     "type": "string"
    },
    "impact": {
     "type": "object"
    },
    "markPx": {
     "type": "number"
    },
    "symbol": {
     "type": "string"
    },
    "factors": {
     "type": "array"
    },
    "funding": {
     "type": "number"
    },
    "premium": {
     "type": "number"
    },
    "verdict": {
     "type": "object"
    },
    "oraclePx": {
     "type": "number"
    },
    "openInterest": {
     "type": "number"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "as_of": "2026-01-01T00:00:00.000Z",
  "impact": {
   "side": "long",
   "level": "caution",
   "markPx": 100,
   "sizeUsd": 10000,
   "impactPx": 100.12,
   "premiumPct": 0.0012
  },
  "markPx": 100,
  "symbol": "BTC",
  "factors": [
   {
    "name": "funding",
    "level": "caution",
    "value": 0.001,
    "severity": "medium",
    "threshold": 0.0005
   }
  ],
  "funding": 0.001,
  "premium": 0.001,
  "verdict": {
   "label": "caution",
   "reason": "elevated: funding",
   "one_liner": "BTC caution"
  },
  "oraclePx": 99.9,
  "openInterest": 500000000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coinopselect-perp-preflight-perpetual-futures-pre-trade-analysis-0139e2f3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from coinop.publicvm.com](https://www.zero.xyz/host/coinop.publicvm.com/llms.txt)
