MarketRatings

Get List of Market ratings

  • Method: GET

  • Endpoint: /api/v1/crypto/market-ratings

  • Headers:

    • Cookie: The session cookie value.

    • csrf_token: The CSRF token obtained after login.

  • Query:

    • market: (string) Market pair.

    • ratingType: (string) Rating type.

    • date: (string) Date of the rating.

    • exchangeType: (string) Type of an exchange (DEX/CEX)

    • orderBy: (string) Order of ratings (ASC/DESC).

Description:

The /api/v1/crypto/market-ratings endpoint fetches market and exchange ratings by pair and type and order them by ratingValue. So a user can see list of exchanges and markets for a specific pair (market) and decide which one is better for trading.

Example with curl:

curl -X GET "https://157.230.31.240/api/v1/crypto/market-ratings?symbol=ILV/WETH&ratingType=EXCHANGE_RATE_POOL_A_SIZE&date=2024-05-28 09:10:00&orderBy=DESC&exchangeType=DEX&offset=0&limit=5" \
     -H "Cookie: session_cookie_value"  \
     -H "csrf_token: your_csrf_token_here"

Example Response Payload:

{
    "data": [
        {
            "id": "1",
            "marketId": 1157,
            "ratingValue": "325606.80583842",
            "ratingType": "EXCHANGE_RATE_POOL_A_SIZE",
            "intervalStart": "2024-05-28T09:10:00.000Z",
            "intervalEnd": "2024-05-28T09:11:00.000Z",
            "market": {
                "id": 1157,
                "externalMarketId": "ILV/WETH",
                "baseId": 227,
                "quoteId": 228,
                "exchangeId": 17,
                "meta": {
                    "pool": "0x6a091a3406E0073C3CD6340122143009aDac0EDa"
                },
                "baseMeta": {
                    "address": "0x767FE9EDC9E0dF98E07454847909b5E959D7ca0E",
                    "decimals": 18
                },
                "quoteMeta": {
                    "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                    "decimals": 18
                },
                "description": null,
                "imageUrl": null,
                "active": true,
                "historical": false,
                "exchange": {
                    "id": 17,
                    "externalExchangeId": "sushiswap",
                    "dataSource": "Ethereum",
                    "type": "DEX",
                    "name": "SushiSwap",
                    "description": null,
                    "imageUrl": null,
                    "createdAt": "2024-05-24T12:02:05.914Z",
                    "updatedAt": "2024-05-24T12:02:05.914Z"
                },
                "baseToken": {
                    "id": 227,
                    "symbol": "ILV",
                    "name": "Illuvium",
                    "itin": null,
                    "description": null,
                    "imageUrl": null,
                    "createdAt": "2024-05-24T12:02:05.934Z",
                    "updatedAt": "2024-05-24T12:02:05.934Z"
                },
                "quoteToken": {
                    "id": 228,
                    "symbol": "WETH",
                    "name": "Wrapped Ether",
                    "itin": null,
                    "description": null,
                    "imageUrl": null,
                    "createdAt": "2024-05-24T12:02:05.954Z",
                    "updatedAt": "2024-05-24T12:02:05.954Z"
                },
                "createdAt": "2024-05-24T12:02:05.970Z",
                "updatedAt": "2024-05-24T12:02:05.970Z"
            }
        }
    ],
    "meta": {
        "fetchCount": 1,
        "totalCount": 1
    },
    "status": 1
}

Last updated