holaplex / indexer

Index Solana data using a Geyser plugin (downstream service cluster)
https://holaplex.com
GNU Affero General Public License v3.0
162 stars 38 forks source link

Collection Trends Query #765

Closed kespinola closed 1 year ago

kespinola commented 2 years ago

Goal

Provide a query interface to the new collection trends table that tracks 1,7, and 30 day volume, floor, and sales.

Query

collectionTrends(limit: 25, offset: 0, sortBy: VOLUME | FLOOR | NUMBER_SALES, order: DESC | ASC, interval: 1d | 7d | 30d): [CollectionTrend]!

type CollectionTrend {
  1dVolume
  previous1dVolume
  7dVolume
  previous7dVolume
  30dVolume
  previous30dVolume
  1dSales
  previous1dSales
  7dSales
  previous7dSales
  30dSales
  previous30dSales
  1dFloorPrice
  previous1dFloorPrice
  7dFloorPrice
  previous7dFloorPrice
  30dFloorPrice
  previous30dFloorPrice
  collection: Collection!
}

Requirements

Image

kespinola commented 1 year ago

done.