Description Usage Arguments Details Value Author(s) References Examples
nepse_real
downloads the real time stock quotes from the Nepal Stock
Exchange.
1 |
symbols |
a character vector specifying the names of each symbol to be loaded |
The nepse_real
downloads the real time stock quote for the given stock
symbol(s) from Nepal Stock Exchange. The nepse_real
will first check
whether the entered symbol (s) is (are) valid stock symbol(s) by looking through
all stocks symbols listed in NEPSE. The nepse_real
will return an error
if all entered symbol(s) is (are) not valid. The nepse_real
will then
check whether the call is made during trading hours of the NEPSE. If the call
is not made during trading hours, it will return a dataframe with NA values
along with warning for all valid entered symbol(s). If the call is made during
trading hours, the nepse_real
will then check whether valid symbol(s)
is (are) traded. For valid symbol(s) not traded, it gives NA with warning. For
example, if one of the entered symbol is not valid, then the row of dataframe
associated with that valid but not traded symbol will have NA values.
nepse_daily
will return the object of class dataframe with 11 variables:
trade_time
,
stock_symbol
,
last_trade_price
,
last_trade_volume
,
point_change
,
percent_change
,
open
,
high
,
low
,
volume
, and
previous_closing
.
Nayan Krishna Joshi
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Not run:
# real time stock quote for invalid stock symbol JOSHI; issues an error with
# message nepse_real('JOSHI')
# real time stock quote for valid stock symbol HBL; if traded returns data frame
# with non-NA row
nepse_real("HBL")
# real time stock quote for valid stock symbol HBL and invalid stock symbol
# JOSHI; issues warning for an invalid symbol; for a valid symbol HBL; if traded
# , returns a data frame with single row with non-NA values
# nepse_real(c('HBL','JOSHI'))
# real time stock quote for valid stock symbols HBL and ADBL; if traded returns
# data frame non-NA rows
nepse_real(c("HBL", "ADBL"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.