Skip to main content

    Calculation method

    How MoonMath calculates pressure analyzer

    Buy/Sell Pressure Analyzer — What did the market report buying and selling over 24 hours?

    The formula

    No formula combines the figures. The page states the buys and sells the market-data provider reported for the last 24 hours, the buy share of the transaction count, the sell share of the dollar volume where a side was observed, and the price change. Depth is the net quote input for a 1% constant-product price move in the primary pool, and pool liquidity divided by market cap.

    What it reads

    • Buy and sell transaction counts over 24 hours
    • The 24-hour volume and price change, as reported
    • Per-side dollar volume per pool, where the provider observed it
    • Pool candles for the 7-day and 30-day windows
    • Pool reserves, liquidity and market cap, for depth

    What it assumes

    • A buy is a swap that takes the token out of a pool; a sell puts it in, as the provider classifies them
    • Per-side dollar volume is summed over the pools that reported it and is never modelled from the price
    • Counts and total volume come from one provider and the per-side volume from another, so their totals can differ

    What this does not establish

    • Who traded, or why: one wallet can be many transactions
    • Anything about centralised exchange volume
    • That the transaction count and the dollar volume agree; they can point in different directions and both are shown
    • What happens next: every figure describes a past window

    Run it

    Compare buying and selling activity without presenting transaction count or total volume as side-specific dollar flow. MoonMath states buy and sell dollar volume only where a provider observed it, and says so when it did not.

    Open the Pressure Analyzer calculator

    How the market itself works

    This page describes MoonMath's arithmetic. The mechanics section describes the market: how an order book forms a price, why order-book depth is not the same thing as pool liquidity, and what a public book does and does not let you observe.

    Read the market mechanics