Add sites/coingecko package with GetPrice() method that extracts
structured crypto price data (name, symbol, price, 24h/7d change,
market cap, volume, 24h high/low) from CoinGecko coin pages.
Includes mock-based tests and parseLargeNumber helper for T/B/M suffixes.
Closes#27
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Claude
merged commit 69603b7cae into main2026-02-15 16:48:08 +00:00
Claude
deleted branch feature/coingecko-extractor2026-02-15 16:48:09 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
sites/coingeckopackage withGetPrice()method for extracting structured crypto price dataCoinPricestruct: name, symbol, price, 24h/7d change percentages, market cap, volume, 24h high/lowparseLargeNumber()helper handles T/B/M suffix notation (e.g. "$1.92T", "$28.5B")h1) and price (data-price-target)Closes #27
Parent: #31 (PR 14 of 18)
Test plan
go build ./...passesgo test ./...passes (including new mock-based tests)go vet ./...passes