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

# Get account trade history

`GET /v1/trade-history`

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
  - `page` integer
  - `has_next_page` boolean

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