Skip to main content

Crate qs_instruments

Crate qs_instruments 

Source
Expand description

Exact, dependency-light instrument and asset domain contracts.

Structs§

AssetId
AssetSpec
Metadata for one economic asset.
BoundEconomicCapability
One operation bound to a concrete implementation and model.
CatalogDocument
Strict authoring document compiled into an immutable catalog snapshot.
CatalogSnapshotId
Human-readable identity of one immutable catalog snapshot.
Decimal
An exact checked base-10 decimal backed by an i128 coefficient.
DecimalGrid
An exact decimal grid with an origin and positive step.
EconomicsBinding
Fail-closed executable capability binding for one resolved instrument.
EconomicsImplementationId
EconomicsModelId
EffectiveInterval
Half-open UTC interval [valid_from, valid_until).
ExecutionVenueId
GridAdjustment
Auditable requested and adjusted values.
InstrumentAlias
InstrumentAssets
Assets participating in an instrument’s economic contract.
InstrumentCatalogSnapshot
Immutable, indexed catalog revision safe to share across in-flight operations.
InstrumentEconomics
Declarative economics requirements for one instrument revision.
InstrumentId
A broker-, exchange-, or internally-owned listing identity.
InstrumentResolutionContext
Immutable deployment or account constraints applied during resolution.
InstrumentSpec
One effective-dated instrument specification.
ListingId
ListingVenueId
MarketDataSourceId
MarketKind
Money
An exact amount denominated in one asset.
NonNegativeDecimal
NotionalRules
Optional bounds for a model-calculated notional value.
PlatformInstrumentBinding
Binds a broker execution context and trading platform identifier to one instrument.
PositiveDecimal
Price
PriceRules
Exact price-grid metadata.
Quantity
QuantityRules
Exact quantity-grid metadata.
ResolvedInstrument
Resolved reference and immutable specification value.
ResolvedInstrumentRef
Persistable identity of one specification resolved from one catalog snapshot.
SpecRevision
StoredSeriesBinding
Binds an existing stored series namespace to one resolved instrument.
TradingPlatformId

Enums§

AdjustmentDirection
Direction taken by a grid adjustment.
AssetKind
Broad asset classification separate from an asset identifier.
CatalogCompileError
Catalog compilation failures.
DecimalError
Exact-decimal parsing and arithmetic failures.
EconomicOperation
Economic operation that must be supplied by executable code.
EconomicsCapabilityError
Failures while binding declarative economics to executable capabilities.
EffectiveIntervalError
Effective-interval construction failures.
GridError
Decimal-grid validation and adjustment failures.
GridRounding
Explicit handling for a value outside a declared grid.
IdentifierError
Validation failures for normalized identifiers.
InstrumentIdError
Parsing failures for the display form of an instrument identity.
InstrumentResolutionError
Deterministic instrument-resolution failures.
InstrumentSelector
Selector for exact identity or an explicitly scoped alias.
ListingStatus
Listing availability at an effective time.
QuantityUnit
Unit represented by an instrument quantity.
SpecValidationError
Instrument specification invariant failures.

Constants§

MAX_DECIMAL_SCALE
Maximum supported number of decimal fractional digits.

Traits§

EconomicsCapabilityProvider
Executable economics capability supplied by a runtime implementation.

Functions§

bind_economics
Bind every requested economic operation to a registered implementation.