GetAccountStringProperty
Syntax
GetAccountStringProperty(propertyId: ENUM_ACCOUNT_INFO_STRING): stringParameters
Return Value
Description
Example
Last updated
GetAccountStringProperty(propertyId: ENUM_ACCOUNT_INFO_STRING): stringLast updated
// Get account currency
const currency = this.api.GetAccountStringProperty(
ENUM_ACCOUNT_INFO_STRING.ACCOUNT_BASE_CURRENCY
);
console.log(`Account Currency: ${currency}`);
// Get broker name
const broker = this.api.GetAccountStringProperty(
ENUM_ACCOUNT_INFO_STRING.ACCOUNT_BROKER_NAME
);
console.log(`Broker: ${broker}`);
// Get account details
const accountName = this.api.GetAccountStringProperty(
ENUM_ACCOUNT_INFO_STRING.ACCOUNT_HOLDER_NAME
);
console.log(`Account Name: ${accountName}`);