Supported coins, base currencies, and exchanges

library(geckor)

The CoinGecko API allows one to query market data on thousands of cryptocurrencies from more than 300 exchanges. A list of the currently supported cryptocurrencies can be obtained with the supported_coins() function:

coins <- supported_coins()

# number of supported coins:
nrow(coins)
#> [1] 10297

head(coins, 10)
#> # A tibble: 10 x 3
#>    coin_id                         symbol   name                         
#>    <chr>                           <chr>    <chr>                        
#>  1 ""                              pappay   Pappay                       
#>  2 "01coin"                        zoc      01coin                       
#>  3 "0-5x-long-algorand-token"      algohalf 0.5X Long Algorand Token     
#>  4 "0-5x-long-altcoin-index-token" althalf  0.5X Long Altcoin Index Token
#>  5 "0-5x-long-balancer-token"      balhalf  0.5X Long Balancer Token     
#>  6 "0-5x-long-bitcoin-cash-token"  bchhalf  0.5X Long Bitcoin Cash Token 
#>  7 "0-5x-long-bitcoin-sv-token"    bsvhalf  0.5X Long Bitcoin SV Token   
#>  8 "0-5x-long-bitcoin-token"       half     0.5X Long Bitcoin Token      
#>  9 "0-5x-long-cardano-token"       adahalf  0.5X Long Cardano Token      
#> 10 "0-5x-long-chainlink-token"     linkhalf 0.5X Long Chainlink Token

The first column in the resultant tibble contains coin IDs in the format expected by other geckor functions.

Similarly, a list of supported exchanges can be retrieved with the supported_exchanges() function:

exchanges <- supported_exchanges()

# number of supported exchanges:
nrow(exchanges)
#> [1] 327

head(exchanges, 10)
#> # A tibble: 10 x 7
#>    exchange_id name  year_established country url   trust_score trading_volume_~
#>    <chr>       <chr>            <int> <chr>   <chr>       <int>            <dbl>
#>  1 binance     Bina~             2017 Cayman~ http~          10          603653.
#>  2 gdax        Coin~             2012 United~ http~          10          133358.
#>  3 huobi       Huob~             2013 Seyche~ http~          10          103942.
#>  4 kucoin      KuCo~             2014 Seyche~ http~          10           57708.
#>  5 crypto_com  Cryp~             2019 Cayman~ http~          10           57707.
#>  6 ftx_spot    FTX               2019 Antigu~ http~          10           45167.
#>  7 gate        Gate~               NA Hong K~ http~          10           43366.
#>  8 binance_us  Bina~             2019 United~ http~          10           28119.
#>  9 kraken      Krak~             2011 United~ http~          10           20346.
#> 10 bitfinex    Bitf~             2014 Britis~ http~          10           16893.

One of the important columns in the obtained tibble is trust_score. This score ranges from 1 to 10 and combines several metrics indicative of how much one can trust the data originating from a given exchange (see this and this articles on the CoinGecko website for details).

When querying the market data for a cryptocurrency, users are always expected to supply one or several reference currencies (fiat or crypto) to express the coin price in. The list of such reference currencies can be retrieved with the supported_currencies() function:

currencies <- supported_currencies()
currencies
#>  [1] "btc"  "eth"  "ltc"  "bch"  "bnb"  "eos"  "xrp"  "xlm"  "link" "dot" 
#> [11] "yfi"  "usd"  "aed"  "ars"  "aud"  "bdt"  "bhd"  "bmd"  "brl"  "cad" 
#> [21] "chf"  "clp"  "cny"  "czk"  "dkk"  "eur"  "gbp"  "hkd"  "huf"  "idr" 
#> [31] "ils"  "inr"  "jpy"  "krw"  "kwd"  "lkr"  "mmk"  "mxn"  "myr"  "ngn" 
#> [41] "nok"  "nzd"  "php"  "pkr"  "pln"  "rub"  "sar"  "sek"  "sgd"  "thb" 
#> [51] "try"  "twd"  "uah"  "vef"  "vnd"  "zar"  "xdr"  "xag"  "xau"  "bits"
#> [61] "sats"