TradeMUX SDK Documentation  1.0
TradeMUX SDK Documentation
double MarketInfo ( string  symbol,
int  type 
)

Returns various data about securities listed in the "Market Watch" window

Parameters
symbolSymbol name
typeRequest identifier that defines the type of information to be returned. Can be any of follloing values:
MODE_LOW Low day price
MODE_HIGH High day price
MODE_TIME The last incoming tick time (last known server time)
MODE_BID Last incoming bid price. For the current symbol, it is stored in the predefined variable Bid
MODE_ASK Last incoming ask price. For the current symbol, it is stored in the predefined variable Ask
MODE_POINT Point size in the quote currency. For the current symbol, it is stored in the predefined variable Point
MODE_DIGITS Count of digits after decimal point in the symbol prices. For the current symbol, it is stored in the predefined variable Digits
MODE_SPREAD Spread value in points
MODE_STOPLEVEL Stop level in points. A zero value of MODE_STOPLEVEL means either absence of any restrictions on the minimal distance for Stop Loss/Take Profit or the fact that a trade server utilizes some external mechanisms for dynamic level control, which cannot be translated in the client terminal. In the second case, GetLastError() can return error 130, because MODE_STOPLEVEL is actually "floating" here.
MODE_LOTSIZE Lot size in the base currency
MODE_TICKVALUE Tick value in the deposit currency
MODE_TICKSIZE Tick size in points
MODE_SWAPLONG Swap of the buy order
MODE_SWAPSHORT Swap of the sell order
MODE_STARTING Market starting date (usually used for futures)
MODE_EXPIRATION Market expiration date (usually used for futures)
MODE_TRADEALLOWED Trade is allowed for the symbol
MODE_MINLOT Minimum permitted amount of a lot
MODE_LOTSTEP Step for changing lots
MODE_MAXLOT Maximum permitted amount of a lot
MODE_SWAPTYPE Swap calculation method. 0 - in points; 1 - in the symbol base currency; 2 - by interest; 3 - in the margin currency
MODE_PROFITCALCMODE Profit calculation mode. 0 - Forex; 1 - CFD; 2 - Futures
MODE_MARGINCALCMODE Margin calculation mode. 0 - Forex; 1 - CFD; 2 - Futures; 3 - CFD for indices
MODE_MARGININIT Initial margin requirements for 1 lot
MODE_MARGINMAINTENANCE Margin to maintain open orders calculated for 1 lot
MODE_MARGINHEDGED Hedged margin calculated for 1 lot
MODE_MARGINREQUIRED Free margin required to open 1 lot for buying
MODE_FREEZELEVEL Order freeze level in points. If the execution price lies within the range defined by the freeze level, the order cannot be modified, cancelled or closed
Returns
Returns various data about securities listed in the "Tickes" panel. A part of information about the current security is stored in predefined variables.