🕹ī¸Protocols

Endpoints and responses for more general data like Uniswap volume

Get Protocol Data

GET https://api.pepeanalytics.com/v1/protocol/:protocol

Get current protocol data and the protocol's volume timeseries data . At the moment, only uniswap and sushiswap are available.

Includes: volume, fees, liquidity pool count, tvl, etc.

Path Parameters

NameTypeDescription

protocol*

'uniswap' | 'sushiswap'

Query Parameters

NameTypeDescription

include_charts

Boolean

Include timeseries TVL data

days_ago

String | Number

How many days back from current to retrieve (default: 30)

{
    data: {
            id: string
            poolCount: string
            txCount: string
            totalVolumeUSD: string
            totalVolumeETH: string
            totalFeesUSD: string
            totalFeesETH: string
            totalValueLockedUSD: string
            totalValueLockedETH: string
            history?: [                                # Timeseries data that is included when using the `include_charts` param
               {
                  x: string (UTC)
                  y: number
               }
               ...
            ]
    }
    message: 'Success'
    isError: false
}

Last updated