Learn R Programming

ubci (version 0.0.5)

ubci_get: get coin price

Description

get coin price data from source. Source is https://upbit.com/exchange. This page shows the multiple cryptocurrency price.

Usage

ubci_get(code, from, to)

Arguments

code

coin name fom ubci_get_options() link "UPBIT.KRW-BTC".

from

Optional for various time series. A character string representing a start date in YYYY-MM-DD format. Default is 2000-01-01.

to

Optional for various time series. A character string representing an end date in YYYY-MM-DD format. Default is system date today.

Value

Return type is tibble has columes contain code, date, open, high, low, close, volume.

Examples

Run this code
# NOT RUN {
btc <- ubci_get(code = "UPBIT.KRW-BTC")
btc

ubci_get(code = "UPBIT.KRW-BTC", from="2018-05-15")
ubci_get(code = "UPBIT.KRW-BTC", to="2018-05-15")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab