Introducing crypto2: Survivorship-Bias-Free Cryptocurrency Data in R

Mar 27, 2019·
Sebastian Stöckl
Sebastian Stöckl
· 1 min read

Most studies on cryptocurrency markets focus on the few largest survivors, making their results subject to survivorship bias. The crypto2 R package solves this by providing API-free access to the full CoinMarketCap universe — including historically listed and delisted tokens.

The package is available on CRAN:

install.packages("crypto2")

Key functions:

  • crypto_list() — all active, delisted, and untracked coins
  • crypto_history() — full OHLCV history for any set of coins (daily or hourly)
  • crypto_listings() — historical and latest market listings
  • crypto_info() — metadata for any coin
  • crypto_global_quotes() — global aggregate market statistics
  • exchange_list() / exchange_info() — exchange-level data

The package uses only public CoinMarketCap web endpoints — no API key required.

Full documentation, vignettes, and examples: sebastianstoeckl.com/crypto2