Skip to main content

empty_portfolio_margin_details

Function empty_portfolio_margin_details 

Source
pub fn empty_portfolio_margin_details(account: &Account) -> MarginDetails
Expand description

Build zero-margin details for a legacy account with no portfolio exposure.

Cash is still carried into equity, while scanning risk, contingency margin, IM, and MM are all zero. Use only after has_portfolio_positions has determined the account has no PM-relevant positions.