Title: | Casablanca Stock Exchange Data |
---|---|
Description: | It provides real-time data from the Casablanca Stock Exchange. The objective is to facilitate access to data for all users of the R programming language. It includes a variety of data accessible just by function call. |
Authors: | Abdoul Oudouss Diakité [aut, cre] |
Maintainer: | Abdoul Oudouss Diakité <[email protected]> |
License: | GPL-2 |
Version: | 2.0.0 |
Built: | 2025-02-24 05:04:36 UTC |
Source: | https://github.com/aodiakite/casabourse |
It returns a table containing data by industry. It is a function without arguments.
bySector()
bySector()
data.frame
{R.utils::withTimeout(bySector(),timeout = 4)}
{R.utils::withTimeout(bySector(),timeout = 4)}
As its name suggests, this function returns the daily prices of a security between two dates given by the user. It receives three arguments.
daily.data(ticker = "ATW", from = "28-12-2020", to = "11-08-2022")
daily.data(ticker = "ATW", from = "28-12-2020", to = "11-08-2022")
ticker |
ticker that matches the title that interests us (to remind you know all the tickers of the securities through the tickers() function) |
from |
It represents the start date of data collection. This argument is of the type ” day-month-year ”. |
to |
It represents the date of stopping data collection. This argument is of the type ” day-month-year ”. |
data frame
daily.data(ticker = "ATW", from = "01-01-2016", to = "01-01-2021")
daily.data(ticker = "ATW", from = "01-01-2016", to = "01-01-2021")
This function allows you to get quick information about a company
get_info(ticker)
get_info(ticker)
ticker |
ticker that matches the title that interests us (to remind you know all the tickers of the securities through the tickers() function) |
data frame
{R.utils::withTimeout(get_info("adh"),timeout = 4)}
{R.utils::withTimeout(get_info("adh"),timeout = 4)}
It is without argument and gives us information on the financial instruments of the market, such as the ISIN code, the sub-fund, the number of securities etc.
instruments()
instruments()
data.frame
R.utils::withTimeout(instruments(),timeout = 4)
R.utils::withTimeout(instruments(),timeout = 4)
This is a function for downloading data from the MASI index. It returns a given table.
masi.data()
masi.data()
data.frame
## Not run: masi.data()
## Not run: masi.data()
MSI20
msi20.data()
msi20.data()
returns a data frame of the MSI20 index
msi20.data()
msi20.data()
This function takes no arguments and returns a data table associating each company with a ticker. It is important to visualize the tickers. Indeed, they are used by the other functions of the package to represent the companies to which they correspond.
tickers()
tickers()
data.frame
tickers()
tickers()
is without argument and returns the current price of financial instruments as well as their variations, their opening prices, their max etc.
today.market()
today.market()
data.frame
## Not run: today.market()
## Not run: today.market()
It receives ” up ” or ” down ” respectively and returns a table prizelist of rising or falling prices of market instruments
today.prizelist(up_or_down)
today.prizelist(up_or_down)
up_or_down |
rise or fall prize list |
data.frame
## Not run: today.prizelist('up')
## Not run: today.prizelist('up')
It allows you to obtain a table of transactions for the day. It is a function without arguments.
today.transactions()
today.transactions()
data.frame
## Not run: today.transactions()
## Not run: today.transactions()