# Exchanges

## Get List of Exchanges

* **Method**: GET
* **Endpoint**: `/api/v1/crypto/exchanges`
* **Headers**:
  * `Cookie`: The session cookie value.
  * `csrf_token`: The CSRF token obtained after login.
* **Query**:
  * `search`: (string) Optional. Search term for user attributes.
  * `offset`: (integer) Pagination offset.
  * `limit`: (integer) Number of records to return.

**Description:**

The **/api/v1/crypto/exchanges** endpoint is designed to retrieve a list of cryptocurrency exchanges. It supports pagination through the use of query parameters, allowing clients to specify the subset of data they wish to receive. This is particularly useful for handling large datasets efficiently.

**Example with curl:**

```bash
curl -X GET "http://example.com/api/v1/crypto/exchanges?offset=0&limit=5" \
     -H "Cookie: session_cookie_value"  \
     -H "csrf_token: your_csrf_token_here"
```

**Example Response Payload:**

```json
{
    "data": [
        {
            "id": 2,
            "externalExchangeId": "quipuswap_stableswap",
            "dataSource": "Tezos",
            "type": "DEX",
            "name": "QuipuSwap_Stableswap",
            "description": null,
            "imageUrl": null,
            "createdAt": "2024-02-08T16:07:28.539Z",
            "updatedAt": "2024-02-08T16:07:28.539Z"
        },
        {
            "id": 3,
            "externalExchangeId": "quipuswap_v2",
            "dataSource": "Tezos",
            "type": "DEX",
            "name": "QuipuSwap_v2",
            "description": null,
            "imageUrl": null,
            "createdAt": "2024-02-08T17:40:02.549Z",
            "updatedAt": "2024-02-08T17:40:02.549Z"
        },
        {
            "id": 4,
            "externalExchangeId": "bitfinex",
            "dataSource": "bitfinex",
            "type": "CEX",
            "name": "Bitfinex",
            "description": null,
            "imageUrl": null,
            "createdAt": "2024-02-09T00:08:54.450Z",
            "updatedAt": "2024-02-09T00:08:54.450Z"
        },
        {
            "id": 1,
            "externalExchangeId": "plenty",
            "dataSource": "Tezos",
            "type": "DEX",
            "name": "Plenty_DeFi",
            "description": null,
            "imageUrl": "http://example.com/ccdb-reference/Exchanges/1",
            "createdAt": "2024-02-08T16:07:28.502Z",
            "updatedAt": "2024-02-20T12:56:58.868Z"
        }
    ],
    "meta": {
        "fetchCount": 4,
        "totalCount": 4
    },
    "status": 1
}
```


---

# 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-ccdb.waexservices.com/echofeed/api-documentation/exchanges.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.
