Skip to Content
API统计数据获取活跃账户统计数据

获取活跃账户统计数据

1. 概述与典型用途

返回每天的活跃账户数据,包括活跃数量、交易量及环比变化。

  • 典型用途:分析网络活跃度趋势、展示 DAU 图表。
  • 何时不要用:查看新增用户数用「获取每日新增用户数」。

2. 接口与鉴权

GET /api/account/active_statistic

Base URL 与鉴权见 公共网络与鉴权说明

3. 请求

参数类型必填默认说明
typestringDAY查询类型,可选值:DAYWEEKMONTH(大小写不敏感)
start_timestampinteger开始时间,精确到毫秒
end_timestampinteger结束时间,精确到毫秒
daysinteger查询天数,最大跨度 1000 天

4. 响应

顶层

字段类型是否必返说明单位/精度
last_monthstring必返最近月份yyyy-MM
pre_monthstring必返上一个月份yyyy-MM
last_momstring必返月环比变化率百分比
avg_active_countinteger必返平均活跃账户数
totalinteger必返数据条数
dataarray必返活跃账户数据列表,见下

data[] 元素

字段类型是否必返说明单位/精度
day_stringstring必返统计日期yyyy-MM-dd
day_timeinteger必返统计日期时间戳毫秒时间戳
active_countinteger必返当日活跃账户数
transactionsinteger必返当日交易数
owner_address_countinteger必返发起交易的地址数
amountnumber必返交易金额(float,量级约 2×10¹⁰,疑为 sun)sun
proportionnumber必返活跃账户占比
momnumber必返环比变化
typestring必返统计类型

5. 错误

HTTP 状态码见 公共错误说明。本接口要点:

  • 空结果不是错误:无命中返回 200 + data: [],属于正常响应。
最后更新于: