nepse_symbols_lookup: Nepal Stock Exchange Stock Symbols Lookup

Description Usage Arguments Details Value Author(s) References Examples

View source: R/nepse_symbols_lookup.R

Description

nepse_symbols_lookup returns details for stock symbols.

Usage

1

Arguments

symbols

a character vector specifying the names of each stock symbol to be loaded

Details

The nepse_symbols_lookup returns the name of the company listed in Nepal Stock Exchange , stock type of a listed company (ordinary share or non-ordinary share), stock id of the company listed in the NEPSE, and international securities identification number (isin) for the valid stock symbol of the company listed in the NEPSE. For an invalid stock symbol, it stops with an error. Stock symbols, stock types, and stock ids are from http://www.nepalstock.com.np/ and isin is from http://www.cdscnp.com/. Note that there are some missings for isin, as some companies still have not obtained it.

Value

nepse_symbols_lookup will return the object of class dataframe with 5 variables: company_name, stock_type, stock_symbol, stock_id, and isin,

Author(s)

Nayan Krishna Joshi

References

http://www.nepalstock.com.np/, http://www.cdscnp.com/

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
# name of company, stock_type, stock id, and isin for an invalid stock symbol
# JOSHI; issues an error with message nepse_symbols_lookup('JOSHI')

# name of company, stock_type, stock id, and isin for a valid stock symbol HBL;
# issues a non-NA dataframe
nepse_symbols_lookup("HBL")

# name of company,stock_type, stock id, and isin for an invalid stock symbol
# JOSHI and a valid stock symbol HBL; issues a non-NA dataframe for a valid stock
# symbol HBL with warning for an invalid stock symbol JOSHI.
# nepse_symbols_lookup(c('JOSHI','HBL'))

## End(Not run)

nayanj/NPdata documentation built on May 23, 2019, 12:24 p.m.