knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

ubci

lifecycle License: MIT Travis build status AppVeyor build status Coverage status CRAN status CRAN download

The goal of ubci is to get UBCI(UpBit Crypto Index) & Crypto price data form upbit.

Installation

ubci is now on cran!

You can install on cran with:

install.packages("ubci")

You can install the development version of ubci from GitHub with:

install.packages("remotes")
remotes::install_github("mrchypark/ubci")

please check encoding UTF-8 for unix-like os.

Sys.getlocale()

Example

index options

ubci_index_options() function return list of index code & descriptions.

library(ubci)
ubci_index_options()

ubci_index_options() function provide lang param for korean descriptions.

ubci_index_options(lang="ko")

index

ubci_index() function return index data with code, range of date with from/to.

loi<-ubci_index_options()
loi$index[1]
ubci_index(loi$index[1])
tail(ubci_index(loi$index[1], from="2019-05-15"))
ubci_index(loi$index[1], to="2019-05-15")
ubci_index(loi$index[1], from="2019-05-10", to="2019-05-15")

crypto price options

ubci_get_options() function return list of crypto code & name.

ubci_get_options()

ubci_get_options() function provide lang param for korean name of crypto.

ubci_get_options(lang="ko")

crypto price

ubci_get() function return crypto prcie data with code, range of date with from/to.

loc<-ubci_get_options()
loc$code[1]
ubci_get(loc$code[1])
tail(ubci_get(loc$code[1], from="2019-05-15"))
ubci_get(loc$code[1], to="2019-05-15")
ubci_get(loc$code[1], from="2019-05-10", to="2019-05-15")

Session info is below.

sessionInfo()

Data source license is below.

“UBCI 인덱스”
Copyright 2018 두나무(주) All rights reserved.
Powered by 두나무/Upbit


mrchypark/ubci documentation built on June 16, 2019, 3:10 a.m.