These helpers return ID, name or ticker symbol for cryptocurrencies based on either of the other two. Symbol inputs are not case sensitive but IDs and names are.

coin_id(x)

coin_name(x)

coin_symbol(x)

Arguments

x

a coin id, name or ticker symbol.

Value

a vector the same length as x.

Examples

coin_id(c("btc", "Ethereum"))
#> [1] "bitcoin" "ethereum"
coin_name(c("BTC", "BCH"))
#> [1] "Bitcoin" "Bitcoin Cash"
coin_symbol("Bitcoin")
#> [1] "BTC"