MCDEX
Search…
MCDEX
Overview
Protocol
Mai Protocol V3
V3 AMM Design
Tunable Oracle
Audits
DAO
MCDEX DAO
MCB Tokenomics
Developer
Mai3 Contracts
Mai3 SDK
Mai3 Subgraph
Quick Start
Liquidity Pool
Perpetual
User
Statistics
Deployed Contracts
Bug Bounty
Trader
Basis Trading
LP Hedging
Powered By
GitBook
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!
Previous
User
Next - Developer
Deployed Contracts
Last modified
5mo ago
Copy link
Contents
Cumulative Statistics of All LiquidityPool
Entity: Factory
Query Example
Daily/Hourly Statistics of All LiquidityPool
Entity: McdexDayData & McdexHourData
Query Example