---
title: "Retrieve all trades corresponding to a baseToken or/and a quoteToken"
method: GET
path: "/trades"
tags: ["trades"]
---

# Retrieve all trades corresponding to a baseToken or/and a quoteToken

`GET /trades`

Return all trades in an array with total match

## Query parameters

- `baseToken` string
- `quoteToken` string
- `pageOffset` string
- `pageSize` string
- `sortBy` string
- `sortType` string
- `from` string
- `to` string

## Response `200`

successful operation

- object
  - `total` integer
  - `trades` Trade[]
    - `id` string
    - `taker` string
    - `maker` string
    - `baseToken` string
    - `quoteToken` string
    - `makerOrderHash` string
    - `takerOrderHash` string
    - `hash` string
    - `txHash` string
    - `pairName` string
    - `pricepoint` string
    - `amount` string
    - `status` string
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `400` — *** Parameter missing
- `500` — Internal Server Error

---

[API](https://skmtc.net/buildonviction/apis/tomodex-apis.md) · [All operations](https://skmtc.net/buildonviction/apis/tomodex-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/buildonviction/tomodex-apis/revisions/18b6ffedd480/schema)
