> 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/zhs/bbx-dex-public-api/coinmarketcap-ji-cheng/xian-huo/xian-huo-zui-jin-cheng-jiao.md).

# 现货最近成交

返回指定现货市场最近最多 500 条成交记录，并按照从新到旧的顺序排列。

### 请求

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

### 路径参数

| 参数            | 位置     | 类型       | 是否必填 | 说明                    |
| ------------- | ------ | -------- | ---- | --------------------- |
| `market_pair` | `path` | `string` | 是    | 现货市场标识符，例如 `BTC_USDT` |

### 请求示例

```
https://dex.bbx.com/sapi/v4/market/v1/public/cmc/trades/BTC_USDT
```

### cURL

```bash
curl -s \
  'https://dex.bbx.com/sapi/v4/market/v1/public/cmc/trades/BTC_USDT'
```

### 响应字段

| 字段             | 类型        | 要求 | 说明                        |
| -------------- | --------- | -- | ------------------------- |
| `trade_id`     | `integer` | 必填 | 唯一成交标识符                   |
| `price`        | `string`  | 必填 | 成交价格                      |
| `base_volume`  | `string`  | 必填 | 以基础资产计价的成交数量              |
| `quote_volume` | `string`  | 必填 | 以计价资产计价的成交金额              |
| `timestamp`    | `integer` | 必填 | 成交时间，采用 Unix 毫秒时间戳        |
| `type`         | `string`  | 必填 | 主动成交方向，取值为 `buy` 或 `sell` |

### 成交方向定义

* `buy`：卖单被撮合，主动成交方为买方。
* `sell`：买单被撮合，主动成交方为卖方。

### 响应示例

```json
[
  {
    "trade_id": 647597095463426688,
    "price": "66366.17",
    "base_volume": "0.00099975",
    "quote_volume": "66.34942696",
    "timestamp": 1784101179330,
    "type": "buy"
  },
  {
    "trade_id": 647596861127662208,
    "price": "66342.89",
    "base_volume": "0.00100000",
    "quote_volume": "66.34289000",
    "timestamp": 1784101123460,
    "type": "sell"
  }
]
```
