# CloudMaxi0x Order Fill Simulator

> CloudMaxi0x Order Fill Simulator is a paid API for AI agents from cloudmaxi0x.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Replays a historical trade order against actual OHLCV price data, reporting which of stop-loss or take-profit triggered first, excursion metrics, and ambiguity detection when ordering cannot be determined within a single bar.

## Facts

- Endpoint: GET https://cloudmaxi0x.com/v1/sim/fill
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cloudmaxi0x-order-fill-simulator-3efa9859
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VX6R9YqrgvmV4nK5mh8uC

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 cloudmaxi0x-order-fill-simulator-3efa9859
```

Example prompt: Simulate a long BTCUSDT trade entered at Unix timestamp 1710000000000 on 1-hour bars with a stop at 61000 and take profit at 65000 — tell me which exit fired first and what the excursion split looked like.

## When to prefer this

Use this endpoint when you need to deterministically verify how a specific historical trade order would have resolved against real market data — particularly when you need excursion analysis (how far price moved against you before exiting) or need to confirm stop vs. target priority. Prefer this over a full backtest engine when you only need to evaluate a single order fill rather than a strategy run. Its ambiguity detection makes it more reliable than simple price-comparison logic when tick data is unavailable.

## Known failure modes

- Symbol not found or unsupported — returns error indicating unknown instrument
- Timestamp too recent — only closed candles are included, so a very recent entry_ms may return no data
- Both stop and take profit inside one bar — returns an ambiguity flag rather than a fill decision
- Missing required parameters (symbol, interval, entry_ms, side) — returns validation error
- No candle data available for the requested time range — returns empty or error response
- Invalid interval format — returns parameter error

## How this service works

Deterministic, verifiable crypto market data and honest backtest audits. Use GET /v1/data/ohlcv for exact OHLCV over a half-open range with a SHA-256 Merkle manifest - only closed candles are returned, exchange decimal strings are preserved byte for byte, so the same query always yields the same root. Use GET /v1/data/proof to verify one candle against a root you already hold. Use POST /v1/validate/trades to find out whether a list of trade returns can be distinguished from luck, and POST /v1/validate/filter to test a trade filter against a permutation null. GET /, /v1/schema and /v1/data/sources are free.

## Output

Returns which exit level (stop-loss or take-profit) was triggered first, the excursion split at the exit point (showing how far price moved in both directions before exiting), the number of bars held, and whether the bar's intra-bar ordering was ambiguous. When both stop and target fall within a single bar's range, the endpoint refuses to guess ordering and flags the result as ambiguous.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "symbol",
      "interval",
      "entry_ms",
      "side"
     ],
     "properties": {
      "side": {
       "enum": [
        "long",
        "short"
       ],
       "type": "string"
      },
      "symbol": {
       "type": "string"
      },
      "entry_ms": {
       "type": "integer"
      },
      "interval": {
       "type": "string"
      },
      "order_type": {
       "enum": [
        "market",
        "limit"
       ],
       "type": "string"
      },
      "stop_price": {
       "type": "number"
      },
      "limit_price": {
       "type": "number"
      },
      "take_profit": {
       "type": "number"
      },
      "max_hold_bars": {
       "type": "integer"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cloudmaxi0x-order-fill-simulator-3efa9859/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cloudmaxi0x.com](https://www.zero.xyz/host/cloudmaxi0x.com/llms.txt)
