Symbol Info String

Enumeration of string symbol properties that can be retrieved using GetSymbolStringProperty.

Values

Enum Value
Description

SYMBOL_BASE_CURRENCY

Base currency name

SYMBOL_PROFIT_CURRENCY

Profit currency name

SYMBOL_MARGIN_CURRENCY

Margin currency name

SYMBOL_DISPLAY_NAME

Symbol description

SYMBOL_CURRENCY_MARGIN

Margin currency name

SYMBOL_DESCRIPTION

Symbol description

SYMBOL_PATH

Path in the symbol tree

SYMBOL_ORIGIN

Symbol origin

SYMBOL_EXCHANGE

Exchange name where symbol is traded

SYMBOL_ISIN

The International Securities Identification Number

SYMBOL_FORMULA

Formula used for custom symbol pricing

SYMBOL_MARGIN_FORMULA

Formula used for margin calculation

Usage Example

// Get currency information
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)

// Get symbol description
const description = this.api.GetSymbolStringProperty('EURUSD', ENUM_SYMBOL_INFO_STRING.SYMBOL_DISPLAY_NAME)

// Get margin calculation formula
const marginFormula = this.api.GetSymbolStringProperty('EURUSD', ENUM_SYMBOL_INFO_STRING.SYMBOL_MARGIN_FORMULA)

Last updated