View source: R/sat_active_risk.R
get_and_check_tickers | R Documentation |
Get tickers of available securities in the specific asset class, and check which securities in the instruments dataframe are valid for the asset class
get_and_check_tickers(instruments_df, type = c("price", "duration"))
instruments_df |
A dataframe containing the instruments to search the tickers for. Dataframe must have the 'asset_class' and 'identifier' columns |
type |
A character which can be 'price' or 'duration', which indicates whether to return tickers for price or duration. Defaults to 'price' |
A dataframe with the matched instruments from instruments_df and their corresponding tickers
inst <- data.frame(asset_class = c("equity", "ilb", "govt"), identifier = c("spx", "germany_ilb_5y", "us_govt_10y"), stringsAsFactors = FALSE) get_and_check_tickers(inst)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.