TradeMUX SDK Documentation  1.0
TradeMUX SDK Documentation
bool SymbolInfoInteger ( string  name,
int  prop_id,
out long  long_var 
)

Returns the corresponding long property of a specified symbol

Parameters
nameSymbol name
prop_idIdentifier of a symbol property. The value can be one of the following values:
SYMBOL_SELECT Symbol is selected in Market Watch. Some symbols can be hidden in Market Watch, but still they are considered as selected.
SYMBOL_VISIBLE Symbol is visible in Market Watch.Some symbols (mostly, these are cross rates required for calculation of margin requirements or profits in deposit currency) are selected automatically, but generally are not visible in Market Watch. To be displayed such symbols have to be explicitly selected.
SYMBOL_TIME Time of the last quote
SYMBOL_DIGITS Digits after a decimal point
SYMBOL_SPREAD_FLOAT Indication of a floating spread
SYMBOL_SPREAD Spread value in points
SYMBOL_TRADE_CALC_MODE Contract price calculation mode
SYMBOL_TRADE_MODE Order execution type
SYMBOL_START_TIME Date of the symbol trade beginning (usually used for futures)
SYMBOL_EXPIRATION_TIME Date of the symbol trade end (usually used for futures)
SYMBOL_TRADE_STOPS_LEVEL Minimal indention in points from the current close price to place Stop orders
SYMBOL_TRADE_FREEZE_LEVEL Distance to freeze trade operations in points
SYMBOL_TRADE_EXEMODE Deal execution mode
SYMBOL_SWAP_MODE Swap calculation model
SYMBOL_SWAP_ROLLOVER3DAYS Day of week to charge 3 days swap rollover
long_varVariable of the long 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.