Package 'casabourse'

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

Help Index


bySector

Description

It returns a table containing data by industry. It is a function without arguments.

Usage

bySector()

Value

data.frame

Examples

{R.utils::withTimeout(bySector(),timeout = 4)}

Daily data

Description

As its name suggests, this function returns the daily prices of a security between two dates given by the user. It receives three arguments.

Usage

daily.data(ticker = "ATW", from = "28-12-2020", to = "11-08-2022")

Arguments

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 ”.

Value

data frame

Examples

daily.data(ticker = "ATW", from = "01-01-2016", to = "01-01-2021")

Get info

Description

This function allows you to get quick information about a company

Usage

get_info(ticker)

Arguments

ticker

ticker that matches the title that interests us (to remind you know all the tickers of the securities through the tickers() function)

Value

data frame

Examples

{R.utils::withTimeout(get_info("adh"),timeout = 4)}

instruments

Description

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.

Usage

instruments()

Value

data.frame

Examples

R.utils::withTimeout(instruments(),timeout = 4)

masi.data

Description

This is a function for downloading data from the MASI index. It returns a given table.

Usage

masi.data()

Value

data.frame

Examples

## Not run: masi.data()

MSI20

Description

MSI20

Usage

msi20.data()

Value

returns a data frame of the MSI20 index

Examples

msi20.data()

tickers

Description

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.

Usage

tickers()

Value

data.frame

Examples

tickers()

today.market

Description

is without argument and returns the current price of financial instruments as well as their variations, their opening prices, their max etc.

Usage

today.market()

Value

data.frame

Examples

## Not run: today.market()

today.prizelist

Description

It receives ” up ” or ” down ” respectively and returns a table prizelist of rising or falling prices of market instruments

Usage

today.prizelist(up_or_down)

Arguments

up_or_down

rise or fall prize list

Value

data.frame

Examples

## Not run: today.prizelist('up')

today.transactions

Description

It allows you to obtain a table of transactions for the day. It is a function without arguments.

Usage

today.transactions()

Value

data.frame

Examples

## Not run: today.transactions()