type: decision
status: active
timestamp: 2026-06-20
tags: [decisions, architecture, data-api, weather, finance, open-meteo, alpha-vantage]

Data APIs — Open-Meteo (weather) + Alpha Vantage (finance)

Open-Meteo for weather, Alpha Vantage for finance / market data. Both free, no card. Both fronted by the umbrella Hono Worker with KV-backed cache (1h TTL on weather, 1d TTL on finance EOD) per the CF Worker quota mitigation playbook.'

Data APIs — Open-Meteo (weather) + Alpha Vantage (finance)

Decision

The family adopts two read-only external data APIs:

Both are fronted by the umbrella Hono Worker at api.oriz.in. Browsers never call them directly — every request goes through Worker routes that apply Workers KV caching per the CF Worker quota mitigation playbook:

SurfaceTTLWhy this TTL
Weather forecast1 hourForecasts update every ~3h upstream; 1h is fresh enough for UI, cuts load 60×
Weather historical24 hoursHistorical data is immutable; 24h TTL is conservative
Finance EOD24 hoursEnd-of-day data is immutable post-close; 24h covers the trading day
Finance intraday5 minutesIntraday data needs freshness, 5m balances UX vs the 25/day cap

Why

Implications

Architecture

Volume budget

Geocoding NOT in this decision

Geocoding stays deferred — separate decision, separate concept file. None of the 11 sites need address ? coordinate translation today. CF-IPCountry header covers every current geo-routing need.

What we don’t do

Cross-refs


Edit on GitHub · Back to index