2022-04-25 08:44:57 +00:00
|
|
|
package glassnodeapi
|
2022-04-03 04:13:29 +00:00
|
|
|
|
|
|
|
import "github.com/c9s/requestgen"
|
|
|
|
|
|
|
|
//go:generate requestgen -method GET -type SupplyRequest -url "/v1/metrics/supply/:metric" -responseType Response
|
|
|
|
type SupplyRequest struct {
|
|
|
|
Client requestgen.AuthenticatedAPIClient
|
|
|
|
|
|
|
|
Asset string `param:"a,required,query"`
|
|
|
|
Since int64 `param:"s,query"`
|
|
|
|
Until int64 `param:"u,query"`
|
|
|
|
Interval Interval `param:"i,query"`
|
|
|
|
Format Format `param:"f,query"`
|
|
|
|
TimestampFormat string `param:"timestamp_format,query"`
|
|
|
|
|
|
|
|
Metric string `param:"metric,slug"`
|
|
|
|
}
|