> For the complete documentation index, see [llms.txt](https://docs.bbx.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bbx.com/ja/bbx-dex-gong-kai-api/coinmarketcap-lian-xie/xian-wu/xian-wu-zhu-wen-ban.md).

# 現物注文板

指定されたスポット市場の現在のレベル2注文板を返します。

### リクエスト

```http
GET /sapi/v4/market/v1/public/cmc/orderbook/{market_pair}
```

### パスパラメータ

| パラメータ         | 場所   | 型   | 必須 | 説明                         |
| ------------- | ---- | --- | -: | -------------------------- |
| `market_pair` | path | 文字列 | はい | スポット市場の識別子。たとえば `BTC_USDT` |

### クエリパラメータ

| パラメータ   | 場所  | 型  |  必須 | 説明                                                         |
| ------- | --- | -- | --: | ---------------------------------------------------------- |
| `depth` | クエリ | 整数 | いいえ | 両側合計のレベル数。指定可能な値： `0`, `5`, `10`, `20`, `50`, `100`, `500` |
| `level` | クエリ | 整数 | いいえ | 注文板レベル： `1`, `2`、または `3`。デフォルト： `2`                        |

### リクエスト例

```
https://dex.bbx.com/sapi/v4/market/v1/public/cmc/orderbook/BTC_USDT?depth=10&level=2
```

### cURL

```bash
curl -s \\
  'https://dex.bbx.com/sapi/v4/market/v1/public/cmc/orderbook/BTC_USDT?depth=10&level=2'
```

### レスポンス項目

| 項目          | 型  | 説明                                        |
| ----------- | -- | ----------------------------------------- |
| `timestamp` | 整数 | 注文板の更新時刻（Unixミリ秒）                         |
| `買い注文`      | 配列 | Bidレベルの形式： `[価格, 数量]`、高い価格から低い価格の順に並べられます |
| `売り注文`      | 配列 | Askレベルの形式： `[価格, 数量]`、低い価格から高い価格の順に並べられます |

### レスポンス例

```json
{
  "timestamp": 1784612375911,
  "bids": [
    ["66366.10", "0.5231"],
    ["66365.80", "1.2044"]
  ],
  "asks": [
    ["66366.80", "0.8810"],
    ["66367.00", "2.1500"]
  ]
}
```
