---
title: "Get history of trades for CurrencyPair"
method: GET
path: "/api/deals/main/{currencyPairCode}"
tags: ["ApiDeals"]
---

# Get history of trades for CurrencyPair

`GET /api/deals/main/{currencyPairCode}`

## Path parameters

- `currencyPairCode` string, required

## Query parameters

- `sinceDate` string, date-time
- `endDate` string, date-time
- `pageNumber` integer
- `pageSize` integer

## Response `200`

Success

- DealHistory[]
  - `id` string, uuid
  - `dealDateUtc` string, nullable
  - `currencyPairCode` string, nullable
  - `volume` number, double
  - `price` number, double
  - `isBuy` boolean — true if bid existed before ask
  - `isUserBuyer` boolean, nullable — Did current user create bid or ask for this deal (only shown in My Trades)

---

[API](https://skmtc.dev/binibit/apis/webapp.md) · [All operations](https://skmtc.dev/binibit/apis/webapp/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/binibit/webapp/revisions/975d0a2e9e7d/schema)
