---
title: "Get account trade history"
method: GET
path: "/v1/trade-history"
tags: ["Markets"]
---

# Get account trade history

`GET /v1/trade-history`

## Request

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

Get trade history for a specific account. Limit to 1000 records per page.

## Query parameters

- `account` string
- `market_id` string, int64
- `start_time` string, uint64
- `end_time` string, uint64
- `page` integer
- `limit` integer
- `sorted_by` string

## Response `200`

A successful response.

- ApiGetAccountTradeHistoryResponse
  - `market_id` string, int64
  - `wallet_address` string
  - `trades` V1ApiTrade[]
    - `id` string
    - `market_id` string, int64
    - `order_id` string
    - `side` 'BUY' | 'SELL'
    - `price` string
    - `size` string
    - `fee` string
    - `liquidity_indicator` 'TAKER' | 'MAKER'
    - `time` string, uint64
    - `blockchain_data` TradeBlockchainData
      - `block_number` string, int64
      - `tx_hash` string
      - `log_index` string, int64
    - `is_liquidation` boolean
    - `realized_pnl` string
    - `leverage` string
    - `margin_mode` integer
    - `realized_pnl_percentage` string
    - `avg_price` string
    - `position_side` 'BUY' | 'SELL'
    - `is_otc` boolean
    - `client_order_id` string: Client-provided order identifier (string-encoded uint64, empty if not set). Only set for account trades.
  - `page` integer
  - `has_next_page` boolean

## Other responses

- `default`: An unexpected error response.

## Changes

- **2026-11-03** `98eabcd6a6ad`: 1 info
  - added the optional property `trades/items/client_order_id` to the response with the `200` status

[Operation history](https://skmtc.dev/rise/apis/risex-rest-api/changes/v1/trade-history/get.md)

---

[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)
