Caching
Server and client cache boundaries without hidden fallback values.
#Cache policy
| Layer | Data | TTL / behavior |
|---|---|---|
| Server | Assets | 5 minutes |
| Server | Quotes | 15 seconds |
| HTTP | Market API | 15s shared + 45s stale-while-revalidate |
| Client | Market query | Refresh every 30 seconds |
| Client | Asset registry for portfolio | 5 minutes |
#Deduplication
A cached quote can be rendered repeatedly, but its unchanged source timestamp cannot advance persistent calibration.
#Failure
The last verified client snapshot may remain visible with DATA DELAYED. Server failures return an unavailable payload and non-success status where appropriate.
#Limits
Caching lowers upstream load but introduces age. Freshness is calculated from source time so cache behavior is visible rather than hidden.