Coverage object
What an exchange holds, in one read: its closed days, and where each family’s symbols begin and end
Key coverage/{exchange}.json · Since contract 2.4.0
One JSON object per exchange at layout.coverage: which days are closed and which of them are partial, and for each family and symbol the first and last day with a file. It is a fold over the exchange’s day manifests and states nothing they do not, so it can be rebuilt from them at any time; a day manifest remains the commit of its day. Every day in the object is a UTC date and inclusive. Unknown additive fields must be ignored, as in a manifest. Types: date is a yyyy-MM-dd string; int and int64 are JSON numbers with no fraction; int_array is a JSON array of int; object is a JSON object keyed as its description says.
Fields
A day
A symbol
Freshness
The live publisher brings the object up to date once after it starts and after each day manifest it commits. An update that fails costs the day’s close nothing and is tried again, so for a while the object can lack a day the publisher itself closed. A bounded run, a backfill or a forced repair, does not write it: a day it closed or rewrote reaches the object at the live publisher’s next day close for that exchange. So the object can be behind the day manifests and is never ahead of them: every day it lists has a day manifest. An exchange with no closed day has no object.
Coverage
coverage/{exchange}.json says in one read what the day manifests say between them: which
days of an exchange are closed, which of those are partial, and where each family’s symbols
begin and end. It is written from contract 2.4.0, one object per exchange with a closed day.
Every day in it is a UTC date and inclusive.
Reading it:
- A day that
daysdoes not list is not closed as far as the object states, wherever it lies: beforefirst_day, afterpublished_throughor between them. Either it has no day manifest, and nothing of it is published, or the object is behind it (It is derived, and can be behind, below). The day manifest is the authority. - A symbol’s
daysbelow the span from itsfirst_dayto itslast_daymeans days with no file. A file exists only if it has rows, so such a day is a quiet day when it is closed and nothing in its manifest covers the symbol: no gap, and no failed hour. Otherwise the publisher was not watching, and the day’s manifest says when and why. The object carries each day’s gap count and failed hours so a reader knows which manifests to open; the gaps themselves stay there. - A family’s first day says nothing about days before the family existed. The rule under
Files and identity holds: a family’s
sinceand each hour manifest’scontract_versionsay whether an hour could hold it. - It is derived, and can be behind. It states nothing the day manifests do not, a day
manifest is still the commit of its day, and every day the object lists has one. The live
publisher brings it up to date as it starts and after each day manifest it commits; an update
that fails costs the close nothing and is tried again, so for a while the object can lack a
day the publisher itself closed. A backfill or a forced repair does not write it: the day it
closed or rewrote reaches the object at the live publisher’s next day close for that
exchange. Until then that day is missing from the object, or its
manifest_sha256is not its manifest’s digest. Read keys and checksums from the day manifest, never from here: the object names no file. - An exchange with no closed day has no object.