---
title: "Pairs returns all liquidity pairs."
method: GET
path: "/crescent/liquidity/v1beta1/pairs"
tags: ["Query"]
---

# Pairs returns all liquidity pairs.

`GET /crescent/liquidity/v1beta1/pairs`

## Request

- The document declares no server URL.
- Auth: none declared
- TypeScript: <https://skmtc.dev/crescent-network/apis/crescent-rest-and-grpc-gateway-docs/docs/crescent/liquidity/v1beta1/pairs/get.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `denoms` string[]
- `pagination.key` string, byte
- `pagination.offset` string, uint64
- `pagination.limit` string, uint64
- `pagination.count_total` boolean
- `pagination.reverse` boolean

## Response `200`

A successful response.

- object: QueryPairsResponse is response type for the Query/Pairs RPC method.
  - `pairs` object[]
    - `id` string, uint64
    - `base_coin_denom` string
    - `quote_coin_denom` string
    - `escrow_address` string
    - `last_order_id` string, uint64
    - `last_price` string
    - `current_batch_id` string, uint64
  - `pagination` object: PageResponse is to be embedded in gRPC response messages where the corresponding request message has used PageRequest. message SomeResponse { repeated Bar results = 1; PageResponse page = 2; }
    - `next_key` string, byte
    - `total` string, uint64

## Other responses

- `default`: An unexpected error response

## Changes

- **2022-03-17** `050a36bde231`: 1 info
  - endpoint added
- **2022-01-24** `63a98ab49fe1`: 1 breaking
  - api path removed without deprecation
- **2022-01-24** `9df0a4d8de8e`: 1 info
  - endpoint added
- **2022-01-24** `c74d7f3d449c`: 1 breaking
  - api path removed without deprecation
- **2022-01-20** `b43e8b77c563`: 1 warning, 2 info
  - deleted the `query` request parameter `denoms`
  - added the new optional `query` request parameter `x_denom`
  - added the new optional `query` request parameter `y_denom`

[Operation history](https://skmtc.dev/crescent-network/apis/crescent-rest-and-grpc-gateway-docs/changes/crescent/liquidity/v1beta1/pairs/get.md)

---

[API](https://skmtc.dev/crescent-network/apis/crescent-rest-and-grpc-gateway-docs.md) - [All operations](https://skmtc.dev/crescent-network/apis/crescent-rest-and-grpc-gateway-docs/llms.txt) - [OpenAPI document](https://skmtc.dev/crescent-network/apis/crescent-rest-and-grpc-gateway-docs/revisions/ddf5133cea9d?raw)
