MyNixOS website logo
Description
Bhavcopy and Live Market Data from National Stock Exchange (NSE) & Bombay Stock Exchange (BSE) India
Download Current & Historical Bhavcopy. Get Live Market data from NSE India of Equities and Derivatives (F&O) segment. Data source <https://www.nseindia.com/>.

CRAN_Status_Badge Lifecycle:stable Github Code Size Downloads

Latest Version 1.5.2

NOTE

nselive, nseopennseindex, 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...

Introduction

nser helps you to download historical bhavcopy of Equities and F&O segment easily.

Package website nser

Installation

You can install “nser” from CRAN with:

install.packages("nser")

Install it from github by:

install.packages("devtools")
library(devtools)
install_github("nandp1/nser")

Example 1. Downloading Historical Equity Bhavcopy

library(nser)
# Download Bhavcopy of 1st July 2021
report1 = bhav("01072021")

Example 2. Downloading Historical F&O Bhavcopy

library(nser)
# Download Bhavcopy of 1st July 2021
report2 = fobhav("01072021")

Example 3. Downloading today’s Equity and F&O Bhavcopy

library(nser)
report3 = bhavtoday()
report4 = fobhavtoday()

Example 4. Live F&O data.

library(nser)
nselive()

Example 5. Pre market open data of F&O stocks

library(nser)
nseopen("fo")

Example 6. Current and Upcoming IPO’s

library(nser) nseipo()

Example 7. NSE Treemap

library(nser)
# NIFTY 50 stocks
nsetree()

# F&O stocks
nsetree("fo")

Example 8. Daily data to Weelkly data

library(nser)
data(dailydata)
daytoweek(dailydata)

Example 9. Daily data to Monthly data

library(nser)
data(dailydata)
daytomonth(dailydata)

Example 10. Option chain Nifty 50

library(nser)
optnifty()

Example 11. Option chain Banknifty

library(nser)
optbanknifty()
Metadata

Version

1.5.3

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows