Skip to content

Conversation

@mukama
Copy link
Contributor

@mukama mukama commented Feb 12, 2026

Summary

  • Add GET /auth/pools/:pool/balance-history endpoint with balance, hashrate, and revenue time-series
  • Support range param for bucket size (1D/1W/1M)
  • Aligned with API v2 spec: added hashrate, removed snapshotCount

Example Queries

All pools, daily buckets (default):

/auth/pools/all/balance-history?start=1735689600000&end=1770898000000

Specific pool, daily:

/auth/pools/my-pool-tag/balance-history?start=1735689600000&end=1770898000000

Weekly buckets:

/auth/pools/my-pool-tag/balance-history?start=1735689600000&end=1770898000000&range=1W

Monthly buckets:

/auth/pools/my-pool-tag/balance-history?start=1735689600000&end=1770898000000&range=1M

Add pool balance history API endpoint that fetches pool balance
snapshots via tailLog RPC, groups them into time buckets (1D/1W/1M),
and returns time-series data with balance and revenue per bucket.
…entries

Align pool balance-history endpoint with API v2 spec which requires
balance, hashrate, and revenue time-series data.
tail-log returns empty for type=minerpool. Switch to ext-data with
transactions key which provides daily revenue (changed_balance) and
hashrate (mining_extra.hash_rate). Also treat 'all' pool param as
no filter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant