Versions in this module Expand all Collapse all v1 v1.1.1 Sep 2, 2026 v1.0.0 Jul 31, 2026 Changes in this version + const DefaultBaseDelay + const DefaultBaseURL + const DefaultMaxAttempts + const DefaultTimeout + const DefaultUserAgent + var ErrBadRequest = errors.New("glassnode: bad request — invalid parameters or unsupported asset") + var ErrInvalidMetricPath = errors.New("glassnode: invalid metric path") + var ErrMissingAPIKey = errors.New(...) + var ErrNotFound = errors.New("glassnode: resource not found") + var ErrRateLimited = errors.New("glassnode: rate limit exceeded") + var ErrUnauthorized = errors.New("glassnode: unauthorized — check your API key") + func BoolPtr(b bool) *bool + func Float64Ptr(f float64) *float64 + func Int64Ptr(i int64) *int64 + func IntPtr(i int) *int + func StringPtr(s string) *string + type APIError struct + Message string + RateLimitLimit string + RateLimitRemaining string + RateLimitReset string + RawBody []byte + RequestID string + Retried int + StatusCode int + func (e *APIError) Error() string + type APIUsage struct + CreditsUsed int + type AddressesService struct + func (s *AddressesService) AccumulationBalance(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *AddressesService) AccumulationCount(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *AddressesService) AccumulationCountPIT(ctx context.Context, q *MetricQuery) ([]PITTimePoint, error) + func (s *AddressesService) ActiveCount(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *AddressesService) ActiveCountPIT(ctx context.Context, q *MetricQuery) ([]PITTimePoint, error) + func (s *AddressesService) ActiveCountWithContracts(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *AddressesService) Count(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *AddressesService) GetRaw(ctx context.Context, metricName string, q *MetricQuery) (json.RawMessage, error) + func (s *AddressesService) NewAddresses(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *AddressesService) ReceivingAddresses(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *AddressesService) SendingAddresses(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + type Asset struct + AssetType string + Blockchains []AssetBlockchain + ExternalIDs AssetExternalIDs + ID string + LogoURL string + Name string + SemanticTags []string + Symbol string + type AssetBlockchain struct + Address string + Blockchain string + Decimals int + OnChainSupport bool + type AssetExternalIDs struct + CCData string + CoinGecko string + CoinMarketCap string + type AssetsResponse struct + Data []Asset + type AuthMode int + const AuthModeHeader + const AuthModeQuery + type BlockchainService struct + func (s *BlockchainService) BlockHeight(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *BlockchainService) BlockIntervalMean(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *BlockchainService) BlockIntervalMedian(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *BlockchainService) BlockSizeMean(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *BlockchainService) BlockSizeTotal(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *BlockchainService) BlocksMined(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *BlockchainService) GetRaw(ctx context.Context, metricName string, q *MetricQuery) (json.RawMessage, error) + func (s *BlockchainService) UTXOsCreated(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *BlockchainService) UTXOsSpent(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *BlockchainService) UTXOsTotal(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + type BreakdownsService struct + func (s *BreakdownsService) GetRaw(ctx context.Context, metricName string, q *MetricQuery) (json.RawMessage, error) + func (s *BreakdownsService) MVRVByAge(ctx context.Context, q *MetricQuery) ([]ObjectPoint, error) + func (s *BreakdownsService) RealizedCapByAge(ctx context.Context, q *MetricQuery) ([]ObjectPoint, error) + func (s *BreakdownsService) SOPRByAge(ctx context.Context, q *MetricQuery) ([]ObjectPoint, error) + func (s *BreakdownsService) SOPRByWalletSize(ctx context.Context, q *MetricQuery) ([]ObjectPoint, error) + func (s *BreakdownsService) SupplyByAge(ctx context.Context, q *MetricQuery) ([]ObjectPoint, error) + func (s *BreakdownsService) SupplyByPnL(ctx context.Context, q *MetricQuery) ([]ObjectPoint, error) + func (s *BreakdownsService) SupplyByWalletSize(ctx context.Context, q *MetricQuery) ([]ObjectPoint, error) + type BridgesService struct + func (s *BridgesService) DepositsByChain(ctx context.Context, q *MetricQuery) ([]ObjectPoint, error) + func (s *BridgesService) GetRaw(ctx context.Context, metricName string, q *MetricQuery) (json.RawMessage, error) + func (s *BridgesService) NetFlowByChain(ctx context.Context, q *MetricQuery) ([]ObjectPoint, error) + func (s *BridgesService) TVL(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *BridgesService) TVLRelative(ctx context.Context, q *MetricQuery) ([]ObjectPoint, error) + func (s *BridgesService) WithdrawalsByChain(ctx context.Context, q *MetricQuery) ([]ObjectPoint, error) + type BulkPoint struct + Bulk json.RawMessage + Computed json.RawMessage + T int64 + type BulkQuery struct + Assets []string + Currency Currency + Exchanges []string + ExtraParams map[string][]string + Format Format + Networks []string + Resolution Resolution + Since *int64 + Until *int64 + func (q *BulkQuery) ToValues() url.Values + type BulkResponse struct + Data []BulkPoint + type Client struct + Addresses *AddressesService + Blockchain *BlockchainService + Breakdowns *BreakdownsService + Bridges *BridgesService + DeFi *DeFiService + Derivatives *DerivativesService + Distribution *DistributionService + ETH2 *ETH2Service + Entities *EntitiesService + Fees *FeesService + Global *GlobalService + Indicators *IndicatorsService + Institutions *InstitutionsService + Lightning *LightningService + Macro *MacroService + Market *MarketService + Mempool *MempoolService + Metadata *MetadataService + Metrics *MetricsService + Mining *MiningService + Options *OptionsService + PointInTime *PointInTimeService + Protocols *ProtocolsService + Signals *SignalsService + Supply *SupplyService + Transactions *TransactionsService + Treasuries *TreasuriesService + User *UserService + func NewClient(apiKey string, opts ...Option) *Client + func NewClientFromEnv(opts ...Option) (*Client, error) + type Currency string + const CurrencyNative + const CurrencyUSD + type DeFiService struct + func (s *DeFiService) GetRaw(ctx context.Context, metricName string, q *MetricQuery) (json.RawMessage, error) + func (s *DeFiService) TVL(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + type DerivativesService struct + func (s *DerivativesService) FuturesEstimatedLeverageRatio(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *DerivativesService) FuturesLiquidationsLongTotal(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *DerivativesService) FuturesLiquidationsShortTotal(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *DerivativesService) FuturesOpenInterest(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *DerivativesService) FuturesPerpetualFundingRate(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *DerivativesService) FuturesVolume(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *DerivativesService) GetRaw(ctx context.Context, metricName string, q *MetricQuery) (json.RawMessage, error) + func (s *DerivativesService) OptionsOpenInterest(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *DerivativesService) OptionsVolume24h(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + type DistributionService struct + func (s *DistributionService) ExchangeBalancePercent(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *DistributionService) ExchangeBalanceTotal(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *DistributionService) ExchangeNetPositionChange(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *DistributionService) GetRaw(ctx context.Context, metricName string, q *MetricQuery) (json.RawMessage, error) + func (s *DistributionService) GiniCoefficient(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *DistributionService) HerfindahlIndex(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *DistributionService) MinerBalance(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *DistributionService) MinerNetPositionChange(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *DistributionService) SupplyInSmartContracts(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + type ETH2Service struct + func (s *ETH2Service) ActiveValidators(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *ETH2Service) AverageValidatorBalance(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *ETH2Service) EstimatedAnnualIssuance(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *ETH2Service) GetRaw(ctx context.Context, metricName string, q *MetricQuery) (json.RawMessage, error) + func (s *ETH2Service) ParticipationRate(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *ETH2Service) TotalValidators(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *ETH2Service) TotalValueStaked(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + type EntitiesService struct + func (s *EntitiesService) ActiveEntities(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *EntitiesService) EntitiesNetGrowth(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *EntitiesService) GetRaw(ctx context.Context, metricName string, q *MetricQuery) (json.RawMessage, error) + func (s *EntitiesService) NewEntities(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *EntitiesService) NumberWhales(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *EntitiesService) ReceivingEntities(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *EntitiesService) SendingEntities(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + type FeesService struct + func (s *FeesService) FeeRatioMultiple(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *FeesService) FeesMean(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *FeesService) FeesMedian(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *FeesService) FeesTotal(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *FeesService) GasPriceMean(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *FeesService) GasPriceMedian(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *FeesService) GasUsedTotal(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *FeesService) GetRaw(ctx context.Context, metricName string, q *MetricQuery) (json.RawMessage, error) + type Format string + const FormatCSV + const FormatJSON + type GlobalService struct + func (s *GlobalService) GetRaw(ctx context.Context, metricName string, q *MetricQuery) (json.RawMessage, error) + func (s *GlobalService) MedianSOPR(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *GlobalService) TotalMarketCap(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *GlobalService) TotalOpenInterest(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *GlobalService) TotalRealizedCap(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + type IndicatorsService struct + func (s *IndicatorsService) AccumulationTrendScore(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *IndicatorsService) CDD(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *IndicatorsService) Dormancy(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *IndicatorsService) FearGreed(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *IndicatorsService) GetRaw(ctx context.Context, metricName string, q *MetricQuery) (json.RawMessage, error) + func (s *IndicatorsService) Liveliness(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *IndicatorsService) MVRV(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *IndicatorsService) NUPL(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *IndicatorsService) NVT(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *IndicatorsService) PuellMultiple(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *IndicatorsService) RHODL(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *IndicatorsService) RealizedLoss(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *IndicatorsService) RealizedProfit(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *IndicatorsService) ReserveRisk(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *IndicatorsService) SOPR(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *IndicatorsService) StockToFlow(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + type InstitutionsService struct + func (s *InstitutionsService) GetRaw(ctx context.Context, metricName string, q *MetricQuery) (json.RawMessage, error) + func (s *InstitutionsService) PurposeBitcoinETFHoldings(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *InstitutionsService) USSpotETFBalances(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *InstitutionsService) USSpotETFNetFlows(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *InstitutionsService) USSpotETFPrice(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *InstitutionsService) USSpotETFTradingVolume(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + type LightningService struct + func (s *LightningService) BaseFeeMedian(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *LightningService) Capacity(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *LightningService) ChannelSizeMean(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *LightningService) ChannelSizeMedian(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *LightningService) FeeRateMedian(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *LightningService) GetRaw(ctx context.Context, metricName string, q *MetricQuery) (json.RawMessage, error) + func (s *LightningService) NumberOfChannels(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *LightningService) NumberOfNodes(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + type MacroService struct + func (s *MacroService) EuroAreaInterestRate(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *MacroService) GetRaw(ctx context.Context, metricName string, q *MetricQuery) (json.RawMessage, error) + func (s *MacroService) USCentralBankBalanceSheet(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *MacroService) USCoreInflationRate(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *MacroService) USGDP(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *MacroService) USInterestRate(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *MacroService) USMoneySupplyM2(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + type MarketService struct + func (s *MarketService) BTCDominance(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *MarketService) BetaBtc7D(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *MarketService) GetRaw(ctx context.Context, metricName string, q *MetricQuery) (json.RawMessage, error) + func (s *MarketService) MVRV(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *MarketService) MarketCap(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *MarketService) Price(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *MarketService) PriceDrawdownFromATH(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *MarketService) PriceOHLC(ctx context.Context, q *MetricQuery) ([]ObjectPoint, error) + func (s *MarketService) RealizedCap(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *MarketService) RealizedPrice(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *MarketService) RealizedVolatility1M(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *MarketService) SpotVolume(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *MarketService) SpotVolume24h(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + type MempoolService struct + func (s *MempoolService) AverageRelativeFee(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *MempoolService) GetRaw(ctx context.Context, metricName string, q *MetricQuery) (json.RawMessage, error) + func (s *MempoolService) TotalAmountOfCoins(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *MempoolService) TotalAmountOfFees(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *MempoolService) TransactionCount(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *MempoolService) TransactionsSize(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + type MetadataService struct + func (s *MetadataService) Assets(ctx context.Context, filter string) (*AssetsResponse, error) + func (s *MetadataService) Metric(ctx context.Context, metricPath string, query *MetricQuery) (*MetricMetadata, error) + func (s *MetadataService) Metrics(ctx context.Context, query *MetricQuery) ([]string, error) + type MetricDescriptors struct + Description map[string]string + Group string + Name string + ShortName string + Tags []string + type MetricMetadata struct + Descriptors *MetricDescriptors + IsPIT bool + Modified int64 + Parameters map[string][]string + Path string + Queried map[string]string + Refs *MetricRefs + Tier int + Timerange *Timerange + type MetricQuery struct + Asset string + Currency Currency + Exchange string + ExtraParams map[string][]string + Format Format + FromExchange string + Maturity string + Miner string + Network string + Period string + QuoteSymbol string + Resolution Resolution + Since *int64 + TimestampFormat TimestampFormat + ToExchange string + Until *int64 + func (q *MetricQuery) ToValues() url.Values + type MetricRefs struct + Docs string + MetricVariant MetricVariant + Studio string + type MetricVariant struct + Base string + Bulk string + PIT string + type MetricsService struct + func (s *MetricsService) Get(ctx context.Context, metricPath string, query *MetricQuery) (json.RawMessage, error) + func (s *MetricsService) GetBulk(ctx context.Context, metricPath string, query *BulkQuery) (*BulkResponse, error) + func (s *MetricsService) GetBulkRaw(ctx context.Context, metricPath string, query *BulkQuery) (json.RawMessage, error) + func (s *MetricsService) GetObjectPoints(ctx context.Context, metricPath string, query *MetricQuery) ([]ObjectPoint, error) + func (s *MetricsService) GetTimePoints(ctx context.Context, metricPath string, query *MetricQuery) ([]TimePoint, error) + type MiningService struct + func (s *MiningService) Difficulty(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *MiningService) GetRaw(ctx context.Context, metricName string, q *MetricQuery) (json.RawMessage, error) + func (s *MiningService) HashRate(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *MiningService) MinerRevenueBlockRewards(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *MiningService) MinerRevenueFees(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *MiningService) MinerRevenueTotal(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *MiningService) Thermocap(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + type ObjectPoint struct + O json.RawMessage + T int64 + type Option func(*Client) + func WithAPIKey(key string) Option + func WithAppID(id string) Option + func WithAuthMode(mode AuthMode) Option + func WithBaseURL(url string) Option + func WithHTTPClient(client *http.Client) Option + func WithRetry(maxAttempts int, baseDelay time.Duration) Option + func WithTimeout(d time.Duration) Option + func WithUserAgent(ua string) Option + type OptionsService struct + func (s *OptionsService) GetRaw(ctx context.Context, metricName string, q *MetricQuery) (json.RawMessage, error) + func (s *OptionsService) ImpliedVolatility(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *OptionsService) MaxPain(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *OptionsService) OpenInterest(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *OptionsService) PutCallRatio(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *OptionsService) Volume(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + type PITObjectPoint struct + ComputedAt int64 + O json.RawMessage + T int64 + type PITTimePoint struct + ComputedAt int64 + T int64 + V float64 + type PointInTimeService struct + func (s *PointInTimeService) GetPITObjectPoints(ctx context.Context, metricPath string, q *MetricQuery) ([]PITObjectPoint, error) + func (s *PointInTimeService) GetPITTimePoints(ctx context.Context, metricPath string, q *MetricQuery) ([]PITTimePoint, error) + func (s *PointInTimeService) GetRaw(ctx context.Context, metricPath string, q *MetricQuery) (json.RawMessage, error) + type ProtocolsService struct + func (s *ProtocolsService) AaveV3AvailableLiquidity(ctx context.Context, q *MetricQuery) ([]ObjectPoint, error) + func (s *ProtocolsService) GetRaw(ctx context.Context, metricName string, q *MetricQuery) (json.RawMessage, error) + func (s *ProtocolsService) UniswapTVLPerFeeTier(ctx context.Context, q *MetricQuery) ([]ObjectPoint, error) + type RawResponse struct + Raw json.RawMessage + type Resolution string + const Resolution10m + const Resolution1h + const Resolution1month + const Resolution1w + const Resolution24h + type ResponseMetadata struct + Duration time.Duration + FinalURL string + RateLimitLimit string + RateLimitRemaining string + RateLimitReset string + RequestID string + StatusCode int + type SignalsService struct + func (s *SignalsService) AltcoinCycleSignal(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *SignalsService) BSSGoldilocksSignal(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *SignalsService) BitcoinRiskSignal(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *SignalsService) BitcoinSharpeSignal(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *SignalsService) EcosystemMomentumSignal(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *SignalsService) GetRaw(ctx context.Context, metricName string, q *MetricQuery) (json.RawMessage, error) + type SupplyService struct + func (s *SupplyService) ActiveSupply(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *SupplyService) CirculatingSupply(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *SupplyService) GetRaw(ctx context.Context, metricName string, q *MetricQuery) (json.RawMessage, error) + func (s *SupplyService) HODLWaves(ctx context.Context, q *MetricQuery) ([]ObjectPoint, error) + func (s *SupplyService) InflationRate(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *SupplyService) LongTermHolderSupply(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *SupplyService) ProfitableSupply(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *SupplyService) ShortTermHolderSupply(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + type TimePoint struct + T int64 + V float64 + type Timerange struct + Max int64 + Min int64 + type TimestampFormat string + const TimestampHumanized + const TimestampUnix + type TransactionsService struct + func (s *TransactionsService) Count(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *TransactionsService) ExchangeDeposits(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *TransactionsService) ExchangeWithdrawals(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *TransactionsService) GetRaw(ctx context.Context, metricName string, q *MetricQuery) (json.RawMessage, error) + func (s *TransactionsService) Rate(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *TransactionsService) SizeMean(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *TransactionsService) SizeTotal(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *TransactionsService) TransferVolumeMean(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *TransactionsService) TransferVolumeTotal(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + type TreasuriesService struct + func (s *TreasuriesService) GetRaw(ctx context.Context, metricName string, q *MetricQuery) (json.RawMessage, error) + func (s *TreasuriesService) TreasuryBalancesCompanies(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *TreasuriesService) TreasuryBalancesGovernments(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *TreasuriesService) TreasuryCountCompanies(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *TreasuriesService) TreasuryNetFlowsCompanies(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + func (s *TreasuriesService) TreasuryNetFlowsGovernments(ctx context.Context, q *MetricQuery) ([]TimePoint, error) + type UserService struct + func (s *UserService) APIUsage(ctx context.Context) (*APIUsage, error)