daroczig / binancer

An R client to the Public Rest API for Binance.
https://daroczig.github.io/binancer
54 stars 57 forks source link

Error using Binance.us API #36

Open rflsierra opened 1 year ago

rflsierra commented 1 year ago

Hi, I used this library before without issues, but lately, I have encountered some issues. For example, when I run binance_ping(), I get:

_Error in if (BINANCEWEIGHT > 1159) { : argument is of length zero

At some point, I got a message related to eligibility, and it took me to the binance.com site (I haven't been able to replicate it, sorry), which made me think it is a binance.us vs binance.com issue.

I tried modifying the code locally and changing the API URL to api.binance.us, and now I get a new error:

Error in config() : could not find function "config"

I assume there is something going on since binance.us started having issues. In any case, is there any guidance you can think of to correct this?

Thanks!