Closed YsoSirius closed 6 years ago
Unfortunately, I cannot reproduce this problem :(
Are you using the most recent dev version of the package? Can you reproduce this after installing the package and in a clean R session (eg not via load_all
or similar). Also, can you please check if the time is in sync on your computer?
Yes, i was using the most recent version and although I was using clear sessions, the problem appeared several times.
But now on a different computer, I am also not able to reproduce it. It works fine on this one.
If it was my pc being out of sync, this issue can be closed. Ill try it again and keep you updated.
Thanks, let me know what you find
I cannot reproduce the error on the original PC. Everything works as expected. Obviously it was just a temporary problem.
Thanks a lot!
I would like to add some functionality to the package, but somehow I'm only allowed to make 1 request to the API. I have to restart R in order to access it again.
The binance_balances function obviously gets stuck with the binance_account function. It throws the following timestamp error:
binance_account()
Actually, I found some solutions by analyzing it :) If you include a
Sys.sleep(2)
just before the query() in the binance_query function, it runs! But makes the code slower. If you adapt the timestamp function to this, it runs faster.timestamp <- function() { as.character(round(as.numeric(Sys.time()) * 1e3)-2000) }
The code runs obviously too fast and is ahead of time ;)