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.
RStudio has taken steps to block access from within RStudio Cloud and shinyapps.io to internet resources that are known to be associated with cryptocurrency mining activities. This is part of our ongoing effort to prevent abuse of our platforms from cryptocurrency mining. I understand that your specific use case might not be specifically related to mining, in which case we would be happy to hear about what you're trying to do, though I can't guarantee that we will make any changes to our policy at this time. If you have a paid subscription to shinyapps.io or RStudio Cloud I suggest opening a ticket with support to provide more information.
I fully understand activities to prevent abuse of RStudio platforms. However, obtaining cryptocurrency time series data via the Binance exchange API is far from cryptocurrency mining activity.
I have created two shiny applications that serve me exclusively for backtesting strategies and for the needs of my users. However, to run applications, I must obtain data from the Binance Exchange.
Is it possible to allow data flow only through the Binance API?