BlockchainCommons / BlockchainCommons/spotbit

Failing API calls (spotbit.info/api is offline): Update CCXT and improve error handling

Open
#105 0 comments 0 reactions 1 assignee Claimed by @nochiel View on GitHub
bug spotbit.info API is offline
Dominant language
CSS
Stars
36
Forks
17
PR merge metrics
No merged PRs in 30d

Description

The https://spotbit.info API is offline.

As noted in https://github.com/BlockchainCommons/spotbit/issues/103#issuecomment-1726652681, Spotbit is currently crashing because API calls to exchanges are continuously failing.

The result is that either API calls fail immediately or, when attempting to get results for a range of dates, Spotbit keeps trying until it runs out of memory. The system then kills Spotbit. Restarting Spotbit then causes the same error.

We should:
- Update to the latest CCXT which hopefully reflects whatever changes have occurred with exchange APIs.
- Improve error handling so that Spotbit immediately stops retrying when unknown errors occur. That is, if an error we don't *specifically* handle occurs then Spotbit should always fail and report that error instead of attempting other requests.
- Blacklist failing exchanges and report them for the Spotbit administrator to manually verify the bug.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.