bolsec

Created by: Alvaro I. Tapia


knitr::include_graphics(“inst/images/logo.png”) {width=200px}

Introduction

The bolsec package enable users by providing daily updated financial data from securities traded on the Bolivian Security Exchange, commonly known as Bolsa Boliviana de Valores. These traded securities encompass a diverse range of assets, including instruments of varied prices and fixed-income options like corporate bonds and fixed-term deposits. With a comprehensive package comprising four distinct functions, users can effortlessly retrieve and analyze data in various formats. From listings to detailed statistical analysis, these functions enable users to stay informed and gain valuable insights into the dynamic Bolivian financial market. The data source for this package is the official website of the Bolivian Security Exchange (www.bbv.com.bo). To get started, simply install the bolsec package from CRAN and load it into your R environment.

library(bolsec)

Other Libraries:

library(dplyr)
#> 
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#> 
#>     filter, lag
#> The following objects are masked from 'package:base':
#> 
#>     intersect, setdiff, setequal, union
library(rvest)
library(formattable)

Function 1: import_data

x <- import_data()
#> Importing data...
#> Data imported successfully.

By calling this primary function without requiring any arguments, users can obtain the data frame containing securities with the highest daily price variations traded in the Bolivian Securities Market. For example, the function can be assigned to a variable, such as “x”, to facilitate the application of the three additional functions for data snapshotting and other data manipulation purposes.

Function 2: get_graph

get_graph(x)

#> NULL

By using the get_graph function with a defined variable (e.g., x), users can obtain a scatter plot that visualizes the securities with the largest daily price variations in the Bolivian Securities Market. The plot shows the relationship between the x-axis (%RATE) and the y-axis (%VAR.) using a regression line, highlighting the correlation between the data points. The plot also includes labels for each data point, indicating the ISSUER NAME and providing additional context. The correlation coefficient, displayed in red, gives an overall measure of the strength of the relationship.

Function 3: get_list

get_list(x)
List of securities that show the largest positive and negative price variations during the day in the Bolivian Securities Exchange.
TICKER SYMBOL ISSUER NAME PRICE %RATE %VAR.
BECN01800417 Banco Económico S.A. 1,669,267.01 1.00 14.75
BNBN00179018 Banco Nacional de Bolivia S.A. 573,300.00 1.00 14.66
BMEN10930220 Mercantil Santa Cruz S.A. 1,028,400.00 1.00 14.27
FEFN26291016 Banco PyME Ecofuturo S.A. 630,860.01 1.00 6.40
FEFN26291116 Banco PyME Ecofuturo S.A. 630,860.01 1.00 6.40
FEFN30408723 Banco PyME Ecofuturo S.A. 500,000.00 1.00 6.38
FEFN30408823 Banco PyME Ecofuturo S.A. 500,000.00 1.00 6.38
FEFN26764216 Banco PyME Ecofuturo S.A. 630,860.01 1.00 6.15
FEFN26291416 Banco PyME Ecofuturo S.A. 630,860.01 1.00 6.12
FEFN26291516 Banco PyME Ecofuturo S.A. 630,860.01 1.00 6.12
CJNN08100322 Coop. Jesús Nazareno R.L. 31,616.27 6.57 5.37
BMEN10930220 Mercantil Santa Cruz S.A. 1,358,786.05 0.75 4.70
FIEN70805922 BANCO FIE S.A. 1,136,880.37 0.70 3.57
FIEN70805922 BANCO FIE S.A. 827,700.00 1.00 3.46
BNBN10963718 Banco Nacional de Bolivia S.A. 836,355.88 0.89 3.24
BNBN00194219 Banco Nacional de Bolivia S.A. 2,288,913.34 4.00 2.09
BNBN00194319 Banco Nacional de Bolivia S.A. 2,288,913.34 4.00 2.09
BMEN14404722 Mercantil Santa Cruz S.A. 2,039,700.00 1.00 1.99
BMEN14404822 Mercantil Santa Cruz S.A. 2,039,700.00 1.00 1.99
BECN01800417 Banco Económico S.A. 1,481,300.00 3.60 0.84
FEFN30418123 Banco PyME Ecofuturo S.A. 1,000,000.00 1.00 -0.25
IDIN00163022 DIACONÍA FRIF-IFD 1,045,526.80 4.00 -0.41
IDIN00162922 DIACONÍA FRIF-IFD 1,045,526.80 4.00 -0.41
IDIN00162822 DIACONÍA FRIF-IFD 1,045,526.80 4.00 -0.41
IDIN00162722 DIACONÍA FRIF-IFD 1,045,526.80 4.00 -0.41
IDIN00162622 DIACONÍA FRIF-IFD 1,045,526.80 4.00 -0.41
BMEN14404822 Mercantil Santa Cruz S.A. 2,624,434.92 0.75 -0.46
BMEN14404722 Mercantil Santa Cruz S.A. 2,624,434.92 0.75 -0.46
BUNN41872721 Banco Unión S.A. 4,259,775.58 4.00 -0.47
SOF-N1B-22 Sofía Ltda. 1,006.70 5.83 -0.80
BME-4-N2U-22 Mercantil Santa Cruz S.A. 10,000.00 3.60 -0.99
BMEN00560515 Mercantil Santa Cruz S.A. 10,486,413.22 0.60 -2.14
BMEN15054922 Mercantil Santa Cruz S.A. 706,251.51 3.00 -5.34
BNBN00089716 Banco Nacional de Bolivia S.A. 684,900.00 1.00 -14.46
BNL-3-E3U-21 BNB Leasing S.A. 506.32 0.95 -50.76

By using the get_list function with a defined variable (e.g., x), users can obtain a comprehensive list of the securities traded in the Bolivian Securities Market with the largest daily price variations. This list provides detailed characteristics of each security, including the TICKER SYMBOL, ISSUER NAME, PRICE, %RATE, and %VAR. The information is presented in a visually appealing image format, ensuring easy comprehension and accessibility.

Function 4: get_stats

get_stats(x)
Statistics of securities that show the largest positive and negative price variations during the day in the Bolivian Securities Exchange.
PRICE %RATE %VAR.
Mean 1410871.13 2.142571 1.108286
Median 1028400.00 1.000000 1.990000
St. Dev. 1813594.51 1.703236 10.564390
Min. 506.32 0.600000 -50.760000
Max. 10486413.22 6.570000 14.750000

By using the get_stats function with a defined variable (e.g., x), users can obtain a descriptive statistics table that presents key statistical values for all securities with the largest daily price variations traded in the Bolivian Securities Market. The table includes essential summary statistics such as the mean, median, standard deviation, minimum, and maximum values for variables like PRICE, %RATE, and %VAR. The information is presented in a visually appealing image format, ensuring easy comprehension and accessibility.