Open wilsonfreitas opened 6 years ago
rbcb_get implemented for SGS API (see 232ee7ea2dc5a57bc3d9c966d226cda0a602ca4e).
See sgs.R
.
rbcb_get returns a tidy tibble for SGS data.
It is necessary to create a way to transform this tidy tibble into the other used formats like xts and ts.
x <- sgs(IBOVESPA = 7, USD = 1)
df <- rbcb_get(x, from, to)
rbcb_transform(x, df, to = "xts")
Currently it has 2 functions
get_series
: for SGS seriesget_currency
: for currency APISince it has plans to have new interfaces implemented, a interesting approach is unify all interfaces into one single function
This function might be a generic and the objects represent the desired data. Example:
If in the future we have a search, the search could return these objects