Learn R Programming

nse2r (version 0.1.6)

nse_index_quote: Index quote

Description

Fetch the quote for a given index.

Usage

nse_index_quote(clean_names = TRUE)

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.

Arguments

clean_names

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

Examples

Run this code
if (FALSE) {
nse_index_quote()

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

Run the code above in your browser using DataLab