permaryDaily Fee Summary (Last 12 Months)
    Updated 7 days ago
    with daily_metrics as (
    select
    date(t.closed_at) as date,
    count(*) as total_transactions,
    sum(t.fee_charged) as total_fees_charged,
    sum(t.inclusion_fee_bid) as total_inclusion_fee_bid,
    sum(t.inclusion_fee_charged) as total_inclusion_fee_charged,
    sum(t.resource_fee) as total_resource_fee,
    sum(t.resource_fee_refund) as total_resource_fee_refund,
    sum(t.non_refundable_resource_fee_charged) as total_non_refundable_fees,
    sum(t.refundable_resource_fee_charged) as total_refundable_resource_fee,
    sum(t.refundable_fee) as total_refundable_fees,
    sum(t.rent_fee_charged) as total_rent_fees
    from stellar.core.fact_transactions t
    where t.closed_at >= date_trunc('month', current_date) - interval '12 months'
    group by date(t.closed_at)
    )
    select
    m.date,
    m.total_transactions,
    m.total_fees_charged / pow(10, 7) * p.price as total_fees_charged_usd,
    m.total_inclusion_fee_bid / pow(10, 7) * p.price as total_inclusion_fee_bid_usd,
    m.total_inclusion_fee_charged / pow(10, 7) * p.price as total_inclusion_fee_charged_usd,
    m.total_resource_fee / pow(10, 7) * p.price as total_resource_fee_usd,
    m.total_resource_fee_refund / pow(10, 7) * p.price as total_resource_fee_refund_usd,
    m.total_non_refundable_fees / pow(10, 7) * p.price as total_non_refundable_fees_usd,
    m.total_refundable_resource_fee / pow(10, 7) * p.price as total_refundable_resource_fee_usd,
    m.total_refundable_fees / pow(10, 7) * p.price as total_refundable_fees_usd,
    m.total_rent_fees / pow(10, 7) * p.price as total_rent_fees_usd
    from daily_metrics m
    left join stellar.price.ez_prices_hourly p
    on date(m.date) = date(p.hour)
    and p.symbol = 'XLM'
    and p.blockchain = 'stellar'
    and p.is_native = TRUE
    order by m.date desc;
    Last run: 7 days ago
    DATE
    TOTAL_TRANSACTIONS
    TOTAL_FEES_CHARGED_USD
    TOTAL_INCLUSION_FEE_BID_USD
    TOTAL_INCLUSION_FEE_CHARGED_USD
    TOTAL_RESOURCE_FEE_USD
    TOTAL_RESOURCE_FEE_REFUND_USD
    TOTAL_NON_REFUNDABLE_FEES_USD
    TOTAL_REFUNDABLE_RESOURCE_FEE_USD
    TOTAL_REFUNDABLE_FEES_USD
    TOTAL_RENT_FEES_USD
    1
    2025-03-13 00:00:00.0001783954578.5494816991478.135877220.7534905465747.32565702247.440603594436.68283557863.20221784759.251446354
    2
    2025-03-13 00:00:00.0001783954576.6936308881473.3943646050.7510735259744.928411892246.646872272435.28205963862.99947998159.061381634
    3
    2025-03-13 00:00:00.0001783954622.4217948571590.2252354280.8106289146803.996531842266.204412036469.7971788167.99494099663.744576313
    4
    2025-03-13 00:00:00.0001783954597.3088583611526.0642023780.7779223599771.557574829255.463826553450.84220837965.25153989861.172665255
    5
    2025-03-13 00:00:00.0001783954580.4795665421483.0670503390.756004248749.818791953248.266084168438.13964255763.41306522859.449113661
    6
    2025-03-13 00:00:00.0001783954578.4621475431477.9127472140.7533768044747.212845484247.403251532436.61691671163.19267724259.242502131
    7
    2025-03-13 00:00:00.0001783954607.8238907181552.9290550270.7916169145785.140083695259.961014841458.7788400666.40022879562.249549593
    8
    2025-03-13 00:00:00.0001783954576.0691916751471.7989850660.7502602695744.121809413246.379805028434.81073973362.93126465258.997430447
    9
    2025-03-13 00:00:00.0001783954626.6444012891601.0135711890.8161283474809.45096958268.010384243472.98435606768.45622926964.177029451
    10
    2025-03-13 00:00:00.0001783954580.7721359641483.8145358570.7563852842750.196710596248.391213577438.36047076463.44502625659.479076805
    11
    2025-03-13 00:00:00.0001783954610.6295004721560.097106450.795270881788.764154271261.160949839460.89648368766.70672074562.536882728
    12
    2025-03-13 00:00:00.0001783954577.6652233721475.8766859150.7523389073746.183440223247.062413964436.01540704263.10561921759.160886105
    13
    2025-03-13 00:00:00.0001783954564.8271024711443.0765751220.7356188115729.600144515241.571660822426.32533347861.70315021557.84608546
    14
    2025-03-13 00:00:00.0001783954567.1370908921448.9783637650.7386272913732.584009628242.559622867428.06888753161.9554992358.082660134
    15
    2025-03-13 00:00:00.0001783954624.6575492451595.9373635660.8135407136806.884507149267.160624828471.48470182568.23918049563.973548399
    16
    2025-03-13 00:00:00.0001783954567.8728811541450.858234060.7395855689733.534446813242.874313991428.62425399262.03587883158.158015205
    17
    2025-03-13 00:00:00.0001783954575.8726898241471.2969425540.7500043497743.867983459246.295762888434.66242228162.9097982958.977305947
    18
    2025-03-12 00:00:00.00039807531057.5008411382794.8583524191.1938272491325.55029192440.985069927734.786088236149.779133757143.632290545
    19
    2025-03-12 00:00:00.00039807531041.5834021472752.790312771.1758578331305.598188734434.347389205723.726132276147.524667253141.470345955
    20
    2025-03-12 00:00:00.00039807531080.260204872855.0088462511.2195206081354.078573450.475879973750.600036743153.002656284146.723521698
    ...
    9065
    1MB
    47s