Skip to main content

Module prelude

Module prelude 

Source
Expand description

Common quantitative primitive types from the focused crates.

Structs§

AssetWeight
A non-empty asset identifier paired with a portfolio weight.
BarTime
A simple bar time label.
Drawdown
A finite drawdown value using the convention current / peak - 1.0, capped at 0.0.
DrawdownPoint
A drawdown point with an optional label.
DrawdownWindow
A simple observation-count drawdown window.
FactorExposure
A factor exposure value.
FactorLoading
A factor loading value.
FactorModelName
A non-empty factor model name.
FactorName
A non-empty factor name.
LogReturn
A finite log return value.
MarketPrice
A finite non-negative market price value.
OhlcBar
A primitive OHLC bar.
OhlcvBar
A primitive OHLCV bar.
PortfolioWeight
A finite portfolio weight value.
PricePoint
A price point with an optional label.
PriceQuote
A market price paired with descriptive price-kind vocabulary.
PriceSeries
A lightweight insertion-ordered price series.
QuoteTick
A quote tick with optional bid and ask prices.
ReturnValue
A return value paired with descriptive return-kind vocabulary.
RiskBudget
A simple numeric risk budget value.
RiskLimit
A simple numeric risk limit threshold.
SeriesName
A non-empty price series name.
SignalName
A non-empty signal name.
SignalScore
A finite quantitative signal score with descriptive semantics.
SimpleReturn
A finite simple return value.
Tick
A single price tick with optional timestamp label and size.
TradeTick
A trade tick wrapper.
Volatility
A finite non-negative volatility value.
VolatilityWindow
A simple observation-count volatility window.
WeightSet
A deterministic set of asset weights keyed by asset identifier.

Enums§

BarInterval
Descriptive bar interval vocabulary.
PriceKind
Descriptive market price kind vocabulary.
ReturnKind
Descriptive return kind vocabulary.
RiskLevel
Descriptive risk level vocabulary.
RiskMeasure
Descriptive risk measure vocabulary.
SignalDirection
Descriptive signal direction vocabulary.
SignalStrength
Descriptive signal strength vocabulary.
TickKind
Descriptive tick kind vocabulary.
VolatilityKind
Descriptive volatility kind vocabulary.