rb3

A bunch of downloaders and parsers for data delivered from B3

https://github.com/ropensci/rb3

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (3.6%) to scientific vocabulary

Keywords

brazil exchange-data finance financial-data financial-services market-data r
Last synced: 6 months ago · JSON representation

Repository

A bunch of downloaders and parsers for data delivered from B3

Basic Info
Statistics
  • Stars: 80
  • Watchers: 12
  • Forks: 34
  • Open Issues: 24
  • Releases: 6
Topics
brazil exchange-data finance financial-data financial-services market-data r
Created about 11 years ago · Last pushed 7 months ago
Metadata Files
Readme Changelog Contributing License Codemeta

README.R

## ----eval=TRUE-----------------------------------------------------------------------------------------------------------------------------
options(rb3.cachedir = tempdir())
devtools::load_all(".")
library(tidyverse)
library(bizdays)

# Download yield curve data for specific dates
fetch_marketdata("b3-reference-rates",
  refdate = preceding("2024-01-31", "Brazil/B3"),
  curve_name = "PRE"
)
# Download yearly COTAHIST files
fetch_marketdata("b3-cotahist-yearly", year = 2023)

# Download futures data
fetch_marketdata("b3-futures-settlement-prices", refdate = preceding("2024-01-31", "Brazil/B3"))

ch <- cotahist_get("yearly")
# Filter for stocks
eq <- ch |>
  filter(year(refdate) == 2023) |>
  cotahist_filter_equity() |>
  collect()

# Get top 10 most traded stocks
symbols <- eq |>
  group_by(symbol) |>
  summarise(volume = sum(volume)) |>
  arrange(desc(volume)) |>
  head(10) |>
  collect() |>
  pull(symbol)

# Get Brazilian nominal yield curve (PRE)
yc_data <- yc_brl_get() |>
  filter(refdate == "2024-01-31") |>
  collect()

# Get futures settlement prices
futures_data <- futures_get() |>
  filter(commodity == "DI1") |>
  collect()

# save datasets: ch, eq, symbols, yc_data, futures_data to file README.RData
save(
  eq,
  yc_data,
  futures_data,
  file = "README.RData"
)

Owner

  • Name: rOpenSci
  • Login: ropensci
  • Kind: organization
  • Email: info@ropensci.org
  • Location: Berkeley, CA

CodeMeta (codemeta.json)

