# MAX Exchange API
> Live spot market data from MAX (MaiCoin), Taiwan's leading crypto exchange, served straight from its public order books — no key on the data, nothing cached, nothing stored. Look up any market for its last price, best bid/ask and spread, 24h open/high/low, 24h change and base/quote volume; rank every market for a quote currency (New Taiwan dollar TWD, USDT or BTC) by 24h turnover; list the tradable pairs with their base, quote and precision; or pull live order-book depth with the running spread. Markets are addressed as BTCTWD or BTC_TWD. This is the MAX venue specifically — a distinct New-Taiwan-dollar price feed, ideal for TWD price discovery and East-Asia-market arbitrage, separate from the USD/USDT-quoted exchange APIs in the catalogue.

## Authentication
All requests require your oanor API key in the `x-oanor-key` header. Get one at https://www.oanor.com/developer/keys.

```bash
curl -H "x-oanor-key: oanor_live_…" "https://api.oanor.com/max-api/..."
```

## Pricing
- **Free** (Free) — 22,200 calls/Mo, 3 req/s
- **Starter** ($9/Mo) — 288,000 calls/Mo, 10 req/s
- **Growth** ($24/Mo) — 1,285,000 calls/Mo, 25 req/s
- **Scale** ($58/Mo) — 4,480,000 calls/Mo, 50 req/s

## Endpoints

### Ticker

#### `GET /v1/ticker` — Ticker for one market

**Parameters:**
- `market` (query, optional, string) — Market as BTC_TWD or BTCTWD Example: `BTC_TWD`
- `base` (query, optional, string) — Base asset (with quote=) Example: `ETH`
- `quote` (query, optional, string) — Quote asset Example: `TWD`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/max-api/v1/ticker?market=BTC_TWD&base=ETH&quote=TWD"
```

**Response:**
```json
{
    "data": {
        "ask": 1986704.4,
        "bid": 1986020.2,
        "base": "BTC",
        "last": 1985212.8,
        "quote": "TWD",
        "market": "btctwd",
        "source": "MAX",
        "spread": 684.2,
        "low_24h": 1930460.8,
        "high_24h": 1999547.2,
        "open_24h": 1959306.6,
        "change_24h": 25906.2,
        "change_24h_pct": 1.3222,
        "base_volume_24h": 19.4912,
        "quote_volume_24h": 38694179.73
    },
    "meta": {
        "timestamp": "2026-06-11T07:45:09.044Z",
        "request_id": "cd56cee3-ff38-47fc-a709-7e7612237432"
    },
    "status": "ok",
    "message": "Ticker retrieved successfully",
    "success": true
}
```

### Tickers

#### `GET /v1/tickers` — All markets for a quote ranked by 24h turnover

**Parameters:**
- `quote` (query, optional, string) — Quote asset Example: `TWD`
- `limit` (query, optional, string) — Max results (1-400) Example: `50`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/max-api/v1/tickers?quote=TWD&limit=50"
```

**Response:**
```json
{
    "data": {
        "count": 32,
        "quote": "TWD",
        "source": "MAX",
        "tickers": [
            {
                "ask": 31.693,
                "bid": 31.692,
                "base": "USDT",
                "last": 31.693,
                "quote": "TWD",
                "market": "usdttwd",
                "spread": 0.001,
                "low_24h": 31.692,
                "high_24h": 31.797,
                "open_24h": 31.74,
                "change_24h": -0.047,
                "change_24h_pct": -0.1481,
                "base_volume_24h": 6941213.62,
                "quote_volume_24h": 219987883.26
            },
            {
                "ask": 52394.9,
                "bid": 52380.8,
                "base": "ETH",
                "last": 52375,
                "quote": "TWD",
                "market": "ethtwd",
                "spread": 14.1,
                "low_24h": 50897.3,
                "high_24h": 52905.8,
                "open_24h": 52082.7,
                "change_24h": 292.3,
                "change_24h_pct": 0.5612,
                "base_volume_24h": 1148.3354,
                "quote_volume_24h": 60144066.58
            },
            {
                "ask": 1986704.4,
                "bid": 1986020.2,
                "base": "BTC",
                "last": 1985212.8,
                "quote": "TWD",
                "market": "btctwd",
                "spread": 684.2,
                "low_24h": 1930460.8,
                "high_24h": 
…(truncated, see openapi.json for full schema)
```

### Markets

#### `GET /v1/markets` — Tradable pairs with base/quote and precision

