Learn R Programming

coindeskr (version 0.1.0)

get_historic_price: Extract historic Price of Bitcoin for the given time period and given currency

Description

Extract historic Price of Bitcoin for the given time period and given currency

Usage

get_historic_price(currency = "USD", start = Sys.Date() - 2,
  end = Sys.Date() - 1)

Arguments

currency

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

start

start date supplied in the YYYY-MM-DD format, e.g. 2013-09-01 for September 1st, 2013. default is current date - 2

end

end date supplied in the YYYY-MM-DD format, e.g. 2013-09-01 for September 1st, 2013. default is current date - 1

Value

Dataframe with the requested currency Price as one column and Date as rownames

Examples

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

Run the code above in your browser using DataLab