Crate ferro_wave_finance
Expand description
Stable finance-facing API boundary for FerroWave.
This crate owns product-facing finance contracts for downstream product
systems. It depends on ferro-wave core transforms and wavelets, but it
intentionally does not depend on ferro-wave-examples.
The v1 boundary starts with versioned profile/configuration types, supported wavelet and transform specs, diagnostics policy, methodology metadata, and a common signal envelope. Finance algorithms are promoted into this crate by follow-up work once their output contracts are stable.
Re-exports§
pub use calibration::builtin_calibration_fixtures;pub use calibration::default_calibration_profile_cases;pub use calibration::run_calibration_validation;pub use calibration::CalibrationCaseReport;pub use calibration::CalibrationExpectation;pub use calibration::CalibrationExpectationReport;pub use calibration::CalibrationFixture;pub use calibration::CalibrationFixtureKind;pub use calibration::CalibrationHarnessConfig;pub use calibration::CalibrationProfileCase;pub use calibration::CalibrationReferenceReport;pub use calibration::CalibrationReport;pub use calibration::CalibrationSignalReport;pub use calibration::RankingIntegrationReadiness;pub use calibration::WalkForwardSpec;pub use calibration::WalkForwardWindow;
Modules§
- calibration
- Deterministic validation harness for finance-facing signal contracts.
Structs§
- Coefficient
Score - A scored detail coefficient that did not cross the detection threshold but
ranks high enough (per
NearThresholdConfig) to surface for near-threshold ranking/aggregation. Carries the same continuous scores as a detectedJumpEventwithout the product-facing warning fields. - Cross
Asset Coherence Component - Per-scale cross-asset coherence component for future productization.
- Cross
Asset Coherence Config - Configuration for productized MODWT cross-asset coherence analytics.
- Cross
Asset Coherence Result - Future cross-asset coherence payload shape.
- Cross
Asset Coherence Signal - EOD Wave Pack cross-asset coherence slot.
- CwtBand
Power - Per-period element of the CWT spectral fingerprint (global wavelet spectrum).
- CwtPeriod
Coherence - Per-period summary produced by the CWT phase-coherence signal.
- CwtPhase
Coherence Config - Configuration for the productized CWT phase-coherence signal.
- CwtPhase
Coherence Result - Productized CWT phase-coherence result.
- CwtPower
Scalogram - Optional single-series power scalogram (
DiagnosticsPolicy::Fullonly). Heavy payload; the power-only counterpart toCwtScalogram. - CwtScalogram
- Optional time-frequency scalogram included only when
DiagnosticsPolicy::Fullis selected on the profile. Heavy payload. - CwtSpectral
Fingerprint Config - Configuration for the productized CWT global-wavelet-spectrum
(“spectral fingerprint”) signal. Mirrors the period-grid / padding controls
of
CwtPhaseCoherenceConfigwithout the coherence-onlyconfidence_alpha. - CwtSpectral
Fingerprint Result - Productized CWT spectral-fingerprint result: the global wavelet spectrum (time-averaged scalogram) as a compact per-period power vector, plus the dominant period and spectral centroid. Amplitude is preserved.
- Cycle
Component Summary - Product cycle-component summary.
- Denoised
Overlay - A single denoised overlay aligned to the input return window.
- Denoised
Price Overlay Config - Configuration for MODWT denoised overlay analytics.
- Denoised
Price Overlay Result - MODWT denoised overlay result.
- Denoised
Trend - Product trend summary extracted from a smooth/scaling component.
- Dominant
Cycle Summary - Dominant cycle selected from standalone IMF summaries.
- Finance
ApiConfig - Request-level configuration for product finance APIs.
- Finance
Diagnostic - Structured diagnostic attached to a finance signal envelope.
- Finance
Level Metadata - Decomposition-level metadata for reduced-level warnings.
- Finance
Observation Metadata - Observation counts used to explain finance signal reliability.
- Finance
Profile - Versioned product profile for finance signal calculation.
- Finance
Signal - Product-facing signal envelope.
- Finance
Signal Configs - Per-signal configuration bundle for
compute_requested_signals. - Finance
Signal Inputs - Borrowed market-data inputs the dispatcher routes to each signal.
- Finance
Signal Quality - Shared quality metadata carried by every finance signal envelope.
- Hurst
Summary - Hurst exponent summary returned by the multifractal signal.
- ImfDecomposition
Config - Configuration for standalone EMD/EEMD decomposition analytics.
- ImfDecomposition
Result - Standalone EMD/EEMD decomposition result.
- ImfSummary
- Per-IMF product summary. Raw IMF coefficient arrays are intentionally omitted.
- Intraday
Seasonality Config - Causal intraday-seasonality (time-of-day U-shape) de-seasonalization.
- Jump
Classification - Classification of a single detected jump along the Aubrun et al. (2024) axes.
- Jump
Classification Config - Configuration for
classify_jump. - Jump
Event - A consolidated product jump/stress event.
- Jump
Event Config - Configuration for productized jump and stress event analytics.
- Jump
Event Result - Productized jump and stress event result.
- Jump
Event Signal - EOD Wave Pack jump/stress event slot.
- Market
Posture - Composite market posture payload for an EOD Wave Pack.
- Market
Posture Config - Configuration for the
market_posture_signalcomposite. - Market
Posture Driver - Explanation driver used by candidate/dashboard surfaces.
- Methodology
Metadata - Methodology metadata attached to finance signal outputs.
- Multifractal
Result - Result payload of the wavelet leader multifractal signal.
- Multifractal
Signal Config - Configuration for the wavelet leader multifractal signal.
- Multifractal
Spectrum Detail - Optional raw multifractal spectrum detail returned only under
DiagnosticsPolicy::Full. Mirrors the upstreamMultifractalSpectrumshape but pre-allocated and validated. - Multifractal
Spectrum Summary - Multifractal spectrum summary returned in
FullSpectrummode. - Near
Threshold Config - Controls surfacing of sub-threshold coefficient scores on
JumpEventResult::near_threshold_scores. - Residue
Summary - Trend/residue summary produced by EMD/EEMD decomposition.
- Signal
Dependencies - Input dependencies a composite signal derives from.
requiredinputs must be present for the composite to compute;optionalinputs enrich it when available and are skipped (graceful degradation) when not. - Symbol
Price Context - Required price context for a symbol-level EOD Wave Pack snapshot.
- Symbol
Wave State - Product-neutral symbol-level EOD Wave Pack snapshot.
- Transform
Spec - Transform configuration for product-facing finance analytics.
- Trend
Regime Config - Configuration for productized trend, cycle, and regime analytics.
- Trend
Regime Result - Productized trend, cycle, and regime result.
- Volatility
Horizon - Dominant volatility horizon.
- Volatility
Scale Component - Per-scale volatility contribution for product/API consumption.
- Volatility
Scale Config - Configuration for productized MODWT volatility-scale analytics.
- Volatility
Scale Profile - EOD Wave Pack volatility-scale slot.
- Volatility
Scale Result - Productized MODWT volatility-scale result.
- Wavelet
Anomaly Score Band - Per-scale ECOD attribution for the wavelet anomaly score.
- Wavelet
Anomaly Score Config - Configuration for the productized multi-scale ECOD wavelet anomaly score.
- Wavelet
Anomaly Score Result - Productized multi-scale ECOD anomaly score over MODWT detail scales.
- WptBand
Energy Config - Configuration for the productized WPT band-energy fingerprint signal.
- WptBand
Energy Result - Productized WPT band-energy result.
- WptBand
Summary - Per-band summary produced by the WPT band-energy fingerprint signal.
Enums§
- Biorthogonal
Spec - Supported biorthogonal wavelet names for finance configs.
- Boundary
Mode Spec - Boundary mode encoded independently from core transform internals.
- Computed
Signal - A single computed finance signal in its concrete, typed envelope.
- Continuous
Wavelet Spec - Continuous wavelet selector for productized CWT analytics. Each variant
maps to a
ferro_wave::transformanalytic-friendly continuous wavelet. - Cross
Asset Reference Kind - Cross-asset reference family for coherence contracts.
- CwtPadding
Mode - CWT boundary-padding mode for the productized phase-coherence signal.
- Diagnostics
Policy - Controls how much transform detail a product response may expose.
- EodWave
Pack Component Role - Field role inside an EOD Wave Pack contract.
- EodWave
Pack Readiness - Symbol-level readiness for an EOD Wave Pack snapshot.
- Finance
Event Detection - Event-detection payload that distinguishes “no event” from unavailable.
- Finance
Input Centering - Input centering applied before a transform runs.
- Finance
Profile Kind - Product profile family for finance analysis.
- Finance
Signal Kind - Product-facing signal families exposed by the finance boundary.
- Finance
Signal Status - Common status vocabulary for product signal envelopes.
- Finance
Transform Kind - Transform family selected by a finance profile.
- Hurst
Interpretation - Qualitative interpretation of a Hurst exponent.
- ImfCycle
Confidence - Confidence bucket for a standalone IMF cycle summary.
- ImfMethod
- Product-facing empirical mode decomposition method.
- Jump
Direction - Product-facing jump direction.
- Jump
Reflexivity - Reflexivity class of a jump, from the time-asymmetry of the volatility
profile around it (the
D₁direction of Aubrun et al. 2024). - Jump
Trend Character - Trend/mean-reversion character of a jump, from the signed return profile
(the
D₂mean-reversion andD₃trend directions of Aubrun et al. 2024). - Jump
Warning Level - Product warning level for jump/stress events.
- Liquidity
Warning Level - Severity level for the liquidity-warning channel of the multifractal signal. Mapped from the multifractality index (spectrum width); higher index = greater scaling heterogeneity = more severe warning.
- Market
Posture Confidence - Product-facing confidence bucket for composite posture.
- Market
Posture Impact - Directional contribution of a posture driver.
- Market
Posture Label - Product-facing composite posture label.
- Multifractal
Mode - Output mode for the wavelet leader multifractal signal.
- Sampling
Cadence - Sampling cadence assumed by a finance profile.
- Trend
Direction - Product-facing trend direction.
- Trend
Quality - Product-facing trend quality bucket.
- Trend
Regime Label - Product-facing market regime label.
- Trend
Regime Method - Product-facing trend/regime method label.
- Wavelet
Spec - Product-facing wavelet selector.
- WptBand
Selection - WPT band-selection strategy.
Constants§
- DAILY_
EOD_ PROFILE_ VERSION - Default daily EOD methodology profile version.
- DEFAULT_
EEMD_ SEED - Default deterministic EEMD seed used by product-facing finance profiles.
- DEFAULT_
MULTIFRACTAL_ BOOTSTRAP_ SEED - Default deterministic bootstrap seed for the multifractal signal.
- DEFAULT_
MULTIFRACTAL_ Q_ MAX - Default upper moment bound for
FullSpectrummode. - DEFAULT_
MULTIFRACTAL_ Q_ MIN - Default lower moment bound for
FullSpectrummode. - DEFAULT_
MULTIFRACTAL_ Q_ STEP - Default moment step for
FullSpectrummode. - EOD_
WAVE_ PACK_ VERSION - Current product-neutral EOD Wave Pack contract version.
- FINANCE_
API_ VERSION - Current finance API contract version.
- HFT_
PROFILE_ VERSION - Default high-frequency methodology profile version.
- INTRADAY_
PROFILE_ VERSION - Default intraday methodology profile version.
- MAX_
MULTIFRACTAL_ MOMENTS - Hard cap on the size of the multifractal moment grid. Bounds both
the validate-time projected size and the runtime
moment_gridconstruction loop, so a maliciously tinyq_stepcannot hang the signal builder. The default daily-EOD grid is 21 moments; 4096 is roughly 200× the default and still well within the array sizes the underlyingmultifractal_spectrumcascade math handles in tractable time. Pinnedpubso downstream callers can compare against it when sizing their own grids. - MAX_
PAUL_ ORDER - Maximum Paul wavelet order accepted by
CwtPhaseCoherenceConfig. - MULTIFRACTAL_
CRITICAL_ THRESHOLD - Threshold above which the warning promotes to
Critical. - MULTIFRACTAL_
ELEVATED_ THRESHOLD - Threshold above which the warning promotes to
Elevated. - MULTIFRACTAL_
INDEX_ THRESHOLD - Threshold on
multifractality_indexfor theis_multifractalflag inMultifractalSpectrumSummary. Inputs whose index falls below this value are treated as effectively monofractal. - MULTIFRACTAL_
WATCH_ THRESHOLD - Threshold above which the multifractality index promotes the
liquidity warning to
Watch. - PORTFOLIO_
PROFILE_ VERSION - Default portfolio relationship methodology profile version.
Functions§
- classify_
jump - Classify a detected jump from the return series and the jump’s return index
(the
return_indexof aJumpEvent). - compute_
requested_ signals - Orchestrate the signals requested by a
FinanceApiConfig. - cross_
asset_ coherence_ signal - Compute a productized MODWT cross-asset coherence signal between primary and reference return observations.
- cwt_
phase_ coherence_ signal - Compute a productized CWT phase-coherence signal between primary and reference returns.
- cwt_
spectral_ fingerprint_ signal - Compute a productized CWT global-wavelet-spectrum (“spectral fingerprint”) signal from a single return series.
- denoised_
price_ overlay_ signal - Compute MODWT denoised overlays aligned to return observations.
- imf_
decomposition_ signal - Compute standalone EMD/EEMD decomposition summaries from return observations.
- jump_
event_ signal - Compute a product-facing jump/stress event signal from price observations.
- market_
posture_ signal - Compute a composite market posture from required EOD Wave Pack signals.
- multifractal_
signal - Build a productized wavelet leader multifractal signal.
- trend_
regime_ signal - Compute a product-facing trend, cycle, and regime signal from return observations.
- volatility_
scale_ signal - Compute a product-facing MODWT volatility-scale signal.
- wavelet_
anomaly_ score_ signal - Compute the productized multi-scale ECOD wavelet anomaly score from a single
return series, scoring the most recent observation against its trailing
per-scale history. See
WaveletAnomalyScoreResultfor the method + caveats. - wpt_
band_ energy_ signal - Compute the productized WPT band-energy fingerprint signal.