Epoch report (report 207)
x207_epoch_reportRetrieve an epoch's phase, deadlines, clearing summary, metrics, and cash settlements after it closes, with contract data still returned if the read API fails.
Instructions
One epoch of the circle: its phase and deadlines from the contract (get_epoch), and from the read API the summary, the metrics (cleared ratio: the share of debt that netting removed, so only the net cash moves) and the settlements, i.e. who owes whom what in cash. Use it after an epoch closed; use x207_simulate_clearing to test a proposal before it is submitted. Returns {epoch, contract, summary, metrics, settlements, source, warnings}. An epoch that does not exist is an error; if the read API is down the contract record is still returned, with the failures in warnings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| epoch | No | Epoch number, 0 or more. Leave out for the current epoch, which is still open and has no settlements yet. | |
| settlements_limit | No | How many settlement rows to return, 1 to 200 (default 20). A busy epoch has more; raise it to see them all. |