Comments (4)
The problem relies on the URL
http://www4.bcb.gov.br/Download/fechamento/M%s.csv
Used inside the function get_valid_currency_list
This URL is completely inaccessible, as I can see with PS Test-NetConnection
.
There is a new API to get access to currency data. I will try, in the next days, to port rbcb to this new API.
For now, all we have to do is wait for BCB to reconnect its servers.
from rbcb.
Exemples:
t_1y = '2020-07-01'
t = '2021-07-01'
brl_usd <- get_currency('USD', t_1y, t) %>%
select(-bid) %>%
rename(brl_usd = 2)
brl_eur <- get_currency('EUR', t_1y, t) %>%
select(-bid) %>%
rename(brl_eur= 2)
brl_gbp <- get_currency('GBP', t_1y, t) %>%
select(-bid) %>%
rename(brl_libra = 2)
brl_cny <- get_currency('CNY', t_1y , t) %>%
select(-bid) %>%
rename(brl_cny = 2)
from rbcb.
With reprex:
library(dplyr, warn.conflicts = FALSE)
library(rbcb)
t_1y = '2020-07-01'
t = '2021-07-01'
brl_usd <- get_currency('USD', t_1y, t) %>%
select(-bid) %>%
rename(brl_usd = 2)
#> Error in curl::curl_fetch_memory(url, handle = handle): Recv failure: Connection was reset
brl_eur <- get_currency('EUR', t_1y, t) %>%
select(-bid) %>%
rename(brl_eur= 2)
#> Error in curl::curl_fetch_memory(url, handle = handle): Recv failure: Connection was reset
brl_gbp <- get_currency('GBP', t_1y, t) %>%
select(-bid) %>%
rename(brl_libra = 2)
#> Error in curl::curl_fetch_memory(url, handle = handle): Recv failure: Connection was reset
brl_cny <- get_currency('CNY', t_1y , t) %>%
select(-bid) %>%
rename(brl_cny = 2)
#> Error in curl::curl_fetch_memory(url, handle = handle): Recv failure: Connection was reset
Created on 2021-07-02 by the reprex package (v2.0.0)
from rbcb.
It seems the problem happens in rbcb:::http_getter()
.
from rbcb.
Related Issues (20)
- Error in get_currency HOT 2
- Problem on get_annual_market_expectations HOT 3
- Indic "Taxa de câmbio" is not avaliable HOT 4
- Unable to get monthly market expectations HOT 1
- Error in 'get_annual_market_expectations' HOT 11
- Timeout Connection
- Error on Installation: Unable to Collate and Parse HOT 2
- Error when installing from devtools::install_github() HOT 2
- Problema ao puxar a Selic HOT 2
- Mudança Expectativas de Mercado - Selic HOT 5
- start_date and end_date arguments
- Implement pkgdown HOT 1
- rbcb aliases
- Implement cache HOT 1
- Implement OData interface
- Examples
- Erro eventual ao usar função get_series() HOT 4
- indic <- c("PIB Total", "Fiscal") HOT 1
- Issue BCB API Request Error 500 HOT 1
- Importing quarterly data as ts HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rbcb.