---
title: "Get trade history by market ID"
method: GET
path: "/v1/markets/id/{market_id}/trade-history"
tags: ["Markets"]
---

# Get trade history by market ID

`GET /v1/markets/id/{market_id}/trade-history`

Get trade history of a market by numeric market ID. Limit to 1000 records per page.

## Path parameters

- `market_id` string, int64, required

## Query parameters

- `start_time` string, uint64
- `end_time` string, uint64
- `page` integer
- `limit` integer

## Response `200`

A successful response.

- ApiGetTradeHistoryV2Response
  - `market_id` string, uint64 — Market ID.
  - `trades` ApiGetTradeHistoryV2ResponseTrade[] — List of trades.
    - `id` string — Unique trade ID (derived from maker and taker order IDs).
    - `maker_side` 'BUY' | 'SELL'
    - `price` string — Trade price (decimal string).
    - `size` string — Trade size (decimal string).
    - `time` string, uint64 — Trade timestamp (Unix nanoseconds).
    - `block_number` string, int64 — Block number where trade occurred.
    - `log_index` string, int64 — Log index within the block.

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/rise/apis/risex-rest-api.md) · [All operations](https://skmtc.net/rise/apis/risex-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rise/risex-rest-api/revisions/194af8339c0d/schema)
