Closed PaulineNimo closed 2 years ago
Try to encapsulate duplicate code in the functions to separate helper functions to make changes better managable.
- Check that every function with start time and end time will be start_time and end_time optional (start_time=NA, end_time=NA).
This should solve the issue: https://github.com/andreskull/rFTX/issues/5
- Check that every function with start time and end time will be start_time and end_time optional (start_time=NA, end_time=NA).
This should solve the issue: #5
Actually, it does not solve the issue with this function. I made the change locally and the result is the following:
> ftx_my_spot_borrow_history(key, secret, start_time = now() - days(200), end_time = now())
2021-11-02 21:03:37 ERROR::Not logged in
Error in x[[1]] : subscript out of bounds
In addition: Warning message:
In sprintf("Not logged in", query = "1618596217.50369,1635879817.5057") :
Error in x[[1]] : subscript out of bounds
Needs more investigations.