# APEX Runner: Optimal Order Routing Signal

> APEX Runner: Optimal Order Routing Signal is a paid API for AI agents from apexrunner.ai, paid per call via x402, $0.007/call, status unknown (last checked 2026-09-14).

Returns a real-time optimal exchange routing signal for buying or selling a crypto asset, identifying which exchange offers the best price and lowest fees for a given order size.

## Facts

- Endpoint: GET https://apexrunner.ai/signals/optimal-order-routing
- Price: $0.007/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apex-runner-optimal-order-routing-signal-9ad2f3be
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Nk3nC6azggJMP7a3omT_-

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 apex-runner-optimal-order-routing-signal-9ad2f3be
```

Example prompt: Check APEX Runner's optimal order routing signal for buying $25,000 worth of ETH — tell me which exchange to use and how much I'd save versus the worst option.

## When to prefer this

Use this endpoint when you need real-time, signal-backed exchange routing recommendations for a specific crypto trade, especially when minimizing fees and slippage matters. Prefer this over generic price aggregators when you need a structured, hashable signal with fee-aware net cost calculations across major crypto exchanges. Best suited for traders executing single orders in the $10–$1,000,000 USD range on supported assets (AVAX, BTC, ETH, LINK, SOL, XRP).

## Known failure modes

- Unsupported coin symbol returns validation error (only AVAX, BTC, ETH, LINK, SOL, XRP supported)
- size_usd below $10 or above $1,000,000 returns range validation error
- Invalid side value (not 'buy' or 'sell') returns enum error
- Signal may expire quickly — valid_for_seconds indicates freshness window
- Payment failure (x402) if USDC balance insufficient
- Exchange data unavailable for one or more venues may affect comparison completeness

## How this service works

APEX Runner: Optimal Order Routing Signal

## Output

Returns a structured signal containing: the recommended exchange for the trade, per-exchange breakdown of price, taker fee percentage, and net cost in USD, the percentage and absolute USD savings versus the worst exchange, a human-readable reason explaining the recommendation, signal metadata (hash, version, validity window in seconds, whether live trading is active, number of trades backing the signal), and a timestamp for the signal.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "method"
   ],
   "properties": {
    "queryParams": {
     "type": "object",
     "properties": {
      "coin": {
       "enum": [
        "AVAX",
        "BTC",
        "ETH",
        "LINK",
        "SOL",
        "XRP"
       ],
       "type": "string",
       "default": "BTC"
      },
      "side": {
       "enum": [
        "buy",
        "sell"
       ],
       "type": "string",
       "default": "buy"
      },
      "size_usd": {
       "type": "number",
       "default": 1000,
       "maximum": 1000000,
       "minimum": 10
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "properties": {
      "coin": {
       "type": "string"
      },
      "side": {
       "type": "string"
      },
      "_apex": {
       "type": "object",
       "properties": {
        "signal": {
         "type": "string"
        },
        "source": {
         "type": "string"
        },
        "version": {
         "type": "string"
        },
        "instance": {
         "type": "string"
        },
        "verify_at": {
         "type": "string"
        },
        "signal_hash": {
         "type": "string"
        },
        "live_trading": {
         "type": "boolean"
        },
        "evolution_runs": {
         "type": "integer"
        },
        "live_capital_deployed": {
         "type": "boolean"
        },
        "trades_backing_signal": {
         "type": "integer"
        }
       }
      },
      "reason": {
       "type": "string"
      },
      "size_usd": {
       "type": "number"
      },
      "exchanges": {
       "type": "object",
       "additionalProperties": {
        "type": "object",
        "properties": {
         "price": {
          "type": "integer"
         },
         "fee_usd": {
          "type": "number"
         },
         "net_cost_usd": {
          "type": "number"
         },
         "taker_fee_pct": {
          "type": "number"
         }
        }
       }
      },
      "timestamp": {
       "type": "string"
      },
      "savings_pct": {
       "type": "number"
      },
      "valid_for_seconds": {
       "type": "integer"
      },
      "recommended_exchange": {
       "type": "string"
      },
      "savings_vs_worst_usd": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "reason": "string — plain-English explanation of routing decision",
 "example": {
  "order_type": "limit",
  "recommended_exchange": "hyperliquid",
  "estimated_total_cost_pct": 0.14
 },
 "order_type": "string — recommended order type: limit or market",
 "venue_ranking": "array — all venues ranked by total cost, each with exchange and total_cost_pct",
 "estimated_fee_pct": "float — exchange fee as percentage of order value",
 "recommended_exchange": "string — cheapest venue: kraken / coinbase / hyperliquid",
 "estimated_total_cost_pct": "float — fee + slippage as percentage of order value"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/apex-runner-optimal-order-routing-signal-9ad2f3be/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from apexrunner.ai](https://www.zero.xyz/host/apexrunner.ai/llms.txt)
