cc_general_info: Cryptocompare General Info

View source: R/cc_general_info.R

cc_general_infoR Documentation

Cryptocompare General Info

Description

Retrieve the general information, using the cryptocompare Api.

Usage

cc_general_info(
  info = "coins",
  currency = "USD",
  api_key = NULL,
  verbose = FALSE
)

Arguments

info

Character. Without an api_key it is possible to access only to "coins" and "exchanges" information. Using a free api key, it is possible to access to all the endpoints:

  • "blockchain": returns a list of all coins for which we currently get blockchain data from IntoTheBlock.

  • "cards": returns general info about all the integrated crypto cards.

  • "coins": returns general info about all the integrated coins.

  • "companies": returns general info about all the integrated mining companies.

  • "contracts": returns general info about all the integrated mining contracts.

  • "equipment": returns general info about all the integrated mining equipment.

  • "exchanges": returns general info and 24h volume for all integrated exchanges.

  • "gambling": returns general info about all the integrated exchanges.

  • "wallets": returns general info about all the integrated wallets.

  • "pools": returns general info about all the integrated mining pools.

currency

Character. Currency in which convert the monetary values.

api_key

Character, optional. Api key from cyptocompare.

verbose

Logical. If TRUE it will display warning messages if you do not insert a valid api key for the api-key-only endpoints.

Value

a tibble

Examples

# Endpoints reachable without an Api Key
cc_general_info("coins")
cc_general_info("exchanges")

# Endpoints reachable only with a valid Api Key
## Not run: 
api_key <- "yourapikey"
cc_general_info("gambling", api_key = api_key)
cc_general_info("wallets", api_key = api_key)
cc_general_info("cards", api_key = api_key)
cc_general_info("contracts", api_key = api_key)
cc_general_info("companies", api_key = api_key)
cc_general_info("equipment", api_key = api_key)
cc_general_info("pools", api_key = api_key)
cc_general_info("blockchain", api_key = api_key)

## End(Not run)

beniamino98/cryptocompareR documentation built on June 19, 2024, 12:37 a.m.