Account Info Number

Enumeration of numeric account properties that can be retrieved using GetAccountNumberProperty.

Values

Enum Value
Description

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

Usage Example

// Get account balance
const balance = this.api.GetAccountNumberProperty(ENUM_ACCOUNT_INFO_NUMBER.ACCOUNT_BALANCE_CURRENT)
console.log(`Balance: ${balance}`)

// Get current profit
const profit = this.api.GetAccountNumberProperty(ENUM_ACCOUNT_INFO_NUMBER.ACCOUNT_CURRENT_PROFIT)
console.log(`Current Profit: ${profit}`)

// Check leverage
const leverage = this.api.GetAccountNumberProperty(ENUM_ACCOUNT_INFO_NUMBER.ACCOUNT_LEVERAGE_RATIO)
console.log(`Account Leverage: ${leverage}:1`)

Last updated