quantdata.dysanos.grid.gendysanos.matched_cache#

Versioned block cache for path-matched expiry and incremental markets.

class quantdata.dysanos.grid.gendysanos.matched_cache.MatchedCachedBlock(*, start, stop, expiry, incremental)[source]#

Bases: object

Two return horizons reconstructed from one cached path block.

class quantdata.dysanos.grid.gendysanos.matched_cache.MatchedUniverseBlockCache(root, *, cache_uid, configuration, num_samples)[source]#

Bases: object

Persist shared primitives once and horizon-specific returns separately.

property is_complete: bool#
begin()[source]#
write(block)[source]#
complete(*, diagnostics)[source]#
manifest()[source]#
iter_blocks()[source]#

Read one path block and reconstruct exact shared horizon views.

quantdata.dysanos.grid.gendysanos.matched_cache.migrate_legacy_option_settlement_cache(*, root, source_uid, destination_uid, destination_configuration, num_samples, source_schema_version='1.0', progress=None)[source]#

Upgrade a matched cache to close an option hedge at option expiry.

In schema 1.0, incremental option_dS contains the option settlement endpoint. Schema 1.2 retains that endpoint separately in option_settlement_dS. The current schema uses the settlement endpoint for the option’s delta hedge as well. No simulated state, option return, or likelihood weight is changed.