Stablecoin Daily Metrics

GET/gateway/v1/stablecoin/metrics

Returns daily stablecoin transfer metrics.

Query Parameters

asset_idstring

Canonical stablecoin asset id.

chainstring

Optional chain.

token_addressstring

Deployment address; requires chain.

fromstring

Inclusive UTC date YYYY-MM-DD.

tostring

Exclusive UTC date YYYY-MM-DD.

group_byenum<string>

Grouping grain.

Available options:deploymentasset
limitinteger

Results per page.

offsetinteger

Rows to skip.

Stablecoin Daily Metrics
const options = {method: 'GET'};

fetch('https://api.asksurf.ai/gateway/v1/stablecoin/metrics', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
OK
{
  "$schema": "https://example.com/schemas/DataResponseStablecoinMetric.json",
  "data": [
    {
      "active_senders": 123,
      "asset_id": "<string>",
      "chain": "<string>",
      "date": "<string>",
      "priced_transfer_count": 123,
      "token_address": "<string>",
      "transfer_count": 123,
      "transfer_volume": 123,
      "transfer_volume_usd": 123
    }
  ],
  "meta": {
    "cached": true,
    "credits_used": 123,
    "empty_reason": "<string>",
    "has_more": true,
    "limit": 123,
    "offset": 123,
    "total": 123,
    "watermark": 123
  }
}