bhavpr: Historical Equity Bhavcopy PR

Introduction

To download historical Bhavcopy PR just mention the date in numeric format(Date, Month, Year). Note that date should be mentioned in quotation mark "" (inverted comma). The function returns list containing ten dataframes form Bhavcopy PR.

library(nser)
library(readr)
report = bhavpr("01072021")
#> Rows: 687 Columns: 10
#> -- Column specification --------------------------------------------------------
#> Delimiter: ","
#> chr (10): SERIES, SYMBOL, SECURITY, RECORD_DT, BC_STRT_DT, BC_END_DT, EX_DT,...
#> 
#> i Use `spec()` to retrieve the full column specification for this data.
#> i Specify the column types or set `show_col_types = FALSE` to quiet this message.
#> Rows: 168 Columns: 5
#> -- Column specification --------------------------------------------------------
#> Delimiter: ","
#> chr (2): GAIN_LOSS, SECURITY
#> dbl (3): CLOSE_PRIC, PREV_CL_PR, PERCENT_CG
#> 
#> i Use `spec()` to retrieve the full column specification for this data.
#> i Specify the column types or set `show_col_types = FALSE` to quiet this message.
#> Rows: 105 Columns: 4
#> -- Column specification --------------------------------------------------------
#> Delimiter: ","
#> chr (2): SECURITY, NEW_STATUS
#> dbl (2): NEW, PREVIOUS
#> 
#> i Use `spec()` to retrieve the full column specification for this data.
#> i Specify the column types or set `show_col_types = FALSE` to quiet this message.
#> Rows: 2126 Columns: 16
#> -- Column specification --------------------------------------------------------
#> Delimiter: ","
#> chr  (6): MKT, SERIES, SYMBOL, SECURITY, IND_SEC, CORP_IND
#> dbl (10): PREV_CL_PR, OPEN_PRICE, HIGH_PRICE, LOW_PRICE, CLOSE_PRICE, NET_TR...
#> 
#> i Use `spec()` to retrieve the full column specification for this data.
#> i Specify the column types or set `show_col_types = FALSE` to quiet this message.
#> Rows: 2126 Columns: 14
#> -- Column specification --------------------------------------------------------
#> Delimiter: ","
#> chr (5): MKT, SECURITY, IND_SEC, CORP_IND, LO_52_WK
#> dbl (9): PREV_CL_PR, OPEN_PRICE, HIGH_PRICE, LOW_PRICE, CLOSE_PRICE, NET_TRD...
#> 
#> i Use `spec()` to retrieve the full column specification for this data.
#> i Specify the column types or set `show_col_types = FALSE` to quiet this message.
#> Rows: 25 Columns: 5
#> -- Column specification --------------------------------------------------------
#> Delimiter: ","
#> chr (1): SECURITY
#> dbl (4): PREV_CL_PR, CLOSE_PRIC, NET_TRDQTY, NET_TRDVAL
#> 
#> i Use `spec()` to retrieve the full column specification for this data.
#> i Specify the column types or set `show_col_types = FALSE` to quiet this message.
#> Warning: One or more parsing issues, see `problems()` for details
#> Rows: 345 Columns: 5
#> -- Column specification --------------------------------------------------------
#> Delimiter: ","
#> chr (4): SYMBOL, SERIES, SECURITY, HIGH/LOW
#> lgl (1): INDEX FLAG
#> 
#> i Use `spec()` to retrieve the full column specification for this data.
#> i Specify the column types or set `show_col_types = FALSE` to quiet this message.
#> Rows: 144 Columns: 15
#> -- Column specification --------------------------------------------------------
#> Delimiter: ","
#> chr  (4): MARKET, SERIES, SYMBOL, SECURITY
#> dbl (10): PREV_CL_PR, OPEN_PRICE, HIGH_PRICE, LOW_PRICE, CLOSE_PRICE, NET_TR...
#> lgl  (1): CORP_IND
#> 
#> i Use `spec()` to retrieve the full column specification for this data.
#> i Specify the column types or set `show_col_types = FALSE` to quiet this message.
#> Rows: 99 Columns: 15
#> -- Column specification --------------------------------------------------------
#> Delimiter: ","
#> chr  (5): MARKET, SERIES, SYMBOL, SECURITY, UNDERLYING
#> dbl (10): PREVIOUS CLOSE PRICE, OPEN PRICE, HIGH PRICE, LOW PRICE, CLOSE PRI...
#> 
#> i Use `spec()` to retrieve the full column specification for this data.
#> i Specify the column types or set `show_col_types = FALSE` to quiet this message.
#> Rows: 66 Columns: 14
#> -- Column specification --------------------------------------------------------
#> Delimiter: ","
#> chr (4): MARKET, SERIES, SYMBOL, SECURITY
#> dbl (9): PREV_CL_PR, OPEN_PRICE, HIGH_PRICE, LOW_PRICE, CLOSE_PRICE, NET_TRD...
#> lgl (1): CORP_IND
#> 
#> i Use `spec()` to retrieve the full column specification for this data.
#> i Specify the column types or set `show_col_types = FALSE` to quiet this message.
head(report)
#> $`./Bc010721.csv`
#> # A tibble: 687 x 10
#>    SERIES SYMBOL  SECURITY      RECORD_DT BC_STRT_DT BC_END_DT EX_DT  ND_STRT_DT
#>    <chr>  <chr>   <chr>         <chr>     <chr>      <chr>     <chr>  <chr>     
#>  1 16     SRTRAN~ Sec Red NCD ~ 07/08/20~ <NA>       <NA>      05/08~ <NA>      
#>  2 17     SRTRAN~ Sec Red NCD ~ 07/08/20~ <NA>       <NA>      05/08~ <NA>      
#>  3 18     SRTRAN~ Sec Red NCD ~ 07/08/20~ <NA>       <NA>      05/08~ <NA>      
#>  4 19     SRTRAN~ Sec Red NCD ~ 07/08/20~ <NA>       <NA>      05/08~ <NA>      
#>  5 BE     LTI     L&T Infotech~ 02/07/20~ <NA>       <NA>      01/07~ <NA>      
#>  6 BE     PDMJEP~ Pudumjee Pap~ <NA>      14/08/2021 21/08/20~ 12/08~ <NA>      
#>  7 BE     LSIL    Lloyds Steel~ <NA>      09/07/2021 15/07/20~ 07/07~ <NA>      
#>  8 BE     BALKRI~ Balkrshna Pa~ <NA>      17/07/2021 23/07/20~ 15/07~ <NA>      
#>  9 BE     CROMPT~ Crompt Grea ~ 09/07/20~ <NA>       <NA>      08/07~ <NA>      
#> 10 BE     KIRLFER Kirloskar Fe~ <NA>      18/07/2021 27/07/20~ 15/07~ <NA>      
#> # ... with 677 more rows, and 2 more variables: ND_END_DT <chr>, PURPOSE <chr>
#> 
#> $`./Gl010721.csv`
#> # A tibble: 168 x 5
#>    GAIN_LOSS SECURITY                  CLOSE_PRIC PREV_CL_PR PERCENT_CG
#>    <chr>     <chr>                          <dbl>      <dbl>      <dbl>
#>  1 <NA>      Nifty 50 Sec.                    NA         NA       NA   
#>  2 <NA>      <NA>                             NA         NA       NA   
#>  3 G         DR. REDDY'S LABORATORIES       5558.      5423.       2.5 
#>  4 G         GAIL (INDIA) LTD                153        150.       2.24
#>  5 G         HINDALCO  INDUSTRIES  LTD       379.       372.       1.98
#>  6 G         BAJAJ AUTO LIMITED             4205.      4134.       1.71
#>  7 G         TATA MOTORS LIMITED             344.       340.       1.37
#>  8 G         SUN PHARMACEUTICAL IND L        684.       675.       1.29
#>  9 G         OIL AND NATURAL GAS CORP.       119.       118.       0.98
#> 10 G         ASIAN PAINTS LIMITED           3022.      2993.       0.97
#> # ... with 158 more rows
#> 
#> $`./HL010721.csv`
#> # A tibble: 105 x 4
#>    SECURITY                     NEW PREVIOUS NEW_STATUS
#>    <chr>                      <dbl>    <dbl> <chr>     
#>  1 FORTIS HEALTHCARE LTD      250.    248.   H         
#>  2 HAPPIEST MINDS TECHNO LTD 1194.   1020    H         
#>  3 JSW ENERGY LIMITED         177     172.   H         
#>  4 MAGADH SUGAR & ENERGY LTD  353.    336.   H         
#>  5 MPHASIS LIMITED           2184    2144.   H         
#>  6 NITIN FIRE PROT IND. LTD.    1.4     1.35 H         
#>  7 ONE POINT ONE SOL LTD       32.8    31.3  H         
#>  8 PITTI ENGINEERING LIMITED  145     140.   H         
#>  9 PROSEED INDIA LTD            5.1     4.9  H         
#> 10 RAJRATAN GLOBAL WIRE LTD  1848    1557.   H         
#> # ... with 95 more rows
#> 
#> $`./Pd010721.csv`
#> # A tibble: 2,126 x 16
#>    MKT   SERIES SYMBOL SECURITY       PREV_CL_PR OPEN_PRICE HIGH_PRICE LOW_PRICE
#>    <chr> <chr>  <chr>  <chr>               <dbl>      <dbl>      <dbl>     <dbl>
#>  1 Y     <NA>   <NA>   Nifty 50           15722.     15755.     15756.    15667.
#>  2 Y     <NA>   <NA>   NIFTY50 EQL W~     17666.     17699.     17714.    17642.
#>  3 Y     <NA>   <NA>   NIFTY100 EQL ~     18815.     18848.     18878.    18805.
#>  4 Y     <NA>   <NA>   NIFTY100 LowV~     12302.     12327.     12347.    12300.
#>  5 Y     <NA>   <NA>   NIFTY Alpha 50     27135      27160.     27177.    26965.
#>  6 Y     <NA>   <NA>   NIFTY MIDCAP ~     10182.     10205.     10206.    10147.
#>  7 Y     <NA>   <NA>   NIFTY SMLCAP ~      4891.      4914.      4941.     4896.
#>  8 Y     <NA>   <NA>   NIFTY SMLCAP ~      8452.      8498.      8514.     8476.
#>  9 Y     <NA>   <NA>   NIFTY MIDSML ~      9559.      9590.      9594      9547.
#> 10 Y     <NA>   <NA>   NIFTY200 QUAL~     13433.     13466.     13500.    13439.
#> # ... with 2,116 more rows, and 8 more variables: CLOSE_PRICE <dbl>,
#> #   NET_TRDVAL <dbl>, NET_TRDQTY <dbl>, IND_SEC <chr>, CORP_IND <chr>,
#> #   TRADES <dbl>, HI_52_WK <dbl>, LO_52_WK <dbl>
#> 
#> $`./Pr010721.csv`
#> Warning: One or more parsing issues, see `problems()` for details
#> # A tibble: 2,126 x 14
#>    MKT   SECURITY         PREV_CL_PR OPEN_PRICE HIGH_PRICE LOW_PRICE CLOSE_PRICE
#>    <chr> <chr>                 <dbl>      <dbl>      <dbl>     <dbl>       <dbl>
#>  1 Y     Nifty 50             15722.     15755.     15756.    15667.      15680 
#>  2 Y     NIFTY50 EQL Wgt      17666.     17699.     17714.    17642.      17660 
#>  3 Y     NIFTY100 EQL Wgt     18815.     18848.     18878.    18805.      18831.
#>  4 Y     NIFTY100 LowVol~     12302.     12327.     12347.    12300.      12321.
#>  5 Y     NIFTY Alpha 50       27135      27160.     27177.    26965.      27096.
#>  6 Y     NIFTY MIDCAP 150     10182.     10205.     10206.    10147.      10160.
#>  7 Y     NIFTY SMLCAP 50       4891.      4914.      4941.     4896.       4925.
#>  8 Y     NIFTY SMLCAP 250      8452.      8498.      8514.     8476.       8502.
#>  9 Y     NIFTY MIDSML 400      9559.      9590.      9594      9547.       9563.
#> 10 Y     NIFTY200 QUALTY~     13433.     13466.     13500.    13439.      13470.
#> # ... with 2,116 more rows, and 7 more variables: NET_TRDVAL <dbl>,
#> #   NET_TRDQTY <dbl>, IND_SEC <chr>, CORP_IND <chr>, TRADES <dbl>,
#> #   HI_52_WK <dbl>, LO_52_WK <chr>
#> 
#> $`./Tt010721.csv`
#> # A tibble: 25 x 5
#>    SECURITY                  PREV_CL_PR CLOSE_PRIC NET_TRDQTY   NET_TRDVAL
#>    <chr>                          <dbl>      <dbl>      <dbl>        <dbl>
#>  1 HAPPIEST MINDS TECHNO LTD      1004.      1137.   19353834 21059549350.
#>  2 INFO EDGE (I) LTD              4916.      5317.    3526542 18428419132.
#>  3 HDFC BANK LTD                  1498.      1487.    8455721 12610824918.
#>  4 RELIANCE INDUSTRIES LTD        2111.      2098.    5784627 12201907893.
#>  5 TATA MOTORS LIMITED             340.       344.   27944816  9626455277.
#>  6 INFOSYS LIMITED                1581.      1560.    4814317  7537112361.
#>  7 STATE BANK OF INDIA             419.       420.   16161469  6803546371.
#>  8 BAJAJ FINANCE LIMITED          6016.      5967.    1120601  6705695095.
#>  9 ICICI BANK LTD.                 631.       631.   10517081  6663442949.
#> 10 TATA STEEL LIMITED             1167.      1164.    5614928  6549650936.
#> # ... with 15 more rows