1.5.1
nselive
, nseopen
nseindex
, nsetree
, optbanknifty
and optnifty
obtain data from NSE using python scripts. Thus, you need to install Python modules pandas
and requests
in R,
Following steps should help you to get started, * Install latest version of Python
, Ananconda
and Miniconda
. And add Python as PATH variable. * Then in R,
install.packages('reticulate') # Install package reticulate
library(reticulate) # Load package
# You can also install miniconda in R by,
# install_miniconda()
py_install("requests") # Install python package requests
py_install("pandas") # Install python package pandas
# Helpgul tip: you can also add interpreter in "Tools/Global options/Python/miniconda".
You should be good to go now…
nser
helps you to download historical bhavcopy of Equities and F&O segment easily.
Package website nser
You can install “nser” from CRAN with:
Install it from github by:
library(nser) nseipo()
library(nser)
data(dailydata)
daytoweek(dailydata)
library(nser)
data(dailydata)
daytomonth(dailydata)
library(nser)
optnifty()
library(nser)
optbanknifty()