CFM (Casablanca Financial Market) is a R package that has been designed to simplify financial programming workflow with Casablanca stock exchange data.
Currently, it implements 5 mains functions:
get_stocks
: Returns a list of stock symbols available in Casablanca stock exchange.get_indexes
: Returns a list of all market indexes including MASI, MADEX...stock_data
: Returns historical prices for a given stock symbol during the specified date range.adjusted_data
: Same as stock_data
function but it includes also the adjusted prices.index_data
: Returns historical values for a given index during the specified date range.You can install this package from github using the following command:
```{r, eval=FALSE} devtools::install_github('blnash508/cfm', build_vignettes = TRUE) library(cfm)
## Documentation
A detailled documentation can be found in the package vignette. The following command can be used to launch the vignette:
```{r, eval=FALSE}
vignette('cfm_vignette', package = 'cfm')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.