Skip to main content
GET
/
explorer
/
analytics
Explorer period analytics
curl --request GET \
  --url https://api.leokit.dev/explorer/analytics
{
  "data": {
    "period": "7d",
    "generated_at": "2023-11-07T05:31:56Z",
    "summary": {
      "total_deposits": 123,
      "total_quotes": 123,
      "total_volume_usd": 123,
      "total_fees_usd": 123,
      "near_ecosystem_fees_usd": 123,
      "conversion_rate": 123
    },
    "volume_timeline": [
      {
        "date": "<string>",
        "count": 123,
        "volume_usd": 123,
        "fees_usd": 123
      }
    ],
    "protocols": [
      {
        "name": "<string>",
        "count": 123,
        "volume_usd": 123,
        "success_rate": 123
      }
    ],
    "top_pairs": [
      {
        "from_asset": "<string>",
        "to_asset": "<string>",
        "count": 123,
        "volume_usd": 123
      }
    ],
    "chains": [
      {
        "chain": "<string>",
        "source_count": 123,
        "dest_count": 123
      }
    ]
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.leokit.dev/llms.txt

Use this file to discover all available pages before exploring further.

Endpoint

GET /leokit/explorer/analytics
No authentication required. Cached for 5 minutes per period.

Request

ParameterTypeRequiredDescription
periodstringNoOne of 7d, 30d (default), 90d, 6m, 1y, all
The bucket size adapts to the period:
PeriodBucket size
7d90d, 6m1 day
1y, all1 week (Monday-aligned)

Response

{
  "data": {
    "period": "30d",
    "generated_at": "2026-04-28T12:00:00.000Z",
    "summary": {
      "total_deposits": 51200,
      "total_quotes": 0,
      "total_volume_usd": 380120000.00,
      "total_fees_usd": 38012.45,
      "near_ecosystem_fees_usd": 18230.55,
      "conversion_rate": 0
    },
    "volume_timeline": [
      { "date": "2026-04-01", "count": 1820, "volume_usd": 12480921.55, "fees_usd": 1248.09 }
    ],
    "protocols": [
      { "name": "thorchain", "count": 18200, "volume_usd": 122480000.00, "success_rate": 1.0 }
    ],
    "top_pairs": [
      {
        "from_asset": "ETH.USDC-0xA0b...",
        "to_asset": "BTC.BTC",
        "count": 482,
        "volume_usd": 12480.55
      }
    ],
    "chains": [
      { "chain": "ETH", "source_count": 18402, "dest_count": 4820 }
    ]
  }
}

Field Reference

Summary

FieldDescription
total_depositsIndexed swap count for the period
total_quotesCurrently always 0 (quote-level data is not part of the explorer feed)
total_volume_usdUSD volume across the period
total_fees_usdSum of fees across the timeline (after merging NEAR ecosystem fees)
near_ecosystem_fees_usdNEAR-ecosystem fees received at leodex.near over the period
conversion_rateCurrently always 0 (no quote data merged here)

volume_timeline[]

FieldDescription
dateBucket start date (ISO YYYY-MM-DD). Weekly buckets are aligned to Monday
countSwap count in the bucket (includes synthetic NEAR-ecosystem entries when merged)
volume_usdUSD volume in the bucket
fees_usdAffiliate fees in the bucket
NEAR-ecosystem fee transfers are merged into the timeline by date: each transfer adds its fee_usd and implied_volume_usd (computed as fee / 10 bps) to the matching bucket.

protocols[]

FieldDescription
nameProtocol slug
countSwap count
volume_usdUSD volume
success_rateCurrently always 1.0
The near row reflects the merged NEAR-ecosystem traffic (implied volume + on-chain swap count).

top_pairs[]

Top 10 trading pairs in the period, sorted by volume_usd.

chains[]

Per-chain source_count (swaps originating on the chain) and dest_count (swaps landing on the chain), sorted by total.

Errors

StatusDescription
400period not one of the allowed values

Query Parameters

period
enum<string>
default:30d
Available options:
7d,
30d,
90d,
6m,
1y,
all

Response

200 - application/json

Period analytics with timeline, protocols, and chains.

data
object
required