Skip to main content

Complete Fee Breakdown for DEX Trades

The Most Complete Fees Data in Web3 — Unlike trading terminals like Axiom, GMGN, Padre, or Trojan that only display gas fees and a basic sum, the Mobula API provides a complete fee breakdown with detailed gas, platform, and MEV analysis. Available via REST API and WebSocket streaming.

Why Mobula’s Fee Data is Different

Most trading platforms and aggregators only show you partial fee information:
The problem: When platforms only show gas fees + a total sum, you’re missing critical information. The total trading cost is often 2-5x higher than just gas fees when using aggregators. Mobula is the only API that breaks down every single fee component.

What Makes Fee Analysis Essential

The total fees on a trade consists of multiple components:
  • Gas fees (gasFeesUSD): Network costs — usually the smallest part
  • Platform fees (platformFeesUSD): Aggregator/UI fees — often 0.5-1% of trade value
  • MEV fees (mevFeesUSD): Priority fees, Jito bundles, sandwich protection

See the complete fee breakdown with hover tooltip in the Mobula Trading Terminal

Available everywhere: This fee data is available in the REST API endpoints AND via WebSocket real-time streaming. Track fees as trades happen in real-time!

Axiom vs Mobula: Fee Comparison

Here’s a side-by-side comparison showing why complete fee data matters:

Comparing fee display: Axiom shows only gas + sum, Mobula shows the complete breakdown


Aggregated Fees by Token & Market

Beyond individual trade fees, Mobula provides aggregated fee statistics at both the token level and market/pool level.
Screenshot showing aggregated fee statistics for a token and its individual trading pools

Total fees displayed at both token level and individual market/pool level

Token-Level Fees

Access cumulative fees across ALL markets for a token:
{
  "data": {
    "symbol": "EXAMPLE",
    "totalFeesPaidUSD": 125000.50,  // All-time total fees
    "feesPaid24hUSD": 4450.0        // Last 24h fees
  }
}

Market-Level Fees

Each trading pool has its own fee statistics, letting you compare which pools are more “expensive” to trade:
{
  "data": {
    "pair": "EXAMPLE/SOL",
    "address": "0x...",
    "totalFeesPaidUSD": 45000.00,   // Total fees on this pool
    "feesPaid24hUSD": 1200.0
  }
}

Fees by Timeframe

Track trading costs across multiple timeframes to analyze patterns over time.
Postman screenshot showing API response with feesPaid1minUSD, feesPaid5minUSD, and other timeframe-based fee fields

Postman response showing fees by timeframe (1min, 5min, 15min, 1h, 4h, 24h)

FieldTimeframe
feesPaid1minUSDLast 1 minute
feesPaid5minUSDLast 5 minutes
feesPaid15minUSDLast 15 minutes
feesPaid1hUSDLast 1 hour
feesPaid4hUSDLast 4 hours
feesPaid6hUSDLast 6 hours
feesPaid12hUSDLast 12 hours
feesPaid24hUSDLast 24 hours
totalFeesPaidUSDAll-time cumulative

Why Trading Costs Matter

Understanding the complete fee breakdown is crucial for:
  1. Profitability analysis: Calculate true P&L including all costs
  2. Platform comparison: Identify which aggregators charge more
  3. Strategy optimization: Minimize fees for frequent traders
  4. Transparency: Show users exactly where their money goes

Pro insight: Total fees paid is often the best indicator for discovering trending tokens. High fees indicate organic trading activity from serious traders willing to pay premium costs — not wash trading or bot manipulation.
Unlike volume which can be easily faked, fees represent real money spent by traders. Tokens with high feesPaid24hUSD or rapidly increasing feesPaid1hUSD are strong signals of genuine market interest. To get real-time access to tokens ranked by fees and other trending metrics, use the Pulse endpoints:
  • WebSocket: Subscribe to the Pulse Stream V2 for real-time updates on trending tokens sorted by fees, volume, and other metrics
  • REST API: Use the POST /pulse endpoint to query trending tokens with custom filters and sorting by fees

Detailed Fees Breakdown

Gas Fees (gasFeesUSD)

Gas fees are the fundamental cost of executing any blockchain transaction. They go directly to network validators/miners. This is the only fee that competitors like Axiom, GMGN, and Padre typically show individually.
Why it matters: Gas fees vary significantly based on network congestion. During peak times, a simple swap can cost 50+onEthereummainnet,whilethesametrademightcost50+ on Ethereum mainnet, while the same trade might cost 0.001 on Solana.

