stocks_metadata: Get Stocks Names and Associated HTML Values

View source: R/stocks_metadata.R

stocks_metadataR Documentation

Get Stocks Names and Associated HTML Values

Description

This helper function extracts names and HTML values (options values) of all listed stocks in Casablanca Stock Exchange.

Usage

stocks_metadata(request = NULL, with_values = TRUE)

Arguments

request

The object returned by an HTTP GET request. NULL by default.

with_values

Boolean vector of length one indicating if the HTML values should be returned or not. TRUE by default.

Value

A character vector containing all listed stocks. If with_value is true, a named vector of HTML values is returned.

Examples

## Not run: stocks_metadata()
## Not run: stocks_metadata(with_values = FALSE)
## Not run: stocks_metadata(get_request, FALSE)


bilnash/CSE documentation built on Oct. 1, 2024, 4:17 p.m.