nse_stock_high_low: 52 week high & low

nse_stock_high_lowR Documentation

52 week high & low

Description

Fetch stocks that have touched their 52 week high and low.

Usage

nse_stock_year_high(clean_names = TRUE)

nse_stock_year_low(clean_names = TRUE)

Arguments

clean_names

Logical; if TRUE, makes the column names descriptive and uses snake_case.

Value

A tibble with the following column names:

symbol

NSE ticker.

symbol_desc

Name of the firm.

date

Previous high date.

new_high

New 52 week high price.

new_low

New 52 week low price.

year

Year.

last_traded_price

Last traded price.

prev_high

Previous high price.

prev_low

Previous low price.

prev_close

Previous close price.

change

Change in price.

percent_change

Percentage change in price.

Examples

## Not run: 
# 52 week high
nse_stock_year_high()

# retain original column names as returned by NSE
nse_stock_year_high(clean_names = FALSE)

# 52 week low
nse_stock_year_low()

# retain original column names as returned by NSE
nse_stock_year_low(clean_names = FALSE)

## End(Not run)


nse2r documentation built on Nov. 1, 2022, 5:05 p.m.