{
  "@context": "https://doi.org/10.5063/schema/codemeta-2.0",
  "@type": "SoftwareSourceCode",
  "identifier": "rb3",
  "description": "Download and parse public files released by B3 and convert them into useful formats and data structures common to data analysis practitioners.",
  "name": "rb3: Download and Parse Public Data Released by B3 Exchange",
  "relatedLink": [
    "http://wilsonfreitas.github.io/rb3/",
    "https://CRAN.R-project.org/package=rb3"
  ],
  "codeRepository": "https://github.com/wilsonfreitas/rb3",
  "issueTracker": "https://github.com/wilsonfreitas/rb3/issues",
  "license": "https://spdx.org/licenses/MIT",
  "version": "0.0.3",
  "programmingLanguage": {
    "@type": "ComputerLanguage",
    "name": "R",
    "url": "https://r-project.org"
  },
  "runtimePlatform": "R version 4.2.0 (2022-04-22)",
  "provider": {
    "@id": "https://cran.r-project.org",
    "@type": "Organization",
    "name": "Comprehensive R Archive Network (CRAN)",
    "url": "https://cran.r-project.org"
  },
  "author": [
    {
      "@type": "Person",
      "givenName": "Wilson",
      "familyName": "Freitas",
      "email": "wilson.freitas@gmail.com"
    },
    {
      "@type": "Person",
      "givenName": "Marcelo",
      "familyName": "Perlin",
      "email": "marceloperlin@gmail.com"
    }
  ],
  "maintainer": [
    {
      "@type": "Person",
      "givenName": "Wilson",
      "familyName": "Freitas",
      "email": "wilson.freitas@gmail.com"
    }
  ],
  "softwareSuggestions": [
    {
      "@type": "SoftwareApplication",
      "identifier": "testthat",
      "name": "testthat",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=testthat"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "knitr",
      "name": "knitr",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=knitr"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "DT",
      "name": "DT",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=DT"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "miniUI",
      "name": "miniUI",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=miniUI"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "shiny",
      "name": "shiny",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=shiny"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "xtable",
      "name": "xtable",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=xtable"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "rmarkdown",
      "name": "rmarkdown",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=rmarkdown"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "ggplot2",
      "name": "ggplot2",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=ggplot2"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "covr",
      "name": "covr",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=covr"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "scales",
      "name": "scales",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=scales"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "magrittr",
      "name": "magrittr",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=magrittr"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "tibble",
      "name": "tibble",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=tibble"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "tidyr",
      "name": "tidyr",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=tidyr"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "fixedincome",
      "name": "fixedincome",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=fixedincome"
    }
  ],
  "softwareRequirements": {
    "1": {
      "@type": "SoftwareApplication",
      "identifier": "R",
      "name": "R",
      "version": ">= 4.1.0"
    },
    "2": {
      "@type": "SoftwareApplication",
      "identifier": "bizdays",
      "name": "bizdays",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=bizdays"
    },
    "3": {
      "@type": "SoftwareApplication",
      "identifier": "stringr",
      "name": "stringr",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=stringr"
    },
    "4": {
      "@type": "SoftwareApplication",
      "identifier": "proto",
      "name": "proto",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=proto"
    },
    "5": {
      "@type": "SoftwareApplication",
      "identifier": "cli",
      "name": "cli",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=cli"
    },
    "6": {
      "@type": "SoftwareApplication",
      "identifier": "readr",
      "name": "readr",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=readr"
    },
    "7": {
      "@type": "SoftwareApplication",
      "identifier": "dplyr",
      "name": "dplyr",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=dplyr"
    },
    "8": {
      "@type": "SoftwareApplication",
      "identifier": "rvest",
      "name": "rvest",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=rvest"
    },
    "9": {
      "@type": "SoftwareApplication",
      "identifier": "httr",
      "name": "httr",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=httr"
    },
    "10": {
      "@type": "SoftwareApplication",
      "identifier": "jsonlite",
      "name": "jsonlite",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=jsonlite"
    },
    "11": {
      "@type": "SoftwareApplication",
      "identifier": "purrr",
      "name": "purrr",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=purrr"
    },
    "12": {
      "@type": "SoftwareApplication",
      "identifier": "ascii",
      "name": "ascii",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=ascii"
    },
    "13": {
      "@type": "SoftwareApplication",
      "identifier": "rlang",
      "name": "rlang",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=rlang"
    },
    "14": {
      "@type": "SoftwareApplication",
      "identifier": "methods",
      "name": "methods"
    },
    "15": {
      "@type": "SoftwareApplication",
      "identifier": "yaml",
      "name": "yaml",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=yaml"
    },
    "16": {
      "@type": "SoftwareApplication",
      "identifier": "digest",
      "name": "digest",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=digest"
    },
    "17": {
      "@type": "SoftwareApplication",
      "identifier": "base64enc",
      "name": "base64enc",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=base64enc"
    },
    "SystemRequirements": null
  },
  "fileSize": "2493.521KB",
  "citation": [
    {
      "@type": "SoftwareSourceCode",
      "datePublished": "2022",
      "author": [
        {
          "@type": "Person",
          "givenName": "Wilson",
          "familyName": "Freitas"
        },
        {
          "@type": "Person",
          "givenName": "Marcelo",
          "familyName": "Perlin"
        }
      ],
      "name": "Download and Parse Public Data Released by B3 Exchange",
      "url": "https://github.com/wilsonfreitas/rb3",
      "description": "R package version 0.0.1"
    }
  ],
  "releaseNotes": "https://github.com/wilsonfreitas/rb3/blob/master/NEWS.md",
  "readme": "https://github.com/wilsonfreitas/rb3/blob/main/README.md",
  "contIntegration": [
    "https://app.codecov.io/gh/wilsonfreitas/rb3?branch=main",
    "https://github.com/wilsonfreitas/rb3/actions"
  ],
  "developmentStatus": "https://www.repostatus.org/#active",
  "keywords": [
    "r",
    "market-data",
    "finance",
    "financial-data",
    "financial-services",
    "exchange-data",
    "brazil"
  ]
}

GitHub Events

Total
  • Issues event: 42
  • Watch event: 8
  • Issue comment event: 10
  • Push event: 36
  • Pull request event: 35
  • Fork event: 4
Last Year
  • Issues event: 42
  • Watch event: 8
  • Issue comment event: 10
  • Push event: 36
  • Pull request event: 35
  • Fork event: 4

