---
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`

## Request

- Base URL: `https://api.testnet.rise.trade`
- URL: `https://api.testnet.rise.trade/v1/markets/id/{market_id}/trade-history`
- Auth: none required

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.dev/rise/apis/risex-rest-api.md) - [All operations](https://skmtc.dev/rise/apis/risex-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rise/apis/risex-rest-api/revisions/98eabcd6a6ad?raw)
