Metrics
Definition
Our DEX Metrics endpoints can retrieve daily metrics for a specified decentralized exchange (for example Uniswap), an asset (for example DAI) or a pair (for example DAI_WETH).
Details
In crypto, every exchange has a different definition as to what they consider "a day". Some may say it's 8-8, some say midnight to midnight, there is no standard. So the volume data you find online across the different exchanges will not give you an apples to apples comparison between the exchanges. However, we normalize timestamps to GMT and break it down with the raw hourly data ourselves, which then allows you to compare the volume data across exchanges using the same time duration. This is available at the exchange, asset or pair level. It is very difficult to do this yourself as you would need all the raw hourly data in order to get these accurate values.
*Note: In our DEX Metrics endpoints, we refer to TVL as "liquidityTotalNative" and "liquidityTotalUSD".
API Endpoints
Exchange Level
/market/defi/metrics/exchanges/{exchange}/latest
/market/defi/metrics/exchanges/{exchange}/historical
Asset Level
/market/defi/metrics/exchanges/{exchange}/assets/{asset}/latest
/market/defi/metrics/exchanges/{exchange}/assets/{asset}/historical
Pair Level
/market/defi/metrics/exchanges/{exchange}/pairs/{pair}/latest
/market/defi/metrics/exchanges/{exchange}/pairs/{pair}/historical
Availability
The metrics endpoints are available via REST API. The "latest" endpoints are updated daily and will display the values for the previous day. The "historical" endpoints will provide each day's value from midnight to midnight UTC.
Frequently Asked Questions
Which pairs & assets do you provide volume level metrics for?
- We provide volume level metrics for all assets and all pairs traded on the decentralized exchanges we support. The list of exchanges we support can be found using our DEX Exchanges endpoint or the list of pairs supported on these DEX's can be found using our DEX Pairs endpoint.
Updated 4 months ago