View source: R/coinmarketcap.R
coinmarketcap_api_call | R Documentation |
coinmarketcap_api_call
coinmarketcap_api_call(
url,
api_key,
method,
query = NULL,
timeout_seconds = 60
)
url |
the url for your CoinMarketCap API call |
api_key |
your CoinMarketCap API key |
method |
"GET" or "POST" |
query |
your query parameters. The default value is NULL. |
timeout_seconds |
seconds until the query times out. Default is 60. |
returns data from your CoinMarketCap API call
## Not run:
url <- "https://pro-api.coinmarketcap.com/v1/cryptocurrency/map"
api_key <- "..."
query_string <- list(
listing_status = "active",
start = "1",
limit = NULL,
sort = "id",
symbol = NULL,
aux = "platform,first_historical_data,last_historical_data,is_active,status"
)
data <- coinmarketcap_api_call(url, api_key, 'GET', query = query_string)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.