GetSymbolStringProperty
Syntax
GetSymbolStringProperty(name: string, prop_id: ENUM_SYMBOL_INFO_STRING): stringParameters
Return Value
Description
Example
Last updated
GetSymbolStringProperty(name: string, prop_id: ENUM_SYMBOL_INFO_STRING): stringLast updated
// Get currency names
const baseCurrency = this.api.GetSymbolStringProperty('EURUSD', ENUM_SYMBOL_INFO_STRING.SYMBOL_BASE_CURRENCY)
const profitCurrency = this.api.GetSymbolStringProperty('EURUSD', ENUM_SYMBOL_INFO_STRING.SYMBOL_PROFIT_CURRENCY)
console.log(`Base Currency: ${baseCurrency}, Profit Currency: ${profitCurrency}`)
// Get symbol description
const description = this.api.GetSymbolStringProperty('EURUSD', ENUM_SYMBOL_INFO_STRING.SYMBOL_DISPLAY_NAME)
console.log(`Symbol Description: ${description}`)