Rating colour scales
Every colour scale the site paints a number with: the three rating metrics, random and Rampage and Stronghold win rates, the two mode ratings (MR and MRB), the two Stronghold ratings and the community star rating. Each is a list of half-open bands with the colour's name and its hex. Region-less, because a threshold is the same on every server, and static, because it only moves when the site's own scale does. Fetch it once and paint from it rather than re-implementing the ladder, which is what makes a client drift the day a threshold changes.
Response Body
application/json
curl -X GET "https://example.com/ratings/scales"{ "scales": [ { "scale": "wn7", "unit": "points", "bands": [ { "color": "veryBad", "hex": "string", "from": 0, "to": 0 } ] } ]}Exchange rates GET
Live EUR-based exchange rates for the currencies the site displays. Our own money figures (funding progress, infrastructure cost) are held in euros and converted at read time, so this is what a client needs to render them in a regional currency. Refreshed once a day; `updatedAt` is null when no live rate is available, in which case amounts should be shown in euros.
Data sources GET
When each externally sourced table the site depends on was last read successfully. The WN8 and WNX expected values come from third parties we do not run and are read while rendering any player page, so a failed refresh serves the last table we hold instead of failing the page. This endpoint is what says how far behind that table is, and `fetchedAt` is null when one has never been read at all.