nse_index_quote: Index quote

View source: R/nse-index.R

nse_index_quoteR Documentation

Index quote

Description

Fetch the quote for a given index.

Usage

nse_index_quote(clean_names = TRUE)

Arguments

clean_names

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

Value

A tibble with the following columns:

index_name

Name of the NSE indices.

last_traded_price

Last traded price.

change

Change in price.

percent_change

Percentage change in price.

Examples

## Not run: 
nse_index_quote()

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

## End(Not run)


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