NSE indices advances & declines.

nse_advances_declines(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 index.

advances

Number of stocks increased (in green).

declines

Number of stocks decreased (in red).

unchanged

Number of stocks unchanged.

Examples

# \donttest{ nse_advances_declines()
#> # A tibble: 57 x 4 #> index_name advances declines unchanged #> <chr> <dbl> <dbl> <dbl> #> 1 NIFTY 50 10 40 0 #> 2 NIFTY NEXT 50 10 40 0 #> 3 NIFTY IT 6 4 0 #> 4 NIFTY BANK 1 11 0 #> 5 NIFTY MIDCAP 50 7 43 0 #> 6 NIFTY INFRA 7 23 0 #> 7 NIFTY REALTY 2 8 0 #> 8 NIFTY ENERGY 0 10 0 #> 9 NIFTY FMCG 2 13 0 #> 10 NIFTY MNC 7 23 0 #> # ... with 47 more rows
# retain original column names as returned by NSE nse_advances_declines(clean_names = FALSE)
#> # A tibble: 57 x 4 #> indice advances declines unchanged #> <chr> <dbl> <dbl> <dbl> #> 1 NIFTY 50 10 40 0 #> 2 NIFTY NEXT 50 10 40 0 #> 3 NIFTY IT 6 4 0 #> 4 NIFTY BANK 1 11 0 #> 5 NIFTY MIDCAP 50 7 43 0 #> 6 NIFTY INFRA 7 23 0 #> 7 NIFTY REALTY 2 8 0 #> 8 NIFTY ENERGY 0 10 0 #> 9 NIFTY FMCG 2 13 0 #> 10 NIFTY MNC 7 23 0 #> # ... with 47 more rows
# }