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
1
{
2
factories {
3
totalVolumeUSD
4
totalValueLockedUSD
5
totalSupplySideRevenueUSD
6
totalProtocolRevenueUSD
7
}
8
}
Copied!

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
1
{
2
mcdexDayDatas(first:5 orderBy:timestamp orderDirection:desc) {
3
totalVolumeUSD
4
totalValueLockedUSD
5
timestamp
6
}
7
}
Copied!
Last modified 14d ago