Help for package tqk (original) (raw)
| Title: | Get Financial Data in Korea |
|---|---|
| Version: | 0.1.8 |
| Description: | Enables the acquisition of Korean financial market data, designed to integrate seamlessly with the 'tidyquant' package. |
| License: | MIT + file LICENSE |
| URL: | https://github.com/mrchypark/tqk, https://mrchypark.github.io/tqk/ |
| BugReports: | https://github.com/mrchypark/tqk/issues |
| Encoding: | UTF-8 |
| LazyData: | true |
| Depends: | R (≥ 3.3.0) |
| Imports: | jsonlite, magrittr, tibble, httr, dplyr |
| Suggests: | testthat (≥ 3.0.0), usethis |
| RoxygenNote: | 7.2.3 |
| Config/testthat/edition: | 3 |
| NeedsCompilation: | no |
| Packaged: | 2023-08-29 05:21:50 UTC; cypark |
| Author: | Chanyub Park |
| Maintainer: | Chanyub Park mrchypark@gmail.com |
| Repository: | CRAN |
| Date/Publication: | 2023-08-29 16:50:02 UTC |
tqk: Get Financial Data in Korea
Description
Enables the acquisition of Korean financial market data, designed to integrate seamlessly with the 'tidyquant' package.
Author(s)
Maintainer: Chanyub Park mrchypark@gmail.com (ORCID)
See Also
Useful links:
- https://github.com/mrchypark/tqk
- https://mrchypark.github.io/tqk/
- Report bugs at https://github.com/mrchypark/tqk/issues
Pipe operator
Description
See magrittr::[%>%](../../magrittr/refman/magrittr.html#topic+pipe) for details.
Usage
lhs %>% rhs
Arguments
| lhs | A value or the magrittr placeholder. |
|---|---|
| rhs | A function call using the magrittr semantics. |
Value
The result of calling rhs(lhs).
Stock prices for the "SHANK" stocks.
Description
A dataset containing the daily historical stock prices for the "SHANK" big korea stocks, "SAMSUNG", "HYUNDAI", "AMOREPACIFIC", "NAVER" and "KAKAO", spanning from 2012-02-08 through 2017-09-07.
Usage
SHANK
Format
A "tibble" ("tidy" data frame) with 7,580 rows and 8 variables:
symbol
stock ticker symbol
date
trade date
open
stock price at the open of trading, in won
high
stock price at the highest point during trading, in won
low
stock price at the lowest point during trading, in won
close
stock price at the close of trading, in won
volume
number of shares traded
adjusted
stock price at the close of trading adjusted for stock splits, in won
Get company code
Description
Get code for korea finance market
Usage
code_get(fresh = FALSE)
Arguments
| fresh | get code on internet. Default is FALSE. |
|---|
Value
a tibble with market, name, code column.
Examples
code_get()
code_get(fresh = TRUE)
Get quantitative data from korea
Description
Get quantitative data from korea
Usage
tqk_get(x, from = "1900-01-01", to = Sys.Date())
Arguments
| x | Stock x. only Korean type like "005930" is samsung. |
|---|---|
| from | Optional for various time series functions. A character string representing a start date in YYYY-MM-DD format. |
| to | Optional for various time series functions. A character string representing a end date in YYYY-MM-DD format. |
Value
a tibble
Examples
tqk_get(x = "005930")
tqk_get(x = "005930", from = "2018-05-01")
tqk_get(x = "005930", from = "2018-05-01", to = "2018-05-31")