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:

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:

{
    "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
}

Last updated