# Get Trading Pairs

> Fetch trading pairs from Zert's backend.

### `get`

Retrieves the list of trading pairs.

**Parameters**

* `params` (PairsQueryParams, optional)
  * `chainRef` (string)
  * `tokenIn` (string)
  * `tokenOut` (string)
  * `limit` (number)
  * `cursor` (string)
  * `supportedOnly` (string | boolean)
  * `debug` (string | boolean)

**Returns**

A Promise that resolves to `PairsResponse`.

* `data.pairs` (Pair\[]): List of pairs.
* `data.nextCursor` (string, optional): Cursor for next page.
* `meta.requestId` (string): Request identifier.
* `meta.timestamp` (string): Response timestamp.

Each **Pair** has: `fromChain`, `toChain`, `tokenIn`, and `tokenOut`.

```typescript
import { RoutingEngineSDK } from 'routing-engine-sdk';

const sdk = new RoutingEngineSDK({
  api: { apiKey: 'your-api-key' },
});

try {
  const response = await sdk.pairs.get({
    chainRef: 'eth-mainnet',
    tokenIn: 'USDC',
    tokenOut: 'USDT',
    limit: 50,
  });
  console.log(response.data.pairs);
  console.log('Next cursor:', response.data.nextCursor);
} catch (error) {
  console.error(error);
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.zert.com/routing-engine-sdk/get-trading-pairs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
