# Get portal market map for an exchange

`GET https://api.cryptohopper.com/v1/exchange/{exchange}/portal/pairs`

Part of [Exchanges](https://www.cryptohopper.com/api-documentation/api-reference/exchanges.md) in the Cryptohopper API reference.

Returns the map between Cryptohopper market pairs and market data portal pairs for one exchange.

No access token needed.

## Path parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `exchange` | string | yes | Exchange key as returned by Get available exchanges, for example binance or kucoin. Case insensitive. |

## Query parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `key` | string | no | Set to portal to key the map by the portal pair. Any other value, or none, keys it by the Cryptohopper pair. |

## Example request

```bash
curl "https://api.cryptohopper.com/v1/exchange/EXCHANGE/portal/pairs" \
  -H "access-token: YOUR_ACCESS_TOKEN"
```

## Response

Example response (illustrative values):

```json
{
    "data": {
        "BTC/USDT": {
            "ch_pair": "BTC/USDT",
            "portal_pair": "BTC/USDT",
            "base": "BTC",
            "quote": "USDT"
        }
    }
}
```

Status codes: 200. Errors return JSON with `status`, `error` and `message`, plus a numeric `code` when the error comes from the API itself rather than the gateway.
