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:
objectTwo return horizons reconstructed from one cached path block.
- class quantdata.dysanos.grid.gendysanos.matched_cache.MatchedUniverseBlockCache(root, *, cache_uid, configuration, num_samples)[source]#
Bases:
objectPersist shared primitives once and horizon-specific returns separately.
- 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_dScontains the option settlement endpoint. Schema 1.2 retains that endpoint separately inoption_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.