BRVM_get1 {BRVM}R Documentation

BRVM Get - Get BRVM stock exchange Ticker Data

Description

This function will get data from the Sikafinance exchange.

Usage

BRVM_get1(ticker = "BICC", Period = 0, from = Sys.Date() - 89, to = Sys.Date())

Arguments

ticker

A vector of ticker, like: c("BICC","XOM","SlbC", "BRvm10")

Period

Numeric number indicating time period. Valid entries are 0, 1, 5, 30, 91, and 365 representing respectively 'daily', 'one year', 'weekly', 'monthly', 'quarterly' and 'yearly'.

from

A quoted start date, ie. "2020-01-01" or "2020/01/01". The date must be in ymd format "YYYY-MM-DD" or "YYYY/MM/DD".

to

A quoted end date, ie. "2022-01-31" or "2022/01/31". The date must be in ymd format "YYYY-MM-DD" or "YYYY/MM/DD"

Details

This function will get data of the companies listed on the BVRM exchange through the sikafinance site. The function takes in a single parameter of ticker The function will auto-format the tickers you input into all upper case by using toupper()

Value

A tibble

Author(s)

Koffi Frederic SESSIE

See Also

https://www.sikafinance.com/

BRVM_ticker_desc(), BRVM_tickers(), BRVM_get(), BRVM_index_stock()

Other Data Retrieval: BRVM_bySector(), BRVM_cap(), BRVM_company_rank(), BRVM_get(), BRVM_index_stock(), BRVM_index(), BRVM_market_activity(), BRVM_plot(), BRVM_stock_market(), BRVM_ticker_desc(), company_cap(), company_country(), company_nbrank(), company_sector(), company_traded_val()

Examples


library(lubridate)
library(rlang)
library(httr2)
library(dplyr)
library(stringr)

symbols <- c("BiCc","XOM","SlbC")
data_tbl <- BRVM_get1(ticker = symbols)
data_tbl

#From three year ago to the present

BRVM_get1("ALL INDEXES", from = Sys.Date() - 252*3, to = Sys.Date())

BRVM_get1(ticker = "BRVMAG", from = "2010-01-04", to = "2022-01-04")

BRVM_get1("ALL", Period = 0, from = "2010-01-04", to = "2022-01-04"  ) #To get daily data

BRVM_get1("BrvmAS", Period = 1 ) # To get daily data for a whole year

BRVM_get1(c("BRVMPR", "BRVMAG"), Period = 5) # To get weekly data

BRVM_get1("BRVMAG", Period = 30 ) # To get monthly data

BRVM_get1("BRVMPR", Period = 91 ) # To get quaterly data

BRVM_get1(c("brvmtr", "BiCc", "BOAS"), Period = 365 ) # To get yearly data



[Package BRVM version 5.3.0 Index]