Skip to main content

StandardMarginServiceExt

Trait StandardMarginServiceExt 

Source
pub trait StandardMarginServiceExt {
    // Required method
    fn is_risk_increasing_for_symbol(
        &self,
        account: &StandardAccount,
        symbol: &str,
        side_is_buy: bool,
        quantity: Decimal,
    ) -> bool;
}
Expand description

Extension trait for StandardMarginService that adds symbol-parsing risk check.

Required Methods§

Source

fn is_risk_increasing_for_symbol( &self, account: &StandardAccount, symbol: &str, side_is_buy: bool, quantity: Decimal, ) -> bool

Implementors§