Account Info Number
Values
Enum Value
Description
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