# LBank Exchange API
> Live spot market data from LBank, a global crypto exchange, served straight from its public v2 API with no key and nothing cached. The ticker endpoint returns a market's last price, 24-hour high and low, 24-hour change and base and quote volume. The tickers endpoint returns every spot market for a quote currency ranked by 24-hour quote volume, so one call surfaces the most-traded pairs on the venue. The markets endpoint lists the tradable pairs with their price and quantity precision and minimum order size. The book endpoint returns live order-book depth — every bid and ask level with price and amount, plus the best bid/ask and the spread. Everything is read live from LBank on each request, nothing stored. A distinct global venue, separate from the other exchange feeds on the marketplace. Ideal for trading bots, price tickers, arbitrage scanners, portfolio trackers and market dashboards. Live, no key. 4 spot endpoints. For candles or perpetuals use an OHLC or derivatives API.

## 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/lbank-api/..."
```

## Pricing
- **Free** (Free) — 5,350 calls/Mo, 2 req/s
- **Starter** ($8/Mo) — 94,500 calls/Mo, 6 req/s
- **Pro** ($23/Mo) — 485,000 calls/Mo, 18 req/s
- **Business** ($55/Mo) — 2,960,000 calls/Mo, 45 req/s

## Endpoints

### Market

#### `GET /v1/book` — Live order-book depth

**Parameters:**
- `market` (query, required, string) — Market BASE_QUOTE Example: `BTC_USDT`
- `size` (query, optional, string) — Levels per side (default 20, max 60) Example: `20`

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

**Response:**
```json
{
    "data": {
        "asks": [
            {
                "price": 62714.57,
                "amount": 2.5625
            },
            {
                "price": 62714.58,
                "amount": 0.00084
            },
            {
                "price": 62714.59,
                "amount": 0.00019
            },
            {
                "price": 62714.63,
                "amount": 0.00776
            },
            {
                "price": 62714.73,
                "amount": 0.00776
            },
            {
                "price": 62715.82,
                "amount": 0.00709
            },
            {
                "price": 62716.66,
                "amount": 0.0001
            },
            {
                "price": 62717.09,
                "amount": 0.00371
            },
            {
                "price": 62717.35,
                "amount": 0.0048
            },
            {
                "price": 62717.65,
                "amount": 0.00043
            },
            {
                "price": 62717.66,
                "amount": 0.08646
            },
            {
                "price": 62717.97,
                "amount": 0.00382
            },
            {
                "price": 62718.69,
                "amount": 0.00022
            },
            {
                "price": 62718.7,
                "amount": 0.13076
            },
            {
                "price": 62718.71,
                "amount": 0.00968
            },

…(truncated, see openapi.json for full schema)
```

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

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

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

**Response:**
```json
{
    "data": {
        "count": 1282,
        "quote": "USDT",
        "source": "LBank",
        "markets": [
            {
                "base": "BTC",
                "quote": "USDT",
                "market": "BTC_USDT",
                "price_precision": 2,
                "min_order_amount": 1,
                "quantity_precision": 5,
                "min_transaction_qty": 1.0e-5
            },
            {
                "base": "ETH",
                "quote": "USDT",
                "market": "ETH_USDT",
                "price_precision": 2,
                "min_order_amount": 1,
                "quantity_precision": 4,
                "min_transaction_qty": 0.0001
            },
            {
                "base": "BCH",
                "quote": "USDT",
                "market": "BCH_USDT",
                "price_precision": 1,
                "min_order_amount": 1,
                "quantity_precision": 4,
                "min_transaction_qty": 0.0001
            },
            {
                "base": "QTUM",
                "quote": "USDT",
                "market": "QTUM_USDT",
                "price_precision": 4,
                "min_order_amount": 1,
                "quantity_precision": 4,
                "min_transaction_qty": 0.0001
            },
            {
                "base": "NEO",
                "quote": "USDT",
                "market": "NEO_USDT",
                "price_precision": 3,
                "min_order_amount": 1,
             
…(truncated, see openapi.json for full schema)
```

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

**Parameters:**
- `market` (query, required, string) — Market BASE_QUOTE Example: `BTC_USDT`
- `symbol` (query, optional, string) — Base coin (alternative to market) Example: `BTC`
- `quote` (query, optional, string) — Quote currency for symbol Example: `USDT`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/lbank-api/v1/ticker?market=BTC_USDT&symbol=BTC&quote=USDT"
```

**Response:**
```json
{
    "data": {
        "base": "BTC",
        "last": 62714.71,
        "quote": "USDT",
        "market": "BTC_USDT",
        "source": "LBank",
        "low_24h": 60777.84,
        "high_24h": 62996.59,
        "timestamp": 1781164150453,
        "change_24h_pct": 1.65,
        "base_volume_24h": 3177.2086,
        "quote_volume_24h": 196842355.48
    },
    "meta": {
        "timestamp": "2026-06-11T07:49:11.577Z",
        "request_id": "0139269e-179d-4245-960e-35c5f12a719c"
    },
    "status": "ok",
    "message": "Ticker retrieved successfully",
    "success": true
}
```

#### `GET /v1/tickers` — All spot markets for a quote by volume

**Parameters:**
- `quote` (query, optional, string) — Quote currency (default USDT) Example: `USDT`
- `limit` (query, optional, string) — Max markets (default 50) Example: `50`

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

**Response:**
```json
{
    "data": {
        "count": 50,
        "quote": "USDT",
        "source": "LBank",
        "tickers": [
            {
                "base": "BTC",
                "last": 62714.71,
                "quote": "USDT",
                "market": "BTC_USDT",
                "low_24h": 60777.84,
                "high_24h": 62996.59,
                "timestamp": 1781164150453,
                "change_24h_pct": 1.65,
                "base_volume_24h": 3177.2086,
                "quote_volume_24h": 196842355.48
            },
            {
                "base": "ETH",
                "last": 1653.92,
                "quote": "USDT",
                "market": "ETH_USDT",
                "low_24h": 1604.68,
                "high_24h": 1667.84,
                "timestamp": 1781164151454,
                "change_24h_pct": 0.86,
                "base_volume_24h": 40559.1499,
                "quote_volume_24h": 66372289.75
            },
            {
                "base": "SOL",
                "last": 64.96,
                "quote": "USDT",
                "market": "SOL_USDT",
                "low_24h": 62.34,
                "high_24h": 65.77,
                "timestamp": 1781164151428,
                "change_24h_pct": 0.64,
                "base_volume_24h": 708073.3339,
                "quote_volume_24h": 45468719.42
            },
            {
                "base": "USDC",
                "last": 1.00094,
                "quote": "USDT",
                "market": "USDC_
…(truncated, see openapi.json for full schema)
```

### Meta

#### `GET /v1/meta` — Spec

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

**Response:**
```json
{
    "data": {
        "note": "Markets are BASE_QUOTE (e.g. BTC_USDT). change_24h_pct is the 24h change; quote_volume_24h (turnover) is in the quote currency.",
        "source": "LBank API (api.lbkex.com/v2, live)",
        "service": "lbank-api",
        "endpoints": {
            "GET /v1/book": "Live order-book depth — best bid/ask and spread (market=BTC_USDT, size=20).",
            "GET /v1/meta": "This document.",
            "GET /v1/ticker": "Ticker for one market (market=BTC_USDT or symbol=BTC&quote=USDT).",
            "GET /v1/markets": "Tradable pairs with precision and minimum order size (quote=USDT optional).",
            "GET /v1/tickers": "All spot markets for a quote ranked by 24h quote volume (quote=USDT, limit=50)."
        },
        "description": "Live spot market data from LBank, a global crypto exchange. The ticker endpoint returns a market's last price, 24h high/low, 24h change and base/quote volume; the tickers endpoint ranks every spot market for a quote currency by 24h quote volume; the markets endpoint lists tradable pairs with precision and minimum order size; the book endpoint returns live order-book depth. Live, no key, nothing stored. A distinct global venue, separate from other exchange feeds.",
        "market_count": 1316,
        "upstream_status": "ok"
    },
    "meta": {
        "timestamp": "2026-06-11T07:49:12.698Z",
        "request_id": "806f9167-e92d-48dc-bf44-a67e92643316"
    },
    "status": "ok",
    "message": "Meta",
  
…(truncated, see openapi.json for full schema)
```


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