TradeMUX SDK Documentation  1.0
TradeMUX SDK Documentation
bool SymbolInfoString ( string  name,
int  prop_id,
out string  string_var 
)

Returns the corresponding string property of a specified symbol

Parameters
nameSymbol name
prop_idIdentifier of a symbol property. The value can be one of the following values:
SYMBOL_CURRENCY_BASEBasic currency of a symbol
SYMBOL_CURRENCY_PROFITProfit currency
SYMBOL_CURRENCY_MARGINMargin currency
SYMBOL_DESCRIPTIONSymbol description
SYMBOL_PATHPath in the symbol tree
string_varVariable of the string type receiving the value of the requested property.
Returns
True if there is no error, otherwise false. In case of execution failure, information about the error can be obtained using GetLastError() function:
  • 5040 – invalid string parameter for specifying a symbol name,
  • 4301 – unknown symbol (financial instrument),
  • 4302 – symbol is not selected in "Market Watch" (not found in the list of available ones),
  • 4303 – invalid identifier of a symbol property.

It is recommended to use SymbolInfoTick() if the function is used for getting information about the last tick.
It may well be that not a single quote has appeared yet since the terminal is connected to a trading account. In such a case, the requested value will be indefinite.
In most cases, it is enough to use SymbolInfoTick() function allowing a user to receive the values of Ask, Bid, Last,
Volume and the time of the last tick's arrival during a single call.