{
  "x402Version": 2,
  "id": 12519,
  "slug": "12519",
  "resource": "https://apexrunner.ai/signals/optimal-order-routing",
  "description": "APEX Runner: Optimal Order Routing Signal",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x8D0663BBb967ebF1c047405A888DDf865f3E8854",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "7000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "category": "execution",
      "description": "Recommends best exchange and order type for minimum cost execution. Compares fees, spread, and liquidity across Kraken, Coinbase, and Hyperliquid for BTC, ETH, SOL, AVAX. Returns ranked venue list with estimated all-in cost per venue.",
      "example": {
        "estimated_fee_pct": 0.02,
        "estimated_total_cost_pct": 0.14,
        "order_type": "limit",
        "reason": "Lowest fee and tightest spread for BTC at current size",
        "recommended_exchange": "hyperliquid",
        "venue_ranking": [
          {
            "exchange": "hyperliquid",
            "total_cost_pct": 0.14
          },
          {
            "exchange": "kraken",
            "total_cost_pct": 0.21
          }
        ]
      },
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "coin": "BTC",
            "side": "buy",
            "size_usd": 1000
          },
          "type": "http"
        },
        "output": {
          "estimated_fee_pct": "float — exchange fee as percentage of order value",
          "estimated_total_cost_pct": "float — fee + slippage as percentage of order value",
          "example": {
            "estimated_total_cost_pct": 0.14,
            "order_type": "limit",
            "recommended_exchange": "hyperliquid"
          },
          "order_type": "string — recommended order type: limit or market",
          "reason": "string — plain-English explanation of routing decision",
          "recommended_exchange": "string — cheapest venue: kraken / coinbase / hyperliquid",
          "type": "json",
          "venue_ranking": "array — all venues ranked by total cost, each with exchange and total_cost_pct"
        }
      },
      "name": "APEX Optimal Order Routing",
      "outputSchema": {
        "estimated_fee_pct": "float",
        "estimated_total_cost_pct": "float",
        "order_type": "string",
        "reason": "string",
        "recommended_exchange": "string",
        "venue_ranking": "array"
      },
      "schema": {
        "properties": {
          "input": {
            "properties": {
              "queryParams": {
                "properties": {
                  "coin": {
                    "default": "BTC",
                    "enum": [
                      "AVAX",
                      "BTC",
                      "ETH",
                      "LINK",
                      "SOL",
                      "XRP"
                    ],
                    "type": "string"
                  },
                  "side": {
                    "default": "buy",
                    "enum": [
                      "buy",
                      "sell"
                    ],
                    "type": "string"
                  },
                  "size_usd": {
                    "default": 1000,
                    "maximum": 1000000,
                    "minimum": 10,
                    "type": "number"
                  }
                },
                "type": "object"
              }
            },
            "required": [
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "_apex": {
                    "properties": {
                      "evolution_runs": {
                        "type": "integer"
                      },
                      "instance": {
                        "type": "string"
                      },
                      "live_capital_deployed": {
                        "type": "boolean"
                      },
                      "live_trading": {
                        "type": "boolean"
                      },
                      "signal": {
                        "type": "string"
                      },
                      "signal_hash": {
                        "type": "string"
                      },
                      "source": {
                        "type": "string"
                      },
                      "trades_backing_signal": {
                        "type": "integer"
                      },
                      "verify_at": {
                        "type": "string"
                      },
                      "version": {
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "coin": {
                    "type": "string"
                  },
                  "exchanges": {
                    "additionalProperties": {
                      "properties": {
                        "fee_usd": {
                          "type": "number"
                        },
                        "net_cost_usd": {
                          "type": "number"
                        },
                        "price": {
                          "type": "integer"
                        },
                        "taker_fee_pct": {
                          "type": "number"
                        }
                      },
                      "type": "object"
                    },
                    "type": "object"
                  },
                  "reason": {
                    "type": "string"
                  },
                  "recommended_exchange": {
                    "type": "string"
                  },
                  "savings_pct": {
                    "type": "number"
                  },
                  "savings_vs_worst_usd": {
                    "type": "number"
                  },
                  "side": {
                    "type": "string"
                  },
                  "size_usd": {
                    "type": "number"
                  },
                  "timestamp": {
                    "type": "string"
                  },
                  "valid_for_seconds": {
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "version": "1.0.0"
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "apexrunner.ai",
  "lastUpdated": "2026-09-09T00:09:37.585Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-09T00:09:37.312Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "apexrunner.ai",
    "manifest_name": "apexrunner.ai",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}