check_exchange: Helper functions

Description Usage Arguments Value Examples

Description

A function to validate the specified exchange value and get the exchange value if nothing is specified.

Usage

1
check_exchange(exchange = c("nse", "bse"), include_both = TRUE)

Arguments

exchange

The value to be validated. Defaults to c("nse", "bse")

include_both

Paramter to control whether to include "both" as an option for exchange or not. Defaults to TRUE

Value

The validated exchange value or en error if its not valid.

Examples

1
IndianStocksR::: check_exchange()

ilangurudev/IndianStocksR documentation built on May 12, 2019, 4:36 a.m.