Committers

Last synced: about 2 years ago

All Time
  • Total Commits: 400
  • Total Committers: 4
  • Avg Commits per committer: 100.0
  • Development Distribution Score (DDS): 0.2
Past Year
  • Commits: 40
  • Committers: 2
  • Avg Commits per committer: 20.0
  • Development Distribution Score (DDS): 0.025
Top Committers
Name Email Commits
wilsonfreitas w****s@g****m 320
WILSON NASCIMENTO DE FREITAS W****F@m****r 50
msperlin m****n@g****m 29
Wilson Freitas w****s@q****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 76
  • Total pull requests: 60
  • Average time to close issues: 11 months
  • Average time to close pull requests: 3 days
  • Total issue authors: 14
  • Total pull request authors: 4
  • Average comments per issue: 1.51
  • Average comments per pull request: 0.05
  • Merged pull requests: 52
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 33
  • Pull requests: 37
  • Average time to close issues: 4 days
  • Average time to close pull requests: 5 days
  • Issue authors: 6
  • Pull request authors: 3
  • Average comments per issue: 0.36
  • Average comments per pull request: 0.0
  • Merged pull requests: 30
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • wilsonfreitas (56)
  • Lvitor (3)
  • msperlin (3)
  • EvertonTLima (2)
  • k-marcelino (2)
  • anselmoaraujo (1)
  • GuilhermeStipp (1)
  • liviozanol (1)
  • FLAVIOMARTINS05 (1)
  • Valdsonmaia (1)
  • pmeno (1)
  • ronanalexand (1)
  • rafaelgouvea (1)
  • hugorteixeira (1)
Pull Request Authors
  • wilsonfreitas (48)
  • msperlin (8)
  • hugorteixeira (4)
  • PedroDnT (1)
Top Labels
Issue Labels
enhancement (4) bug (4)
Pull Request Labels

Packages

  • Total packages: 2
  • Total downloads:
    • cran 650 last-month
  • Total dependent packages: 1
    (may contain duplicates)
  • Total dependent repositories: 1
    (may contain duplicates)
  • Total versions: 19
  • Total maintainers: 1
proxy.golang.org: github.com/ropensci/rb3
  • Versions: 6
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 5.4%
Average: 5.6%
Dependent repos count: 5.8%
Last synced: 6 months ago
cran.r-project.org: rb3

Download and Parse Public Data Released by B3 Exchange

  • Versions: 13
  • Dependent Packages: 1
  • Dependent Repositories: 1
  • Downloads: 650 Last month
Rankings
Forks count: 3.1%
Stargazers count: 5.6%
Average: 16.4%
Dependent packages count: 18.1%
Dependent repos count: 23.8%
Downloads: 31.5%
Maintainers (1)
Last synced: 6 months ago

Dependencies

DESCRIPTION cran
  • R >= 4.1.0 depends
  • XML * imports
  • ascii * imports
  • base64enc * imports
  • bizdays * imports
  • cli * imports
  • digest * imports
  • dplyr * imports
  • httr * imports
  • jsonlite * imports
  • methods * imports
  • proto * imports
  • purrr * imports
  • readr * imports
  • rlang * imports
  • rvest * imports
  • stringr * imports
  • yaml * imports
  • DT * suggests
  • covr * suggests
  • fixedincome * suggests
  • ggplot2 * suggests
  • knitr * suggests
  • magrittr * suggests
  • miniUI * suggests
  • rmarkdown * suggests
  • scales * suggests
  • shiny * suggests
  • testthat * suggests
  • tibble * suggests
  • tidyr * suggests
  • xtable * suggests
.github/workflows/check.yml actions
  • actions/cache v2 composite
  • actions/checkout v2 composite
  • actions/upload-artifact main composite
  • r-lib/actions/setup-pandoc v1 composite
  • r-lib/actions/setup-r v1 composite
.github/workflows/pkgdown.yaml actions
  • actions/checkout v2 composite
  • r-lib/actions/setup-pandoc v1 composite
  • r-lib/actions/setup-r v1 composite
  • r-lib/actions/setup-r-dependencies v1 composite
.github/workflows/test-coverage.yaml actions
  • actions/checkout v2 composite
  • r-lib/actions/setup-r v1 composite
  • r-lib/actions/setup-r-dependencies v1 composite