Skip to content

This is a Shiny web application that allows you to analyze stock data for Brazilian assets. The application retrieves data from Yahoo Finance and provides interactive charts for the selected asset.

Notifications You must be signed in to change notification settings

melogabriel/shiny_webapp_finances

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WebApp Ativos Brazil

This is a Shiny web application that allows you to analyze stock data for Brazilian assets. The application retrieves data from Yahoo Finance and provides interactive charts for the selected asset.

Dependencies

The following packages are required to run the application:

  • shiny
  • quantmod
  • readxl

Make sure to install these packages before running the application.

Installation

  1. Clone the repository or download the code files.

  2. Ensure that the required dependencies are installed.

  3. Run the following code in R to launch the application:

library(shiny)
library(quantmod)
library(readxl)
source("server.R")

# Load the stock ticker data
YahooTickersBrazil <- read_excel("YahooTickersBrazil.xlsx")

# Define the user interface (UI)
ui <- fluidPage(
  titlePanel("WebApp Ativos Brasil"),
  sidebarLayout(
    sidebarPanel(
      helpText("Selecione o ativo que deseja analisar. A informação será coletada do Yahoo Finanças."),
      selectInput("symb", 
                  label = "Symbol", 
                  choices = unique(YahooTickersBrazil$Symbol),
                  selected = "PETR4.SA"),
      
      dateRangeInput("dates",
                     "Date range",
                     start = "2020-01-01",
                     end = as.character(Sys.Date())),
      HTML("
        <h6>Autor: <a href='https://github.com/melogabriel' target='_blank'>github.com/melogabriel</a></h6>
        <h6>e-mail: <a href='mailto:[email protected]'>[email protected]</a></h6>
      ")
    ),
    
    mainPanel(plotOutput("plot"))
  )
)

# Run the app
shinyApp(ui, server)

Usage

  • Select the desired asset from the dropdown list.
  • Specify the date range for the data.
  • The application will retrieve the stock data and display an interactive chart.

Author

Feel free to contact the author for any questions or feedback.

About

This is a Shiny web application that allows you to analyze stock data for Brazilian assets. The application retrieves data from Yahoo Finance and provides interactive charts for the selected asset.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages