GetAccountNumberProperty

Returns numeric properties of the trading account.

Syntax

GetAccountNumberProperty(propertyId: ENUM_ACCOUNT_INFO_NUMBER): number

Parameters

Return Value

Returns a number representing the requested account property value.

Description

The GetAccountNumberProperty method retrieves numeric properties of the trading account. Different properties can be accessed using the ENUM_ACCOUNT_INFO_NUMBER enumeration.

Available properties through ENUM_ACCOUNT_INFO_NUMBER:

  • ACCOUNT_LEVERAGE_RATIO: Account leverage ratio

  • ACCOUNT_BALANCE_CURRENT: Current account balance

  • ACCOUNT_CURRENT_PROFIT: Current profit

  • ACCOUNT_EQUITY_CURRENT: Current equity

  • ACCOUNT_MARGIN_USED: Margin used

  • ACCOUNT_MARGIN_AVAILABLE: Available margin

Example

Last updated