Hi everyone. I really appreciate this community and what you accomplished so far.
My problem is related with getting the data from the Binance exchange with the code that I found here: Binance API R GET Request - Stack Overflow. The code can be found below:
library(httr) GET( url = "https://api.binance.com", path = "api/v3/klines", query = list ( symbol = "LTCUSDT", interval = "3d" ) ) -> res content(res, as="parsed")
I get the following error message:
Error in curl::curl_fetch_memory(url, handle = handle) : Could not resolve host: api.binance.com.
However, this error only occurs when I use RStudio Cloud, and occurs on related Shiny applications that are hosted at https://www.shinyapps.io/. If I work on a local computer, everything is fine.
Can anyone help me clarify this problem, are there any new rules that I am not aware of between RStudio and getting data from the Binance Exchange?
Solving this problem is very important to me and I would really appreciate every response regarding this issue.
Thanks in advance.