Learn R Programming

coindeskr (version 0.1.0)

get_current_price: Extract Bitcoin Price Index from Coindesk API

Description

Extract Bitcoin Price Index from Coindesk API

Usage

get_current_price(currency = "USD", only_price = FALSE)

Arguments

currency

a valid ISO 4217 currency code supported by coindesk - verify with get_currency_list(), default is USD

only_price

a TRUE/FALSE flag to force-return only the bitcoin price filtering other associated info

Value

dataframe containing Bitcoin Price and other associated info returned from the API call if only_price is FALSE, if TRUE, returns only the numeric value of Bitcoin price in the given currency

Examples

Run this code
# NOT RUN {
get_current_price()
# }

Run the code above in your browser using DataLab