Platform Fees (platformFeesUSD)

Platform fees are charged by trading aggregators and frontend platforms. This is the fee that competitors hide in their “total” sum. Most trading terminals (Axiom, GMGN, Trojan, Padre, etc.) charge around 1% per trade. Direct DEX access has 0% platform fees — only swap fees apply.
Platform fees are often the largest component of trading costs, yet they’re hidden by most platforms. On a 10,000trade,a110,000 trade, a 1% platform fee means 100 — vs $0.50 in gas fees!

MEV Fees (mevFeesUSD)

MEV (Maximal Extractable Value) fees represent costs related to transaction priority and protection against front-running. Another fee component typically hidden by competitors. Types of MEV costs:
  • Priority fees: Extra tips to get faster inclusion
  • Jito bundles (Solana): Fees for MEV protection
  • Flashbots (EVM): Private transaction costs

Fetching Fees with the API

Single Trade Query

Retrieve detailed fee information for a specific transaction:
curl -X GET "https://demo-api.mobula.io/api/2/token/trade?blockchain=solana&transactionHash=2qJM77u61uprkc9xo77nhksRiHV8VMyRoN1bu71tzZ8LKVE48vRx7bjWmB3WV9ufhSD9NjgH1t61nhPt6hy1MdQY" \
  -H "Authorization: YOUR_API_KEY"
Response:
{
  "data": {
    "id": "123456789",
    "type": "buy",
    "baseTokenAmount": 1000000,
    "baseTokenAmountUSD": 2500.00,
    "quoteTokenAmount": 10.5,
    "quoteTokenAmountUSD": 2500.00,
    "transactionHash": "2qJM77u61uprkc9xo77nhksRiHV8VMyRoN1bu71tzZ8LKVE48vRx7bjWmB3WV9ufhSD9NjgH1t61nhPt6hy1MdQY",
    "blockchain": "Solana",
    "totalFeesUSD": 12.85,
    "gasFeesUSD": 0.35,
    "platformFeesUSD": 10.00,
    "mevFeesUSD": 2.50
  }
}

Multiple Trades Query

Fetch trades with fees for Fartcoin:
curl -X GET "https://demo-api.mobula.io/api/2/token/trades?blockchain=solana&address=9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump&mode=asset&limit=50" \
  -H "Authorization: YOUR_API_KEY"
Fetch trades for Wojak:
curl -X GET "https://demo-api.mobula.io/api/2/token/trades?blockchain=solana&address=8J69rbLTzWWgUJziFY8jeu5tDwEPBwUz4pKBMr5rpump&mode=asset&limit=50" \
  -H "Authorization: YOUR_API_KEY"
Trades list showing fees badge next to each trade value

Real-World Case Study: Analyzing a Solana Memecoin Trade

Let’s analyze a real trade scenario on a Solana memecoin to understand how fees impact profitability.

Scenario

A trader buys 1,000,000 tokens of EXAMPLEatEXAMPLE at 0.0025 each using Axiom.
Example trade showing buy order with fees breakdown

Breaking Down the Costs

ComponentAmount (USD)
Trade Value$2,500.00
Gas Fee$0.35
Platform Fee (Axiom 1%)$25.00
MEV/Priority Fee$2.50
Total Fees$27.85

Impact Analysis

Entry Cost: $2,500.00 + $27.85 = $2,527.85
Effective Entry Price: $0.00252785 per token

To break even, the token needs to increase by:
($27.85 / $2,500) × 100 = 1.11%
For small trades, platform fees can represent 1-2% of the trade value. For frequent traders or large positions, consider using direct DEX interfaces to minimize platform fees.

API Reference

REST API Endpoints

WebSocket Streaming


Summary

Understanding and tracking trade fees is essential for: ✅ Accurate P&L calculations ✅ Platform comparison and optimization
✅ Building transparent trading interfaces ✅ Helping users minimize trading costs
The Mobula API provides comprehensive fee breakdown data (totalFeesUSD, gasFeesUSD, platformFeesUSD, mevFeesUSD) that enables you to build powerful analytics and trading tools.

Ready to get started?

Generate your free API key and start analyzing trade fees today.