Skip to content

v0.1.32 - Crypto worker batch optimization

Choose a tag to compare

@quanhua92 quanhua92 released this 20 Nov 01:28
· 742 commits to main since this release

Fixed

  • Crypto worker was making redundant API calls when using alternative API source
  • Now makes 1 batch call per interval instead of N individual calls per crypto
  • CryptoCompare path unchanged (no batch API available)

Changed

  • Added batch fetch methods in CryptoFetcher for alternative API
  • Modified CryptoSync to detect API source and use batch fetching when available

Configuration

Same as v0.1.31 - set these environment variables to use alternative API:

export CRYPTO_WORKER_TARGET_URL="http://your-server"
export CRYPTO_WORKER_TARGET_HOST="api.example.com"  # optional