Get Started with Analytics

Start Using Ocelloids Analytics

The Analytics API provides access to pre-aggregated metrics from supported agents. It is designed for time-series visualizations, dashboards, historical trend analysis, and blockchain activity monitoring.

Key Features

  • Aggregated metrics
  • Customizable timeframes and granularities
  • Data exports in parquet format
  • Simple REST interface using JSON POST requests

XCM Analytics Example

Currently, analytics are available via the xcm agent.

Live Dashboard

You can explore live analytics through the open-source dashboard:

Supported Operations

Operation Description
transfers_total Total transfer volume for the selected period
transfers_count_series Time-series of transfer counts
transfers_volume_by_asset_series Time-series of volume grouped by asset
transfers_by_channel_series Time-series of volume grouped by channel

Example Request (cURL)

All operations follow the same request format. Here’s an example using transfers_count_series.

Headers:

  • Content-Type: application/json
  • Authorization: Bearer <API_KEY>
curl -X POST https://your-api-url/query/xcm \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <API_KEY>" \
  -d '{
    "op": "transfers_count_series",
    "criteria": {
      "timeframe": "7 days",
      "bucket": "6 hours"
    }
  }'