Learn R Programming

nse2r (version 0.1.3)

nse_index_quote: 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

Run this code
# NOT RUN {
nse_index_quote()

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

Run the code above in your browser using DataLab