Skip to main content

Module margin_model

Module margin_model 

Source
Expand description

Pluggable margin calculation models for MarginAccount.

Structs§

LeveragedMarginModel
Divides notional value by leverage before applying margin rates.
MarginModelHandle
Shared runtime handle for a margin model.
StandardMarginModel
Uses fixed margin percentages without leverage division.

Enums§

MarginModelAny
Enum dispatch for MarginModel implementations.

Traits§

MarginModel
Determines how margin requirements are calculated for leveraged positions.