<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>crypto2 | Sebastian Stöckl</title><link>https://diffform.netlify.app/tag/crypto2/</link><atom:link href="https://diffform.netlify.app/tag/crypto2/index.xml" rel="self" type="application/rss+xml"/><description>crypto2</description><generator>Wowchemy (https://wowchemy.com)</generator><language>en-us</language><lastBuildDate>Tue, 02 Aug 2022 00:00:00 +0000</lastBuildDate><image><url>https://diffform.netlify.app/media/icon_hu0b7a4cb9992c9ac0e91bd28ffd38dd00_9727_512x512_fill_lanczos_center_3.png</url><title>crypto2</title><link>https://diffform.netlify.app/tag/crypto2/</link></image><item><title>Crypto Currency Research Data from Coin-Market Cap without Survivorship Bias</title><link>https://diffform.netlify.app/post/crypto_download/</link><pubDate>Tue, 02 Aug 2022 00:00:00 +0000</pubDate><guid>https://diffform.netlify.app/post/crypto_download/</guid><description>&lt;!-- badges: start -->
&lt;p>&lt;a href="https://www.repostatus.org/#active" target="_blank" rel="noopener">
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img src="https://www.repostatus.org/badges/latest/active.svg" alt="Project Status" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/a>
&lt;a href="https://travis-ci.org/sstoeckl/crypto2" target="_blank" rel="noopener">
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img src="https://travis-ci.org/sstoeckl/crypto2.svg?branch=master" alt="Build Status" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/a>
&lt;a href="https://CRAN.R-project.org/package=crypto2" target="_blank" rel="noopener">
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img src="https://www.r-pkg.org/badges/version/crypto2" alt="CRAN status" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/a>
&lt;a href="https://cran.r-project.org/package=crypto2" target="_blank" rel="noopener">
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img src="http://cranlogs.r-pkg.org/badges/grand-total/crypto2" alt="" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/a>
&lt;a href="https://cran.r-project.org/package=crypto2" target="_blank" rel="noopener">
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img src="http://cranlogs.r-pkg.org/badges/crypto2" alt="" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/a>
&lt;a href="https://cran.r-project.org/package=crypto2" target="_blank" rel="noopener">
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img src="http://cranlogs.r-pkg.org/badges/last-week/crypto2" alt="" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/a>&lt;/p>
&lt;!-- badges: end -->
&lt;p>In the past two years an ever-growing number of academic researchers has been investigating the market for cryptocurrencies (CC), often concentrating on the few largest ones (&lt;a href="#ref-brauneis_price_2018">Brauneis and Mestel 2018&lt;/a>; &lt;a href="#ref-bouri_herding_2018">Bouri, Gupta, and Roubaud 2018&lt;/a>; &lt;a href="#ref-corbet_exploring_2018">Corbet et al. 2018&lt;/a>). However, in almost all studies only the surviving cryptocurrencies are considered and thereby all results are subject to survivorship bias.&lt;/p>
&lt;p>Cryptocurrency data that is &lt;strong>not&lt;/strong> subject to survivorship bias is hard to obtain, therefore I have created my own package &lt;strong>&lt;a href="https://github.com/sstoeckl/crypto2" target="_blank" rel="noopener">&lt;code>crypto2&lt;/code>&lt;/a>&lt;/strong> that is now available from &lt;a href="https://cran.r-project.org/package=crypto2" target="_blank" rel="noopener">CRAN&lt;/a>.&lt;/p>
&lt;h1 id="historical-cryptocurrency-prices-for-active-and-delisted-tokens">Historical Cryptocurrency Prices for Active and Delisted Tokens!&lt;/h1>
&lt;p>This is a modification of the original &lt;code>crypto&lt;/code> package by &lt;a href="https://github.com/JesseVent/crypto" target="_blank" rel="noopener">jesse vent&lt;/a>. It is entirely set up to use means from the &lt;code>tidyverse&lt;/code> and provides &lt;code>tibble&lt;/code>s with all data available via the web-api of &lt;a href="https://coinmarketcap.com/" target="_blank" rel="noopener">coinmarketcap.com&lt;/a>. &lt;strong>It does not require an API key but in turn only provides information that is also available through the website of &lt;a href="https://coinmarketcap.com/" target="_blank" rel="noopener">coinmarketcap.com&lt;/a>.&lt;/strong>&lt;/p>
&lt;p>It allows the user to retrieve&lt;/p>
&lt;ul>
&lt;li>&lt;code>crypto_listings()&lt;/code> a list of all coins that were historically listed on CMC (main dataset to avoid delisting bias) according to the &lt;a href="https://coinmarketcap.com/api/documentation/v1/#operation/getV1CryptocurrencyListingsHistorical" target="_blank" rel="noopener">CMC API documentation&lt;/a>&lt;/li>
&lt;li>&lt;code>crypto_list()&lt;/code> a list of all coins that are listed as either being &lt;em>active&lt;/em>, &lt;em>delisted&lt;/em> or &lt;em>untracked&lt;/em> according to the &lt;a href="https://coinmarketcap.com/api/documentation/v1/#operation/getV1CryptocurrencyMap" target="_blank" rel="noopener">CMC API documentation&lt;/a>&lt;/li>
&lt;li>&lt;code>crypto_info()&lt;/code> a list of all information available for all available coins according to the &lt;a href="https://coinmarketcap.com/api/documentation/v1/#operation/getV1CryptocurrencyInfo" target="_blank" rel="noopener">CMC API documentation&lt;/a>&lt;/li>
&lt;li>&lt;code>crypto_history()&lt;/code> the &lt;strong>most powerful&lt;/strong> function of this package that allows to download the entire available history for all coins covered by CMC according to the &lt;a href="https://coinmarketcap.com/api/documentation/v1/#operation/getV1CryptocurrencyOhlcvHistorical" target="_blank" rel="noopener">CMC API documentation&lt;/a>&lt;/li>
&lt;li>&lt;code>fiat_list()&lt;/code> a mapping of all fiat currencies (plus precious metals) available via the &lt;a href="https://coinmarketcap.com/api/documentation/v1/#operation/getV1FiatMap" target="_blank" rel="noopener">CMC WEB API&lt;/a>&lt;/li>
&lt;li>&lt;code>exchange_list()&lt;/code> a list of all exchanges available as either being &lt;em>active&lt;/em>, &lt;em>delisted&lt;/em> or &lt;em>untracked&lt;/em> according to the &lt;a href="https://coinmarketcap.com/api/documentation/v1/#operation/getV1ExchangeMap" target="_blank" rel="noopener">CMC API documentation&lt;/a>&lt;/li>
&lt;li>&lt;code>exchange_info()&lt;/code> a list of all information available for all given exchanges according to the &lt;a href="https://coinmarketcap.com/api/documentation/v1/#operation/getV1ExchangeInfo" target="_blank" rel="noopener">CMC API documentation&lt;/a>&lt;/li>
&lt;/ul>
&lt;h1 id="update">Update&lt;/h1>
&lt;p>Since version 1.4.4 a new function &lt;code>crypto_listings()&lt;/code> was introduced that retrieves new/latest/historical listings and listing information at CMC. Additionally some aspects of the other functions have been reworked. We noticed that &lt;code>finalWait = TRUE&lt;/code> does not seem to be necessary at the moment, as well as &lt;code>sleep&lt;/code> can be set to ‘0’ seconds. If you experience strange behavior this might be due to the the api sending back strange (old) results. In this case let &lt;code>sleep = 60&lt;/code> (the default) and &lt;code>finalWait = TRUE&lt;/code> (the default).&lt;/p>
&lt;p>Since version 1.4.0 the package has been reworked to retrieve as many assets as possible with one api call, as there is a new “feature” introduced by CMC to send back the initially requested data for each api call within 60 seconds. So one needs to wait 60s before calling the api again. Additionally, since version v1.4.3 the package allows for a data &lt;code>interval&lt;/code> larger than daily (e.g. ‘2d’ or ‘7d’/‘weekly’)&lt;/p>
&lt;h2 id="installation">Installation&lt;/h2>
&lt;p>You can install &lt;code>crypto2&lt;/code> from CRAN with&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-r" data-lang="r">&lt;span class="line">&lt;span class="cl">&lt;span class="nf">install.packages&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="s">&amp;#34;crypto2&amp;#34;&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>or directly from github with:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-r" data-lang="r">&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># install.packages(&amp;#34;devtools&amp;#34;)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">devtools&lt;/span>&lt;span class="o">::&lt;/span>&lt;span class="nf">install_github&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="s">&amp;#34;sstoeckl/crypto2&amp;#34;&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="package-contribution">Package Contribution&lt;/h2>
&lt;p>The package provides API free and efficient access to all information from &lt;a href="https://coinmarketcap.com" target="_blank" rel="noopener">https://coinmarketcap.com&lt;/a> that is also available through their website. It uses a variety of modification and web-scraping tools from the &lt;code>tidyverse&lt;/code> (especially &lt;code>purrr&lt;/code>).&lt;/p>
&lt;p>As this provides access not only to &lt;strong>active&lt;/strong> coins but also to those that have now been &lt;strong>delisted&lt;/strong> and also those that are categorized as &lt;strong>untracked&lt;/strong>, including historical pricing information, this package provides a valid basis for any &lt;strong>Asset Pricing Studies&lt;/strong> based on crypto currencies that require &lt;strong>survivorship-bias-free&lt;/strong> information. In addition to that, the package maintainer is currently working on also providing &lt;strong>delisting returns&lt;/strong> (similarly to CRSP for stocks) to also eliminate the &lt;strong>delisting bias&lt;/strong>.&lt;/p>
&lt;h2 id="package-usage">Package Usage&lt;/h2>
&lt;p>First we load the &lt;code>crypto2&lt;/code>-package and download the set of active coins from &lt;a href="https://coinmarketcap.com" target="_blank" rel="noopener">https://coinmarketcap.com&lt;/a> (additionally one could load delisted coins with &lt;code>only_Active=FALSE&lt;/code> as well as untracked coins with &lt;code>add_untracked=TRUE&lt;/code>).&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-r" data-lang="r">&lt;span class="line">&lt;span class="cl">&lt;span class="nf">library&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">crypto2&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nf">library&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">dplyr&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;pre>&lt;code>##
## Attache Paket: 'dplyr'
## Die folgenden Objekte sind maskiert von 'package:stats':
##
## filter, lag
## Die folgenden Objekte sind maskiert von 'package:base':
##
## intersect, setdiff, setequal, union
&lt;/code>&lt;/pre>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-r" data-lang="r">&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># List all active coins&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">coins&lt;/span> &lt;span class="o">&amp;lt;-&lt;/span> &lt;span class="nf">crypto_list&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">only_active&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="kc">TRUE&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Next we download information on the first three coins from that list.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-r" data-lang="r">&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># retrieve information for all (the first 3) of those coins&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">coin_info&lt;/span> &lt;span class="o">&amp;lt;-&lt;/span> &lt;span class="nf">crypto_info&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">coins&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">limit&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="m">3&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">finalWait&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="kc">FALSE&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;pre>&lt;code>## ❯ Scraping crypto info
##
## Scraping https://web-api.coinmarketcap.com/v1/cryptocurrency/info?id=1,2,3 with 65 characters!
## ❯ Processing crypto info
##
## ❯ Sleep for 60s before finishing to not have next function call end up with this data!
##
&lt;/code>&lt;/pre>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-r" data-lang="r">&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># and give the first two lines of information per coin&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">coin_info&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;pre>&lt;code>## # A tibble: 3 × 19
## id name symbol categ…¹ descr…² slug logo subre…³ notice date_…⁴ twitt…⁵
## * &amp;lt;int&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;chr&amp;gt;
## 1 1 Bitco… BTC coin &amp;quot;## Wh… bitc… http… bitcoin &amp;quot;&amp;quot; 2013-0… &amp;quot;&amp;quot;
## 2 2 Litec… LTC coin &amp;quot;## Wh… lite… http… liteco… &amp;quot;&amp;quot; 2013-0… &amp;quot;Litec…
## 3 3 Namec… NMC coin &amp;quot;Namec… name… http… nameco… &amp;quot;&amp;quot; 2013-0… &amp;quot;Namec…
## # … with 8 more variables: is_hidden &amp;lt;int&amp;gt;, date_launched &amp;lt;lgl&amp;gt;,
## # self_reported_circulating_supply &amp;lt;lgl&amp;gt;, self_reported_market_cap &amp;lt;lgl&amp;gt;,
## # tags &amp;lt;list&amp;gt;, self_reported_tags &amp;lt;lgl&amp;gt;, urls &amp;lt;list&amp;gt;, platform &amp;lt;list&amp;gt;, and
## # abbreviated variable names ¹​category, ²​description, ³​subreddit,
## # ⁴​date_added, ⁵​twitter_username
## # ℹ Use `colnames()` to see all variable names
&lt;/code>&lt;/pre>
&lt;p>In a next step we show the logos of the three coins as provided by &lt;a href="https://coinmarketcap.com" target="_blank" rel="noopener">https://coinmarketcap.com&lt;/a>.&lt;/p>
&lt;p>&lt;img src="https://s2.coinmarketcap.com/static/img/coins/64x64/1.png" width="5%" height="5%" style="display: block; margin: auto;" />&lt;img src="https://s2.coinmarketcap.com/static/img/coins/64x64/2.png" width="5%" height="5%" style="display: block; margin: auto;" />&lt;img src="https://s2.coinmarketcap.com/static/img/coins/64x64/3.png" width="5%" height="5%" style="display: block; margin: auto;" />&lt;/p>
&lt;p>In addition we show tags provided by &lt;a href="https://coinmarketcap.com" target="_blank" rel="noopener">https://coinmarketcap.com&lt;/a>.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-r" data-lang="r">&lt;span class="line">&lt;span class="cl">&lt;span class="n">coin_info&lt;/span> &lt;span class="o">%&amp;gt;%&lt;/span> &lt;span class="nf">select&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">slug&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="n">tags&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="o">%&amp;gt;%&lt;/span> &lt;span class="n">tidyr&lt;/span>&lt;span class="o">::&lt;/span>&lt;span class="nf">unnest&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">tags&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="o">%&amp;gt;%&lt;/span> &lt;span class="nf">group_by&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">slug&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="o">%&amp;gt;%&lt;/span> &lt;span class="nf">slice&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="m">1&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="nf">n&lt;/span>&lt;span class="p">())&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;pre>&lt;code>## # A tibble: 6 × 2
## # Groups: slug [3]
## slug tags
## &amp;lt;chr&amp;gt; &amp;lt;chr&amp;gt;
## 1 bitcoin mineable
## 2 bitcoin paradigm-portfolio
## 3 litecoin mineable
## 4 litecoin bnb-chain
## 5 namecoin mineable
## 6 namecoin platform
&lt;/code>&lt;/pre>
&lt;p>Additionally: Here are some urls pertaining to these coins as provided by &lt;a href="https://coinmarketcap.com" target="_blank" rel="noopener">https://coinmarketcap.com&lt;/a>.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-r" data-lang="r">&lt;span class="line">&lt;span class="cl">&lt;span class="n">coin_info&lt;/span> &lt;span class="o">%&amp;gt;%&lt;/span> &lt;span class="nf">select&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">slug&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="n">urls&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="o">%&amp;gt;%&lt;/span> &lt;span class="n">tidyr&lt;/span>&lt;span class="o">::&lt;/span>&lt;span class="nf">unnest&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">urls&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="o">%&amp;gt;%&lt;/span> &lt;span class="nf">filter&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">name&lt;/span> &lt;span class="o">%in%&lt;/span> &lt;span class="nf">c&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="s">&amp;#34;reddit&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="s">&amp;#34;twitter&amp;#34;&lt;/span>&lt;span class="p">))&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;pre>&lt;code>## # A tibble: 5 × 3
## slug name url
## &amp;lt;chr&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;chr&amp;gt;
## 1 bitcoin reddit https://reddit.com/r/bitcoin
## 2 litecoin twitter https://twitter.com/LitecoinProject
## 3 litecoin reddit https://reddit.com/r/litecoin
## 4 namecoin twitter https://twitter.com/Namecoin
## 5 namecoin reddit https://reddit.com/r/namecoin
&lt;/code>&lt;/pre>
&lt;p>In a next step we download time series data for these coins.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-r" data-lang="r">&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># retrieve historical data for all (the first 3) of them&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">coin_hist&lt;/span> &lt;span class="o">&amp;lt;-&lt;/span> &lt;span class="nf">crypto_history&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">coins&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">limit&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="m">3&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">start_date&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="s">&amp;#34;20210101&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">end_date&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="s">&amp;#34;20210105&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">finalWait&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="kc">FALSE&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;pre>&lt;code>## ❯ Scraping historical crypto data
##
## ❯ Processing historical crypto data
##
&lt;/code>&lt;/pre>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-r" data-lang="r">&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># and give the first two times of information per coin&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">coin_hist&lt;/span> &lt;span class="o">%&amp;gt;%&lt;/span> &lt;span class="nf">group_by&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">slug&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="o">%&amp;gt;%&lt;/span> &lt;span class="nf">slice&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="m">1&lt;/span>&lt;span class="o">:&lt;/span>&lt;span class="m">2&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;pre>&lt;code>## # A tibble: 6 × 16
## # Groups: slug [3]
## timestamp id slug name symbol ref_cur open high low
## &amp;lt;dttm&amp;gt; &amp;lt;int&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;dbl&amp;gt; &amp;lt;dbl&amp;gt; &amp;lt;dbl&amp;gt;
## 1 2021-01-01 23:59:59 1 bitcoin Bitc… BTC USD 2.90e+4 2.96e+4 2.88e+4
## 2 2021-01-02 23:59:59 1 bitcoin Bitc… BTC USD 2.94e+4 3.32e+4 2.91e+4
## 3 2021-01-01 23:59:59 2 liteco… Lite… LTC USD 1.25e+2 1.33e+2 1.23e+2
## 4 2021-01-02 23:59:59 2 liteco… Lite… LTC USD 1.26e+2 1.40e+2 1.24e+2
## 5 2021-01-01 23:59:59 3 nameco… Name… NMC USD 4.39e-1 4.63e-1 4.32e-1
## 6 2021-01-02 23:59:59 3 nameco… Name… NMC USD 4.51e-1 5.10e-1 4.15e-1
## # … with 7 more variables: close &amp;lt;dbl&amp;gt;, volume &amp;lt;dbl&amp;gt;, market_cap &amp;lt;dbl&amp;gt;,
## # time_open &amp;lt;dttm&amp;gt;, time_close &amp;lt;dttm&amp;gt;, time_high &amp;lt;dttm&amp;gt;, time_low &amp;lt;dttm&amp;gt;
## # ℹ Use `colnames()` to see all variable names
&lt;/code>&lt;/pre>
&lt;p>Similarly, we could download the same data on a monthly basis.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-r" data-lang="r">&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># retrieve historical data for all (the first 3) of them&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">coin_hist_m&lt;/span> &lt;span class="o">&amp;lt;-&lt;/span> &lt;span class="nf">crypto_history&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">coins&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">limit&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="m">3&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">start_date&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="s">&amp;#34;20210101&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">end_date&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="s">&amp;#34;20210501&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">interval&lt;/span> &lt;span class="o">=&lt;/span>&lt;span class="s">&amp;#34;monthly&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">finalWait&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="kc">FALSE&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;pre>&lt;code>## ❯ Scraping historical crypto data
##
## ❯ Processing historical crypto data
##
&lt;/code>&lt;/pre>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-r" data-lang="r">&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># and give the first two times of information per coin&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">coin_hist_m&lt;/span> &lt;span class="o">%&amp;gt;%&lt;/span> &lt;span class="nf">group_by&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">slug&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="o">%&amp;gt;%&lt;/span> &lt;span class="nf">slice&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="m">1&lt;/span>&lt;span class="o">:&lt;/span>&lt;span class="m">2&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;pre>&lt;code>## # A tibble: 6 × 16
## # Groups: slug [3]
## timestamp id slug name symbol ref_cur open high low
## &amp;lt;dttm&amp;gt; &amp;lt;int&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;dbl&amp;gt; &amp;lt;dbl&amp;gt; &amp;lt;dbl&amp;gt;
## 1 2021-01-01 23:59:59 1 bitcoin Bitc… BTC USD 2.90e+4 2.96e+4 2.88e+4
## 2 2021-02-01 23:59:59 1 bitcoin Bitc… BTC USD 3.31e+4 3.46e+4 3.24e+4
## 3 2021-01-01 23:59:59 2 liteco… Lite… LTC USD 1.25e+2 1.33e+2 1.23e+2
## 4 2021-02-01 23:59:59 2 liteco… Lite… LTC USD 1.30e+2 1.36e+2 1.26e+2
## 5 2021-01-01 23:59:59 3 nameco… Name… NMC USD 4.39e-1 4.63e-1 4.32e-1
## 6 2021-02-01 23:59:59 3 nameco… Name… NMC USD 7.82e-1 8.05e-1 7.48e-1
## # … with 7 more variables: close &amp;lt;dbl&amp;gt;, volume &amp;lt;dbl&amp;gt;, market_cap &amp;lt;dbl&amp;gt;,
## # time_open &amp;lt;dttm&amp;gt;, time_close &amp;lt;dttm&amp;gt;, time_high &amp;lt;dttm&amp;gt;, time_low &amp;lt;dttm&amp;gt;
## # ℹ Use `colnames()` to see all variable names
&lt;/code>&lt;/pre>
&lt;p>Alternatively, we could determine the price of these coins in other currencies. A list of such currencies is available as &lt;code>fiat_list()&lt;/code>&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-r" data-lang="r">&lt;span class="line">&lt;span class="cl">&lt;span class="n">fiats&lt;/span> &lt;span class="o">&amp;lt;-&lt;/span> &lt;span class="nf">fiat_list&lt;/span>&lt;span class="p">()&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">fiats&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;pre>&lt;code>## # A tibble: 93 × 4
## id name sign symbol
## &amp;lt;int&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;chr&amp;gt;
## 1 2781 United States Dollar $ USD
## 2 2782 Australian Dollar $ AUD
## 3 2783 Brazilian Real R$ BRL
## 4 2784 Canadian Dollar $ CAD
## 5 2785 Swiss Franc Fr CHF
## 6 2786 Chilean Peso $ CLP
## 7 2787 Chinese Yuan ¥ CNY
## 8 2788 Czech Koruna Kč CZK
## 9 2789 Danish Krone kr DKK
## 10 2790 Euro € EUR
## # … with 83 more rows
## # ℹ Use `print(n = ...)` to see more rows
&lt;/code>&lt;/pre>
&lt;p>So we download the time series again depicting prices in terms of Bitcoin and Euro (note that multiple currencies can be given to &lt;code>convert&lt;/code>, separated by “,”).&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-r" data-lang="r">&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># retrieve historical data for all (the first 3) of them&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">coin_hist2&lt;/span> &lt;span class="o">&amp;lt;-&lt;/span> &lt;span class="nf">crypto_history&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">coins&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">convert&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="s">&amp;#34;BTC,EUR&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">limit&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="m">3&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">start_date&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="s">&amp;#34;20210101&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">end_date&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="s">&amp;#34;20210105&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">finalWait&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="kc">FALSE&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;pre>&lt;code>## ❯ Scraping historical crypto data
##
## ❯ Processing historical crypto data
##
&lt;/code>&lt;/pre>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-r" data-lang="r">&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># and give the first two times of information per coin&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">coin_hist2&lt;/span> &lt;span class="o">%&amp;gt;%&lt;/span> &lt;span class="nf">group_by&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">slug&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="n">ref_cur&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="o">%&amp;gt;%&lt;/span> &lt;span class="nf">slice&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="m">1&lt;/span>&lt;span class="o">:&lt;/span>&lt;span class="m">2&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;pre>&lt;code>## # A tibble: 12 × 16
## # Groups: slug, ref_cur [6]
## timestamp id slug name symbol ref_cur open high low
## &amp;lt;dttm&amp;gt; &amp;lt;int&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;dbl&amp;gt; &amp;lt;dbl&amp;gt; &amp;lt;dbl&amp;gt;
## 1 2021-01-01 23:59:43 1 bitco… Bitc… BTC BTC 1 e+0 1.00e+0 9.98e-1
## 2 2021-01-02 23:59:43 1 bitco… Bitc… BTC BTC 1 e+0 1.00e+0 9.99e-1
## 3 2021-01-01 23:59:06 1 bitco… Bitc… BTC EUR 2.37e+4 2.43e+4 2.36e+4
## 4 2021-01-02 23:59:06 1 bitco… Bitc… BTC EUR 2.42e+4 2.73e+4 2.40e+4
## 5 2021-01-01 23:59:43 2 litec… Lite… LTC BTC 4.30e-3 4.56e-3 4.27e-3
## 6 2021-01-02 23:59:43 2 litec… Lite… LTC BTC 4.30e-3 4.24e-3 4.23e-3
## 7 2021-01-01 23:59:06 2 litec… Lite… LTC EUR 1.02e+2 1.09e+2 1.01e+2
## 8 2021-01-02 23:59:06 2 litec… Lite… LTC EUR 1.04e+2 1.16e+2 1.02e+2
## 9 2021-01-01 23:59:43 3 namec… Name… NMC BTC 1.51e-5 1.58e-5 1.50e-5
## 10 2021-01-02 23:59:43 3 namec… Name… NMC BTC 1.54e-5 1.57e-5 1.31e-5
## 11 2021-01-01 23:59:06 3 namec… Name… NMC EUR 3.60e-1 3.80e-1 3.54e-1
## 12 2021-01-02 23:59:06 3 namec… Name… NMC EUR 3.71e-1 4.21e-1 3.41e-1
## # … with 7 more variables: close &amp;lt;dbl&amp;gt;, volume &amp;lt;dbl&amp;gt;, market_cap &amp;lt;dbl&amp;gt;,
## # time_open &amp;lt;dttm&amp;gt;, time_close &amp;lt;dttm&amp;gt;, time_high &amp;lt;dttm&amp;gt;, time_low &amp;lt;dttm&amp;gt;
## # ℹ Use `colnames()` to see all variable names
&lt;/code>&lt;/pre>
&lt;p>As a new features in version 1.4.4. we introduced the possibility to download historical listings and listing information (add &lt;code>quote = TRUE&lt;/code>).&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-r" data-lang="r">&lt;span class="line">&lt;span class="cl">&lt;span class="n">latest_listings&lt;/span> &lt;span class="o">&amp;lt;-&lt;/span> &lt;span class="nf">crypto_listings&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">which&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="s">&amp;#34;latest&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">limit&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="m">10&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">quote&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="kc">TRUE&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">finalWait&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="kc">FALSE&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">latest_listings&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;pre>&lt;code>## # A tibble: 10 × 23
## id name symbol slug self_…¹ self_…² tvl_r…³ last_upd…⁴ USD_p…⁵ USD_v…⁶
## &amp;lt;int&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;int&amp;gt; &amp;lt;dbl&amp;gt; &amp;lt;lgl&amp;gt; &amp;lt;date&amp;gt; &amp;lt;dbl&amp;gt; &amp;lt;dbl&amp;gt;
## 1 1 Bitcoin BTC bitc… NA NA NA 2022-08-03 2.33e+4 2.56e10
## 2 52 XRP XRP xrp NA NA NA 2022-08-03 3.75e-1 1.09e 9
## 3 825 Tether USDT teth… NA NA NA 2022-08-03 1.00e+0 4.67e10
## 4 1027 Ethere… ETH ethe… NA NA NA 2022-08-03 1.64e+3 1.65e10
## 5 1839 BNB BNB bnb NA NA NA 2022-08-03 3.02e+2 2.13e 9
## 6 2010 Cardano ADA card… NA NA NA 2022-08-03 5.10e-1 5.47e 8
## 7 3408 USD Co… USDC usd-… NA NA NA 2022-08-03 1.00e+0 6.88e 9
## 8 4687 Binanc… BUSD bina… NA NA NA 2022-08-03 1.00e+0 5.29e 9
## 9 5426 Solana SOL sola… NA NA NA 2022-08-03 3.95e+1 2.31e 9
## 10 6636 Polkad… DOT polk… 9.05e8 7.48e9 NA 2022-08-03 8.27e+0 4.97e 8
## # … with 13 more variables: USD_volume_change_24h &amp;lt;dbl&amp;gt;,
## # USD_percent_change_1h &amp;lt;dbl&amp;gt;, USD_percent_change_24h &amp;lt;dbl&amp;gt;,
## # USD_percent_change_7d &amp;lt;dbl&amp;gt;, USD_percent_change_30d &amp;lt;dbl&amp;gt;,
## # USD_percent_change_60d &amp;lt;dbl&amp;gt;, USD_percent_change_90d &amp;lt;dbl&amp;gt;,
## # USD_market_cap &amp;lt;dbl&amp;gt;, USD_market_cap_dominance &amp;lt;dbl&amp;gt;,
## # USD_fully_diluted_market_cap &amp;lt;dbl&amp;gt;, USD_tvl &amp;lt;lgl&amp;gt;,
## # USD_market_cap_by_total_supply &amp;lt;dbl&amp;gt;, USD_last_updated &amp;lt;chr&amp;gt;, and …
## # ℹ Use `colnames()` to see all variable names
&lt;/code>&lt;/pre>
&lt;p>Last and least, one can get information on exchanges. For this download a list of active/inactive/untracked exchanges using &lt;code>exchange_list()&lt;/code>:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-r" data-lang="r">&lt;span class="line">&lt;span class="cl">&lt;span class="n">exchanges&lt;/span> &lt;span class="o">&amp;lt;-&lt;/span> &lt;span class="nf">exchange_list&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">only_active&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="kc">TRUE&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">exchanges&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;pre>&lt;code>## # A tibble: 499 × 6
## id name slug is_active first_historical_data last_histor…¹
## &amp;lt;int&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;int&amp;gt; &amp;lt;date&amp;gt; &amp;lt;date&amp;gt;
## 1 16 Poloniex poloniex 1 2018-04-26 2022-08-03
## 2 21 BTCC btcc 1 2018-04-26 2022-08-03
## 3 22 Bittrex bittrex 1 2018-04-26 2022-08-03
## 4 24 Kraken kraken 1 2018-04-26 2022-08-03
## 5 34 Bittylicious bittylicious 1 2018-04-26 2022-08-03
## 6 36 CEX.IO cex-io 1 2018-04-26 2022-08-03
## 7 37 Bitfinex bitfinex 1 2018-04-26 2022-08-03
## 8 42 HitBTC hitbtc 1 2018-04-26 2022-08-03
## 9 50 EXMO exmo 1 2018-04-26 2022-08-03
## 10 61 Okcoin okcoin 1 2018-04-26 2022-08-03
## # … with 489 more rows, and abbreviated variable name ¹​last_historical_data
## # ℹ Use `print(n = ...)` to see more rows
&lt;/code>&lt;/pre>
&lt;p>and then download information on “binance” and “kraken”:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-r" data-lang="r">&lt;span class="line">&lt;span class="cl">&lt;span class="n">ex_info&lt;/span> &lt;span class="o">&amp;lt;-&lt;/span> &lt;span class="nf">exchange_info&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">exchanges&lt;/span> &lt;span class="o">%&amp;gt;%&lt;/span> &lt;span class="nf">filter&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">slug&lt;/span> &lt;span class="o">%in%&lt;/span> &lt;span class="nf">c&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="s">&amp;#39;binance&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="s">&amp;#39;kraken&amp;#39;&lt;/span>&lt;span class="p">)),&lt;/span> &lt;span class="n">finalWait&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="kc">FALSE&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;pre>&lt;code>## ❯ Scraping exchange info
##
## Scraping exchanges from https://web-api.coinmarketcap.com/v1/exchange/info?id=24,270 with 60 characters!
## ❯ Processing exchange info
##
&lt;/code>&lt;/pre>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-r" data-lang="r">&lt;span class="line">&lt;span class="cl">&lt;span class="n">ex_info&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;pre>&lt;code>## # A tibble: 2 × 19
## id name slug descr…¹ notice logo type date_…² is_hi…³ is_re…⁴ maker…⁵
## * &amp;lt;int&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;lgl&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;chr&amp;gt; &amp;lt;int&amp;gt; &amp;lt;lgl&amp;gt; &amp;lt;dbl&amp;gt;
## 1 24 Kraken krak… NA &amp;quot;&amp;quot; http… &amp;quot;&amp;quot; 2011-0… 0 NA 0.02
## 2 270 Binance bina… NA &amp;quot;Bina… http… &amp;quot;&amp;quot; 2017-0… 0 NA 0.02
## # … with 8 more variables: taker_fee &amp;lt;dbl&amp;gt;, spot_volume_usd &amp;lt;dbl&amp;gt;,
## # spot_volume_last_updated &amp;lt;dttm&amp;gt;, weekly_visits &amp;lt;int&amp;gt;, tags &amp;lt;lgl&amp;gt;,
## # urls &amp;lt;list&amp;gt;, countries &amp;lt;lgl&amp;gt;, fiats &amp;lt;list&amp;gt;, and abbreviated variable names
## # ¹​description, ²​date_launched, ³​is_hidden, ⁴​is_redistributable, ⁵​maker_fee
## # ℹ Use `colnames()` to see all variable names
&lt;/code>&lt;/pre>
&lt;p>Then we can access information on the fee structure,&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-r" data-lang="r">&lt;span class="line">&lt;span class="cl">&lt;span class="n">ex_info&lt;/span> &lt;span class="o">%&amp;gt;%&lt;/span> &lt;span class="nf">select&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="nf">contains&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="s">&amp;#34;fee&amp;#34;&lt;/span>&lt;span class="p">))&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;pre>&lt;code>## # A tibble: 2 × 2
## maker_fee taker_fee
## &amp;lt;dbl&amp;gt; &amp;lt;dbl&amp;gt;
## 1 0.02 0.05
## 2 0.02 0.04
&lt;/code>&lt;/pre>
&lt;p>the amount of cryptocurrencies being traded (in USD)&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-r" data-lang="r">&lt;span class="line">&lt;span class="cl">&lt;span class="n">ex_info&lt;/span> &lt;span class="o">%&amp;gt;%&lt;/span> &lt;span class="nf">select&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="nf">contains&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="s">&amp;#34;spot&amp;#34;&lt;/span>&lt;span class="p">))&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;pre>&lt;code>## # A tibble: 2 × 2
## spot_volume_usd spot_volume_last_updated
## &amp;lt;dbl&amp;gt; &amp;lt;dttm&amp;gt;
## 1 515861153. 2022-08-03 22:15:16
## 2 12884611026. 2022-08-03 22:15:16
&lt;/code>&lt;/pre>
&lt;p>or the fiat currencies allowed:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-r" data-lang="r">&lt;span class="line">&lt;span class="cl">&lt;span class="n">ex_info&lt;/span> &lt;span class="o">%&amp;gt;%&lt;/span> &lt;span class="nf">select&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">slug&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="n">fiats&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="o">%&amp;gt;%&lt;/span> &lt;span class="n">tidyr&lt;/span>&lt;span class="o">::&lt;/span>&lt;span class="nf">unnest&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">fiats&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;pre>&lt;code>## # A tibble: 53 × 2
## slug value
## &amp;lt;chr&amp;gt; &amp;lt;chr&amp;gt;
## 1 kraken USD
## 2 kraken EUR
## 3 kraken GBP
## 4 kraken CAD
## 5 kraken JPY
## 6 kraken CHF
## 7 kraken AUD
## 8 binance AED
## 9 binance ARS
## 10 binance AUD
## # … with 43 more rows
## # ℹ Use `print(n = ...)` to see more rows
&lt;/code>&lt;/pre>
&lt;h3 id="authorlicense">Author/License&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>Sebastian Stöckl&lt;/strong> - Package Creator, Modifier &amp;amp; Maintainer - &lt;a href="https://github.com/sstoeckl" target="_blank" rel="noopener">sstoeckl on github&lt;/a>&lt;/li>
&lt;/ul>
&lt;p>This project is licensed under the MIT License - see the
&amp;lt;license.md&amp;gt; file for details&amp;lt;/license.md&amp;gt;&lt;/p>
&lt;h3 id="acknowledgments">Acknowledgments&lt;/h3>
&lt;ul>
&lt;li>Thanks to the team at &lt;a href="https://coinmarketcap.com" target="_blank" rel="noopener">https://coinmarketcap.com&lt;/a> for the great work they do, especially to &lt;a href="https://www.linkedin.com/in/alicejingliu/" target="_blank" rel="noopener">Alice Liu (Research Lead)&lt;/a> and &lt;a href="https://www.linkedin.com/in/aaroncwk/" target="_blank" rel="noopener">Aaron K.&lt;/a> for their support with regard to information on delistings.&lt;/li>
&lt;li>Thanks to Jesse Vent for providing the (not fully research compatible) &lt;a href="https://github.com/JesseVent/crypto" target="_blank" rel="noopener">&lt;code>crypto&lt;/code>&lt;/a>-package that inspired this package.&lt;/li>
&lt;/ul>
&lt;h2 id="references">References&lt;/h2>
&lt;div id="refs" class="references csl-bib-body hanging-indent">
&lt;div id="ref-bouri_herding_2018" class="csl-entry">
&lt;p>Bouri, Elie, Rangan Gupta, and David Roubaud. 2018. “Herding Behaviour in Cryptocurrencies.” &lt;em>Finance Research Letters&lt;/em>, July. &lt;a href="https://doi.org/10.1016/j.frl.2018.07.008" target="_blank" rel="noopener">https://doi.org/10.1016/j.frl.2018.07.008&lt;/a>.&lt;/p>
&lt;/div>
&lt;div id="ref-brauneis_price_2018" class="csl-entry">
&lt;p>Brauneis, Alexander, and Roland Mestel. 2018. “Price Discovery of Cryptocurrencies: Bitcoin and Beyond.” &lt;em>Economics Letters&lt;/em> 165: 58–61. &lt;a href="https://doi.org/10.1016/j.econlet.2018.02.001" target="_blank" rel="noopener">https://doi.org/10.1016/j.econlet.2018.02.001&lt;/a>.&lt;/p>
&lt;/div>
&lt;div id="ref-corbet_exploring_2018" class="csl-entry">
&lt;p>Corbet, Shaen, Andrew Meegan, Charles Larkin, Brian Lucey, and Larisa Yarovaya. 2018. “Exploring the Dynamic Relationships Between Cryptocurrencies and Other Financial Assets.” &lt;em>Economics Letters&lt;/em> 165 (April): 28–34. &lt;a href="https://doi.org/10.1016/j.econlet.2018.01.004" target="_blank" rel="noopener">https://doi.org/10.1016/j.econlet.2018.01.004&lt;/a>.&lt;/p>
&lt;/div>
&lt;/div></description></item></channel></rss>