> 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/ko/bbx-dex-api/coinmarketcap/spot/spot-orderbook.md).

# 현물 주문장

지정된 현물 시장의 현재 레벨 2 오더북을 반환합니다.

### 요청

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

### 경로 매개변수

| 매개변수          | 위치 | 유형  | 필수 여부 | 설명                          |
| ------------- | -- | --- | ----: | --------------------------- |
| `market_pair` | 경로 | 문자열 |     예 | 현물 시장 식별자, 예를 들면 `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` | 정수 | 유닉스 밀리초 단위의 오더북 업데이트 시간                                       |
| `매수호가`      | 배열 | 매수 레벨은 다음과 같이 형식화됨 `[price, quantity]`, 가격이 높은 순에서 낮은 순으로 정렬됨 |
| `매도호가`      | 배열 | 매도 레벨은 다음과 같이 형식화됨 `[price, quantity]`, 가격이 낮은 순에서 높은 순으로 정렬됨 |

### 예시 응답

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