Bourse.Unified.ContractUnit (bourse v0.7.0)

Copy Markdown View Source

Applies an authored venue-level contract unit to parsed linear markets.

A provider-published contract_size always wins. A missing unit becomes the authored constant or field only when the venue declared that recipe; unknown or missing multiplier semantics fail loudly instead of defaulting to one.

Summary

Functions

Applies the authored linear contract unit to a parsed market.

Functions

normalize_market(market, raw, exchange)

@spec normalize_market(Bourse.Market.t(), map(), Bourse.Exchange.t()) ::
  Bourse.Market.t()

Applies the authored linear contract unit to a parsed market.