Skip to content

Instantly share code, notes, and snippets.

@wilsonfreitas
Created January 14, 2024 08:43
Show Gist options
  • Save wilsonfreitas/c971c11c4e481841f49db3710dc96006 to your computer and use it in GitHub Desktop.
Save wilsonfreitas/c971c11c4e481841f49db3710dc96006 to your computer and use it in GitHub Desktop.
Download de curvas da B3 utilizando os códigos de curvas

Download de curvas da B3

library(rb3)

fname <- download_marketdata("TaxasReferenciais",
                             refdate = as.Date("2024-01-12"),
                             curve_name = "TR")
df <- read_marketdata(fname, "TaxasReferenciais", TRUE)

O argumento curve_name usa os códigos do atributo value da tag option.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment