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

# \[Deprecated\] Get trade history by market name

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

## Request

- Base URL: `https://api.testnet.rise.trade`
- URL: `https://api.testnet.rise.trade/v1/markets/{market_id}/trade-history`
- Auth: none required
- TypeScript: <https://skmtc.dev/rise/apis/risex-rest-api/docs/v1/markets/:market_id/trade-history/get.ts> (a function with typed inputs; its response is checked against the schema)

[DEPRECATED - use /v1/markets/id/{market_id}/trade-history] Get trade history of a market by market name. Limit to 1000 records per page.

## Path parameters

- `market_id` string, required

## Query parameters

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

## Response `200`

A successful response.

- ApiGetTradeHistoryResponse
  - `market_id` string, uint64: Market ID.
  - `trades` ApiGetTradeHistoryResponseTrade[]: 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)
