Skip to content
Try Hanzo
Language: English (United States)

Hanzo Exchange

AMM. DEX. Order Books. All-in-One.

Exchange Infrastructure

Exchange Products

Choose your trading model or combine them for hybrid exchanges

AMM Infrastructure

Deploy and manage automated market makers across chains

  • Constant product (x*y=k) pools
  • Concentrated liquidity positions
  • Multi-token weighted pools
  • Custom bonding curves
  • Flash loan support
  • MEV-resistant design
Learn more
AMM Infrastructure

Institutional-Grade Infrastructure

  • Sub-ms Latency

    Colocated infrastructure for fastest execution

  • Multi-Chain

    Trade across 100+ networks from one interface

  • MEV Protected

    Private transactions and fair ordering

  • Real-time Data

    WebSocket feeds with tick-level precision

  • Self-Custody

    Non-custodial trading with your own keys

  • Historical Data

    Full trade history and OHLCV archives

exchange.ts
import { HanzoExchange } from "@hanzo/blockchain";
 
const exchange = new HanzoExchange({
  apiKey: process.env.HANZO_API_KEY,
});
 
// DEX Aggregator - Find best swap route
const quote = await exchange.dex.getQuote({
  fromToken: "ETH",
  toToken: "USDC",
  amount: "1.0",
  slippage: 0.5, // 0.5%
});
 
console.log("Best route:", quote.route);
console.log("Expected output:", quote.outputAmount);
console.log("Price impact:", quote.priceImpact);
 
// Execute swap with MEV protection
const tx = await exchange.dex.swap(quote, {
  mevProtection: true,
  privateTransaction: true,
});
 
// Or use Order Book for limit orders
await exchange.orderbook.placeLimitOrder({
  pair: "ETH/USDC",
  side: "buy",
  price: 2000,
  amount: 1.0,
});

Build Your Exchange

From DeFi protocols to institutional trading platforms—we have the infrastructure.

Get Exchange

DEX exchange surface

License: Apache-2.0hanzoaiDeploy to Cloud