Package: crypto2 3.0.0

crypto2: Download Crypto Currency Data from 'CoinMarketCap' and 'CoinGecko'

Retrieves crypto currency information and historical prices as well as information on the exchanges they are listed on. Historical data contains daily open, high, low and close values for all crypto currencies. The package draws on two complementary sources: 'CoinMarketCap' <https://coinmarketcap.com> (primary, via the 'crypto_*' functions) and 'CoinGecko' <https://www.coingecko.com> (secondary, via the 'cg_*' functions). Both sources are queried without an 'API' key; the two function families return tibbles with identical column conventions so downstream pipelines work on either source.

Authors:Sebastian Stoeckl [aut, cre], Jesse Vent [ctb]

crypto2_3.0.0.tar.gz
crypto2_3.0.0.zip(r-4.7-any)crypto2_3.0.0.zip(r-4.6-any)crypto2_3.0.0.zip(r-4.5-any)
crypto2_3.0.0.tgz(r-4.6-any)crypto2_3.0.0.tgz(r-4.5-any)
crypto2_3.0.0.tar.gz(r-4.7-any)crypto2_3.0.0.tar.gz(r-4.6-any)
crypto2_3.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
crypto2/json (API)

# Install 'crypto2' in R:
install.packages('crypto2', repos = c('https://sstoeckl.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/sstoeckl/crypto2/issues

Pkgdown/docs site:https://www.sebastianstoeckl.com

On CRAN:

Conda:

8.57 score 67 stars 1 packages 82 scripts 729 downloads 15 exports 38 dependencies

Last updated from:be500dbeba. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK161
source / vignettesOK200
linux-releaseOK195
macos-releaseOK183
macos-oldrelOK151
windows-develOK99
windows-releaseOK93
windows-oldrelOK82
wasm-releaseOK106

Exports:cg_historycg_history_by_idcg_id_mappingcg_infocg_listcg_listingscrypto_crosswalkcrypto_global_quotescrypto_historycrypto_infocrypto_listcrypto_listingsexchange_infoexchange_listfiat_list

Dependencies:askpassbase64encclicpp11crayoncurldplyrgenericsgluehmshttrjanitorjsonlitelifecyclelubridatemagrittrmimeopensslpillarpkgconfigplyrprettyunitsprogresspurrrR6Rcpprlangsnakecasestringistringrsystibbletidyrtidyselecttimechangeutf8vctrswithr

CoinGecko integration: a second source for crypto2
Why a second source? | Build a survivorship-bias-free price history (free, no key) | Preconditions | What you get back | Function reference | cg_list() -- the universe | cg_listings() -- current cross-section | cg_history() -- the workhorse | cg_info() -- per-coin metadata | What is NOT in the free tier | Cross-checking against CMC

Last update: 2026-10-07
Started: 2026-05-18

CMC vs CoinGecko: matching and reconciling
Why compare? | Which source for what | Matching coins across sources: crypto_crosswalk() | The date-convention pitfall | A worked example: Bitcoin reconciliation | A worked example at scale: the CMC top 20 | What's expected to differ -- and what isn't | The built-in test | When to override the default

Last update: 2026-10-07
Started: 2026-05-18

CoinGecko Pro backfill: one-shot survivorship-bias archive
Scope | Setup | A polite Pro client | Recipe 1: full historic id/slug mapping | Recipe 2: full historic OHLC per coin | Recipe 3: persist as a parquet dataset | Where to host the mapping for other users | Rate-limit budgeting

Last update: 2026-05-18
Started: 2026-05-18