Skip to main content

Protocol Paid Earnings

This query provides daily aggregated earnings snapshots for the entire protocol. It's useful for understanding the overall yield generated across all earners on a day-by-day basis.

query ProtocolPaidEarningsQuery($from: String, $orderDirection: String) {
MDailyEarningsSnapshots(from: $from, orderDirection: $orderDirection) {
timestamp
timestampAsDate
balance
accruedYield
earnersCount
}
}

Parameters

  • from: Optional. The starting date for the snapshots. E.g., "30 Nov 2025". If not provided, it defaults to the last 30 days.
  • orderDirection: Optional. The sort order for the results. Accepts asc or desc. Defaults to desc.

Example

Get the daily paid earnings since November 30th, 2025.

{
"from": "2025-11-30",
"orderDirection": "asc"
}

Example Output

{
"data": {
"MDailyEarningsSnapshots": [
{
"timestamp": "1764460800",
"timestampAsDate": "2025-11-30T00:00:00.000Z",
"balance": "847944520687886",
"accruedYield": "82805690308",
"earnersCount": "15"
},
{
"timestamp": "1764547200",
"timestampAsDate": "2025-12-01T00:00:00.000Z",
"balance": "848027693010390",
"accruedYield": "83172322513",
"earnersCount": "15"
}
...
]
}
}