Skip to content

IAccount.UnrealizedNetProfit

property · IAccount · cAlgo.API.Internals

DesktopCLICloud

Gets the Unrealized Net profit value.

Definition

double UnrealizedNetProfit {get;}
api.Account.UnrealizedNetProfit: float

Returns double

Examples

if (Account.UnrealizedNetProfit < -100)
    Print("Floating loss exceeds 100 {0}: {1}", Account.Asset.Name, Account.UnrealizedNetProfit);
if api.Account.UnrealizedNetProfit < -100:
    api.Print(f"Floating loss exceeds 100 {api.Account.Asset.Name}: {api.Account.UnrealizedNetProfit}")