Git Product home page Git Product logo

Comments (4)

wilsonfreitas avatar wilsonfreitas commented on August 10, 2024 1

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.

image

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.

gabBelle avatar gabBelle commented on August 10, 2024

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.

Reckziegel avatar Reckziegel commented on August 10, 2024

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.

Reckziegel avatar Reckziegel commented on August 10, 2024

It seems the problem happens in rbcb:::http_getter().

from rbcb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.