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.
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.