MCDEX
Search…
Statistics

Cumulative Statistics of All LiquidityPool

Entity: Factory

Factory collect tradeVolume and totalValueLocked information to aggregate entities.
Field
Value Type
Description
totalVolumeUSD
BigDecimal
MCDEX's total trade volume in USD
totalValueLockedUSD
BigDecimal
MCDEX's total value locked in USD
totalSupplySideRevenueUSD
BigDecimal
MCDEX's total revenue captured by LP
totalProtocolRevenueUSD
BigDecimal
MCDEX's total revenue captured by DAO

Query Example

Query MCDEX's totalVolume and TVL bsc: getMcdexTVLAndVolume
{
factories {
totalVolumeUSD
totalValueLockedUSD
totalSupplySideRevenueUSD
totalProtocolRevenueUSD
}
}

Daily/Hourly Statistics of All LiquidityPool

This section shows how to get MCDEX's total volume/TVL from McdexDayData & McdexHourData entities.

Entity: McdexDayData & McdexHourData

McdexDayData & McdexHourData collect mcdex daily/hourly volume and tvl information.
Field
Value Type
Description
id
ID
timeindex (timestamp / 3600 for hour, 3600*24 for day)
timestamp
BigInt
timestamp
totalValueLockedUSD
BigDecimal
total locked value in USD
totalVolumeUSD
BigDecimal
total volume in USD

Query Example

Query MCDEX's daily totalVolume and TVL bsc: getMcdexDailyTVL
{
mcdexDayDatas(first:5 orderBy:timestamp orderDirection:desc) {
totalVolumeUSD
totalValueLockedUSD
timestamp
}
}
Copy link
On this page
Cumulative Statistics of All LiquidityPool
Entity: Factory
Query Example
Daily/Hourly Statistics of All LiquidityPool
Entity: McdexDayData & McdexHourData
Query Example