Improve BTC price tracking script #624
Reference in New Issue
Block a user
Delete Branch "feature/btc_price_tracker"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
make_requestwith retry logic for bothGET(price data) andPUT(upload) requestsawkfor floating-point average calculationget_price_datato return status codes and the main script to exit on failurejqto construct valid JSON payloadsset -e/-oto fail fast on any command errorsTested/running on
bitcoin-2.