Skip to content

CashAmountUtil

QuantConnect.Util.CashAmountUtil

Bases: Object

Provides utility methods for working with CashAmount instances

should_add_cash_balance

should_add_cash_balance(
    balance: CashAmount, account_currency: str
) -> bool

Determines if a cash balance should be added to the cash book

Parameters:

Name Type Description Default
balance CashAmount

The cash balance to check

required
account_currency str

The algorithm's account currency

required

Returns:

Type Description
bool

True if the balance should be added, false otherwise.