Skip to content

IAccount.AccountType

property · IAccount · cAlgo.API.Internals

DesktopCLICloud

Returns the current account type.

Definition

AccountType AccountType {get;}
api.Account.AccountType: AccountType

Returns AccountType

Examples

Print("Account type: {0}", Account.AccountType);
if (Account.AccountType == AccountType.Netted)
    Print("Only one net position per symbol is allowed");
api.Print(f"Account type: {api.Account.AccountType}")
if api.Account.AccountType == AccountType.Netted:
    api.Print("Only one net position per symbol is allowed")