Loading...
Loading...
Use the Glassnode CLI (gn) to list assets and metrics, fetch on-chain and market data from the Glassnode API, and manage config. Use when the user asks about Glassnode, on-chain data, crypto metrics, gn commands, or needs to call the Glassnode API from the terminal.
npx skill4agent add glassnode/glassnode-cli glassnode-cligngngn asset list
gn metric get market/price_usd_close --asset BTC --since 30dgn asset list
gn asset list --filter "asset.semantic_tags.exists(tag,tag=='stablecoin')"
gn asset list --filter "asset.id=='BTC'"
# Prune to specific fields (returns array of objects)
gn asset list --prune id -o json
gn asset list -p id,symbol -o jsongn asset describe BTCgn metric list
gn metric list --asset BTC
gn metric list -a BTC -e binance -i 24h
gn metric list --assets BTC --assets ETH
gn metric list --from-exchange binance --to-exchange coinbase--currency--exchange--interval--from-exchange--to-exchange--miner--maturity--network--period--quote-symbol--assetsgn metric describe market/price_usd_close
gn metric describe market/price_usd_close --asset BTCgn metric get market/price_usd_close --asset BTC --interval 24h
gn metric get market/price_usd_close --asset BTC --since 2024-01-01 --until 2024-02-01
gn metric get market/price_usd_close --asset BTC --since 30d
gn metric get indicators/sopr --asset BTC --interval 24h --since 30d
gn metric get distribution/balance_exchanges --asset BTC --exchange binance --currency usd/bulk-a--asset-a '*'gn metric get market/marketcap_usd/bulk -a BTC -a ETH -a SOL -s 1d
gn metric get market/marketcap_usd/bulk -a '*' --interval 24h --since 30dgn config set api-key=your-key
gn config set output=csv
gn config get api-key
gn config get all| Flag | Short | Description |
|---|---|---|
| Glassnode API key | |
| | Output format: |
| Print the request URL without executing | |
| Timestamp format in output |
gn metric describe <path>gn metric get--output jsonjq--dry-rungn metric get market/price_usd_close --asset BTC --since 30d --dry-run/bulk-a-a '*'--since--until30d7d1h--output jsonjq--output csv--output table# Pipe JSON to jq
gn metric get market/price_usd_close -a BTC --since 7d | jq '.[].v'
# Export to CSV
gn metric get market/price_usd_close -a BTC --since 30d -o csv > prices.csv
# Quick look in the terminal
gn metric get market/price_usd_close -a BTC --since 7d -o table