get_daily_root
Retrieve or rebuild the daily Merkle root for a UTC date to prove the integrity of all trade decision records for that day without re-checking each one.
Instructions
Get (or rebuild) the daily Merkle root for a UTC date.
The Merkle root summarises every audit_chain entry whose chained_at
falls inside the UTC day. Verifying this single 32-byte root proves
the integrity of every TDR for that day without re-walking each one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Date in YYYY-MM-DD format (or full ISO datetime). | |
| rebuild | No | If True, recompute and overwrite the stored root. | |
| request_tsa | No | Whether to submit the rebuilt root to the configured RFC 3161 TSA (default freetsa.org) and store the returned TimeStampToken. None (default) follows the TRADEMEMORY_TSA env setting — ON unless set to "off". TSA failures are logged but do not abort the rebuild. | |
| include_token | No | If True, include a base64-encoded `tsa_token` in the response (default False — the token can be large). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||