mirror of
https://github.com/aljazceru/satshkd-vercel.git
synced 2025-12-17 05:04:24 +01:00
314478eb56d6dda37a6bde2e017c47d91c4b05f9
The price table was not displaying because of two issues: 1. The Bitfinex API was returning 403 errors, causing the entire get10yr() function to fail 2. The code was looking for exact date matches in weekly historical data Changes: - Add try-catch around API call with fallback to latest historical data - Replace exact date matching with closest-date algorithm to handle weekly data - Table now shows 10 years of historical price data with percent changes
EURSAT Historical Chart
for entertainment and educational purposes only.
For running on Vercel, note that it uses the vercel version of node which won't run anywhere else
bitfinex daily close data: https://www.investing.com/crypto/bitcoin/btc-usd-historical-data
cronjob is on github actions, see action.yml
Install
- use at least node 22+
git clone <repository-url>
cd <repository-directory>
npm install
node index.js
Description
Languages
Handlebars
49.5%
JavaScript
32.6%
CSS
13.8%
Python
4.1%