Releases: tigusigalpa/glassnode-go
Releases · tigusigalpa/glassnode-go
Release list
v1.1.1
v1.1.1
Fixed
- Added proper
FormatCSVsupport:Metrics.Getnow returns raw CSV bytes without attempting JSON decoding. - Fixed URL construction when
WithBaseURLis configured with a trailing slash. - Updated outdated Macro API paths to the current
us_*andeuro_*endpoints. - Updated Market API paths for price, OHLC, market cap, and realized price to their current USD endpoints.
- Removed an unused Point-in-Time helper.
- Resolved
golangci-lintfindings for uncheckedWriteandClosereturn values.
Tests & CI
- Added regression tests for CSV responses, trailing base URLs, and Macro/Market endpoint paths.
- Increased test coverage to 90%+.
- Removed the duplicate Codecov upload from the test workflow.
Documentation
- Updated the README to match the current API, query types, defaults, and usage examples.
- Updated endpoint mappings in
docs/endpoint-coverage.md.
v1.0.0
Release Notes — v1.0.0
🎉 glassnode-go v1.0.0
Initial release of glassnode-go — a dependency-light, idiomatic Go SDK for the Glassnode Basic API.
✨ Highlights
- Zero external dependencies — pure Go standard library
- 25 category services covering the full documented endpoint surface: Addresses, Bridges, Blockchain, Breakdowns, DeFi, Derivatives, Distribution, Entities, ETH2, Fees, Global, Indicators, Institutions, Lightning, Macro, Market, Mempool, Mining, Options, PointInTime, Protocols, Signals, Supply, Transactions, Treasuries
- Generic
MetricsService—Get,GetTimePoints,GetObjectPoints,GetBulk,GetBulkRawfor any current or future metric path - Runtime metadata discovery via
MetadataService(Assets,Metrics,Metric) - Functional options on
Client:WithAPIKey,WithAuthMode,WithBaseURL,WithHTTPClient,WithTimeout,WithRetry,WithUserAgent,WithAppID NewClientFromEnv— instant setup fromGLASSNODE_API_KEY- Header (
X-Api-Key) and query-string (api_key) authentication modes - Automatic retry on HTTP 429 with
x-rate-limit-resetsupport and exponential backoff - Exported, inspectable errors —
APIError,ErrBadRequest,ErrUnauthorized,ErrNotFound,ErrRateLimited,ErrMissingAPIKey,ErrInvalidMetricPath— fully compatible witherrors.Is/errors.As ResponseMetadatawith rate-limit headers, request ID, duration, and redacted URL for safe logging- Typed models:
TimePoint,ObjectPoint,PITTimePoint,PITObjectPoint,BulkPoint,BulkResponse,Asset,MetricMetadata,APIUsage MetricQuery/BulkQueryparameter builders withToValues()- 39 tests covering auth, retries, errors, URL encoding, bulk params, context cancellation, and concurrency
- Full endpoint coverage documented in
docs/endpoint-coverage.md
📦 Installation
go get github.com/tigusigalpa/glassnode-goNote: this is an unofficial SDK, not affiliated with or endorsed by Glassnode.