ASRQuant 1.2 architecture¶
ASRQuant 1.2 keeps the mature 1.x numerical modules intact while introducing a cleaner public surface.
Layers¶
- Data & provenance — files, URLs, providers, quality checks, fingerprints.
- Research discovery — literature, data-driven hypotheses, candidate boards.
- Quantitative analytics — alpha, factors, statistics, risk, microstructure.
- Pricing & modelling — derivatives, rates, stochastic processes, volatility.
- Portfolio & validation — optimization, backtests, robustness, implementation audits.
- Research operations — projects, weekly cycles, reports, manifests.
- Execution boundary — paper trading, production-readiness, live guardrails.
Compatibility rule¶
The 1.2 release does not delete the established root-level 1.x functions. New code should prefer domain namespaces such as asr.data, asr.risk, asr.factors, asr.hypotheses, asr.backtesting and asr.rates.
Result contract¶
New structured results implement a common convention:
summary: compact metrics;to_frame(): tabular analytical payload;to_dict(): serializable metadata/summary;fingerprintwhen provided by the result mixin or underlying engine.
Errors¶
Domain wrappers use the hierarchy in asrquant.contracts:
ASRQuantErrorInputValidationErrorDataValidationErrorBacktestErrorOptimizationErrorPricingErrorCalibrationErrorModelFitErrorProviderErrorHypothesisDiscoveryError
Lower-level 1.x functions keep their historical exceptions for backwards compatibility.