Nse 2 R
Nse 2 R
Nse 2 R
November 1, 2022
Type Package
Title Fetch Data from 'National Stock Exchange (India)'
Version 0.1.6
Description Fetch data related to stocks, index, futures & options from the
'NSE (National Stock Exchange, India)'. This package is community maintained
and is not officially supported by 'NSE'. The accuracy of data is only as
correct as provided on <https://www.nseindia.com>.
License MIT + file LICENSE
URL https://github.com/rsquaredacademy/nse2r,
https://nse2r.rsquaredacademy.com/
BugReports https://github.com/rsquaredacademy/nse2r/issues
Depends R(>= 3.3)
Imports jsonlite, magrittr, utils, yahoofinancer
Suggests covr, DT, httptest, shiny, shinyBS, shinycssloaders,
shinythemes, testthat (>= 2.1.0)
Encoding UTF-8
RoxygenNote 7.1.1
NeedsCompilation no
Author Lokesh Kumar [aut],
Aravind Hebbali [aut, cre],
Lionel Pinto [ctb]
Maintainer Aravind Hebbali <[email protected]>
Repository CRAN
Date/Publication 2022-11-01 15:17:53 UTC
R topics documented:
nse2r . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
nse_advances_declines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1
2 nse_advances_declines
nse_app . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
nse_fo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
nse_index_list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
nse_index_quote . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
nse_index_valid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
nse_stock_code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
nse_stock_high_low . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
nse_stock_most_traded . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
nse_stock_quote . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
nse_stock_top_base . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
nse_stock_valid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
preopen_nifty . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Index 14
Description
Tools for Collecting Real Time Data from National Stock Exchange (India)
Description
NSE indices advances & declines.
Usage
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:
Examples
## Not run:
nse_advances_declines()
## End(Not run)
Description
Launches shiny app for fetching data from NSE.
Usage
nse_app()
Examples
## Not run:
nse_app()
## End(Not run)
Description
Top futures and options gainers and losers for the last trading session.
Usage
nse_fo_top_gainers(clean_names = TRUE)
nse_fo_top_losers(clean_names = TRUE)
Arguments
clean_names Logical; if TRUE, makes the column names descriptive and uses snake_case.
4 nse_fo
Value
Examples
## Not run:
# top gainers
nse_fo_top_gainers()
# top losers
nse_fo_top_losers()
## End(Not run)
nse_index_list 5
Description
List NSE indices.
Usage
nse_index_list(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:
Examples
## Not run:
nse_index_list()
## End(Not run)
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.
6 nse_index_valid
Value
A tibble with the following columns:
Examples
## Not run:
nse_index_quote()
## End(Not run)
Description
Check if index symbol is valid.
Usage
nse_index_valid(index_code)
Arguments
index_code Symbol of the index.
Examples
## Not run:
nse_index_valid("nifty auto")
nse_index_valid("nifty cps")
## End(Not run)
nse_stock_code 7
Description
Fetch stock symbol and name from NSE.
Usage
nse_stock_code(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:
Examples
## Not run:
nse_stock_code()
## End(Not run)
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)
8 nse_stock_high_low
Arguments
clean_names Logical; if TRUE, makes the column names descriptive and uses snake_case.
Value
Examples
## Not run:
# 52 week high
nse_stock_year_high()
# 52 week low
nse_stock_year_low()
## End(Not run)
nse_stock_most_traded 9
Description
Usage
nse_stock_most_traded(clean_names = TRUE)
Arguments
clean_names Logical; if TRUE, makes the column names descriptive and uses snake_case.
Value
Examples
## Not run:
nse_stock_most_traded()
## End(Not run)
10 nse_stock_top_base
Description
Fetch the quote for a given stock code from Yahoo Finance API or Rediff Money.
Usage
nse_stock_quote(stock_code)
Arguments
Examples
## Not run:
nse_stock_quote("infy")
## End(Not run)
Description
Fetch top gainers and losers for the last trading session.
Usage
nse_stock_top_gainers(clean_names = TRUE)
nse_stock_top_losers(clean_names = TRUE)
Arguments
clean_names Logical; if TRUE, makes the column names descriptive and uses snake_case.
nse_stock_top_base 11
Value
Examples
## Not run:
# top gainers
nse_stock_top_gainers()
# top losers
nse_stock_top_losers()
## End(Not run)
12 preopen_nifty
Description
Usage
nse_stock_valid(stock_code)
Arguments
Examples
## Not run:
nse_stock_valid("infy")
nse_stock_valid("glo")
## End(Not run)
Description
Usage
nse_preopen_nifty(clean_names = TRUE)
nse_preopen_nifty_bank(clean_names = TRUE)
Arguments
clean_names Logical; if TRUE, makes the column names descriptive and uses snake_case.
preopen_nifty 13
Value
A tibble with the following columns:
Examples
## Not run:
# nifty
nse_preopen_nifty()
# nifty bank
nse_preopen_nifty_bank()
## End(Not run)
Index
nse2r, 2
nse_advances_declines, 2
nse_app, 3
nse_fo, 3
nse_fo_top_gainers (nse_fo), 3
nse_fo_top_losers (nse_fo), 3
nse_index_list, 5
nse_index_quote, 5
nse_index_valid, 6
nse_preopen_nifty (preopen_nifty), 12
nse_preopen_nifty_bank (preopen_nifty),
12
nse_stock_code, 7
nse_stock_high_low, 7
nse_stock_most_traded, 9
nse_stock_quote, 10
nse_stock_top_base, 10
nse_stock_top_gainers
(nse_stock_top_base), 10
nse_stock_top_losers
(nse_stock_top_base), 10
nse_stock_valid, 12
nse_stock_year_high
(nse_stock_high_low), 7
nse_stock_year_low
(nse_stock_high_low), 7
preopen_nifty, 12
14