Package 'tqk'

Title: Get Financial Data in Korea
Description: Enables the acquisition of Korean financial market data, designed to integrate seamlessly with the 'tidyquant' package.
Authors: Chanyub Park [aut, cre]
Maintainer: Chanyub Park <[email protected]>
License: MIT + file LICENSE
Version: 0.1.8
Built: 2024-11-21 03:04:06 UTC
Source: https://github.com/mrchypark/tqk

Help Index


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)

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 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")