jstnryan / helium-reward-log

A simple utility to retrieve HNT reward records, and export as CSV, generally for tax purposes
https://jstnryan.com/helium/
12 stars 6 forks source link

Create request queue for all API requests #5

Closed jstnryan closed 2 years ago

jstnryan commented 2 years ago

The Helium API really doesn't like concurrent requests from the same host, so this change creates a XMLHttpRequest queue (very similar to the one created for Binance requests) which processes one request at a time, and pauses for a random time (0 to 10 seconds) if the server responds with a 429 error.

Version bump to "1.3.0"