-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
listAccounts() returns getTime(), sometimes #368
Comments
Troubleshooting so far shows that this occurs at times when rate limiting is active. |
Hi @alexander-hagen, I guess that there is a call to |
For every REST call, there also is a request to GET /time. I was thinking to get rid of skew altogether as CoinbasePro permits requests with up to 30 seconds time discrepancy. Alternatively, periodically updating is perhaps a better alternative. |
Let's do the caching approach: We fetch the skew once and when Coinbase Pro reports that the time is out of sync, we will update it. |
I now also have a case where it happens while there no rate limiting. It still may be related to the GET /time though. I will do some tests without the GET /time and let you know |
Hi @alexander-hagen, I built caching for the time skew. Can you please try coinbase-pro-node@2.16.4? |
OK, let me have a try. I have been running with local time only for the past past week and didn't have any the issue since then:
|
Looks good. Great job! |
Usually, listAccounts() works fine and returns the balances of the requested account.
Sometimes it returns getTime().
Newbalances:{"iso":"2021-01-15T09:22:55.205Z","epoch":1610702575.205}
The text was updated successfully, but these errors were encountered: