Skip to content

IAccount.MarginLevel

property · IAccount · cAlgo.API.Internals

DesktopCLICloud

Represents the margin level of the current account. Margin Level (in %) is calculated using this formula: Equity / Margin * 100

Definition

double? MarginLevel {get;}
api.Account.MarginLevel: float | None

Returns double?

Examples

Print("The marginLevel of this account is: {0}", Account.MarginLevel);
api.Print(f"The marginLevel of this account is: {api.Account.MarginLevel}")