**Parameters:**
- `quote` (query, optional, string) — Filter by quote asset Example: `TWD`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/max-api/v1/markets?quote=TWD"
```

**Response:**
```json
{
    "data": {
        "count": 32,
        "quote": "TWD",
        "source": "MAX",
        "markets": [
            {
                "base": "ADA",
                "quote": "TWD",
                "market": "adatwd",
                "status": "active",
                "base_precision": 1,
                "quote_precision": 3
            },
            {
                "base": "ALICE",
                "quote": "TWD",
                "market": "alicetwd",
                "status": "active",
                "base_precision": 2,
                "quote_precision": 2
            },
            {
                "base": "APE",
                "quote": "TWD",
                "market": "apetwd",
                "status": "active",
                "base_precision": 2,
                "quote_precision": 2
            },
            {
                "base": "ARB",
                "quote": "TWD",
                "market": "arbtwd",
                "status": "active",
                "base_precision": 1,
                "quote_precision": 3
            },
            {
                "base": "AVAX",
                "quote": "TWD",
                "market": "avaxtwd",
                "status": "active",
                "base_precision": 2,
                "quote_precision": 2
            },
            {
                "base": "BCH",
                "quote": "TWD",
                "market": "bchtwd",
                "status": "active",
                "base_precision": 6,
           
…(truncated, see openapi.json for full schema)
```

### Book

#### `GET /v1/book` — Live order-book depth with running spread

**Parameters:**
- `market` (query, optional, string) — Market as BTC_TWD Example: `BTC_TWD`
- `limit` (query, optional, string) — Depth per side (1-100) Example: `20`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/max-api/v1/book?market=BTC_TWD&limit=20"
```

**Response:**
```json
{
    "data": {
        "asks": [
            {
                "price": 1986704.4,
                "amount": 0.01477473
            },
            {
                "price": 1987163.5,
                "amount": 0.0003625
            },
            {
                "price": 1987222.9,
                "amount": 0.1040071
            },
            {
                "price": 1987461.1,
                "amount": 0.1040071
            },
            {
                "price": 1987636.2,
                "amount": 0.01554053
            },
            {
                "price": 1987699.4,
                "amount": 0.1040071
            },
            {
                "price": 1987741.8,
                "amount": 0.0004263
            },
            {
                "price": 1988178.5,
                "amount": 2
            },
            {
                "price": 1989444.8,
                "amount": 0.00036324
            },
            {
                "price": 1989730.1,
                "amount": 0.00042622
            },
            {
                "price": 1990018.9,
                "amount": 0.01554053
            },
            {
                "price": 1991719.2,
                "amount": 0.00042613
            },
            {
                "price": 1991728.6,
                "amount": 0.00036297
            },
            {
                "price": 1993600.5,
                "amount": 0.00026668
            },
            {
                "price": 1993711.5,
  
…(truncated, see openapi.json for full schema)
```

### Meta

#### `GET /v1/meta` — Service metadata

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/max-api/v1/meta"
```

**Response:**
```json
{
    "data": {
        "note": "Pass markets as BTC_TWD or BTCTWD (concatenated). base/quote come from /markets. The default quote is the New Taiwan dollar (TWD). quote_volume_24h is derived as vol × last; the 24h change is from the day's open.",
        "source": "MAX public API (max-api.maicoin.com/api/v2, live)",
        "service": "max-api",
        "endpoints": {
            "GET /v1/book": "Live order-book depth — best bid/ask and spread (market=BTC_TWD, limit=20).",
            "GET /v1/meta": "This document.",
            "GET /v1/ticker": "Ticker for one market (market=BTC_TWD or base=BTC&quote=TWD).",
            "GET /v1/markets": "Tradable pairs with base/quote and precision (quote=TWD optional).",
            "GET /v1/tickers": "All markets for a quote ranked by 24h turnover (quote=TWD, limit=50)."
        },
        "description": "Live spot market data from MAX (MaiCoin), Taiwan's leading crypto exchange. The ticker endpoint returns a market's last price, best bid/ask, 24h open/high/low, 24h change and base/quote volume; the tickers endpoint ranks every market for a quote currency (TWD, USDT or BTC) by 24h turnover; the markets endpoint lists tradable pairs with base/quote and precision; the book endpoint returns live order-book depth. Live, no key, nothing stored. A distinct New-Taiwan-dollar venue for TWD price discovery, separate from the USD/USDT-quoted exchange feeds.",
        "market_count": 56,
        "upstream_status": "ok"
    },
    "meta": {
  
…(truncated, see openapi.json for full schema)
```


---
Marketplace page: https://www.oanor.com/api/max-api
OpenAPI spec: https://www.oanor.com/api/max-api/openapi.json
