Class SymbolInfo
- Namespace
- ViiSync.AccountApi
- Assembly
- ViiSync.AccountApi.dll
Instrument specification (MT5 SymbolInfo) plus ViiSync extras.
public sealed class SymbolInfo
- Inheritance
-
SymbolInfo
- Inherited Members
Properties
- AccruedInterest
Accrued interest (bonds), when configured.
- BaseCurrency
ViiSync extra: base currency (e.g. "EUR" for EURUSD).
- Basis
Underlying asset, when configured.
- BkgndColor
Market Watch background colour of the symbol as an MT5
color(COLORREF 0x00BBGGRR): the server's White / Silver / Yellow / Lime / Aqua / Orange (MT5 clrWhite, clrSilver, …); White when unset.
- CalcMode
Profit/margin calculation mode.
- ChartMode
ViiSync extra: chart price mode as configured (e.g. "by bid price").
- CommissionPerLot
ViiSync extra: configured commission per lot. 0 = the engine default; negative = no commission.
- ContractExpiry
ViiSync extra: contract expiry as configured (free text); parsed into LastTradeTime when it is a date.
- ContractSize
Contract size (units of the base asset per lot).
- Country
ViiSync extra: country, when configured.
- Currency
The symbol name — mtapi.io's SymbolInfo.Currency carries the symbol's own name (e.g. "EURUSD.sr"), so this does too. The base currency is BaseCurrency.
- DepthOfMarket
Market-depth levels the symbol publishes (0 = none).
- Description
Human-readable description.
- Digits
Number of decimal places in the price.
- Exchange
ViiSync extra: exchange, when configured.
- ExecutionMode
ViiSync extra: execution mode.
- FaceValue
Face value (bonds), when configured.
- FirstTradeTime
First trade date. ViiSync specs have no first-trade date, so this is always 0.
- FreezeLevel
ViiSync extra: freeze level in points.
- GTCMode
Good-till-cancelled handling of pending orders.
- Groups
ViiSync extra: names of the account groups the symbol belongs to.
- ISIN
ISIN of the instrument, when configured.
- Id
Server symbol id.
- Industry
ViiSync extra: industry, when configured.
- LastTradeTime
Contract expiry (unix seconds) when the spec carries a parseable date, else 0.
- LimitPoints
Stops level in points (SYMBOL_TRADE_STOPS_LEVEL).
- LowerLimit
Lower price limit. ViiSync specs have no price band, so this is always 0.
- MarginCurrency
Margin currency; the base currency when the server leaves it empty.
- MarkupAsk
ViiSync extra: ask-side markup in points applied to the raw quote before clients see it.
- MarkupBid
ViiSync extra: bid-side markup in points applied to the raw quote before clients see it.
- Name
Symbol name (MT5 keys SymbolInfo by name; ViiSync also carries it on the record).
- Path
ViiSync extra: the symbol's path in the server's symbol tree.
- Points
Point size (10^-Digits).
- ProfitCurrency
Profit currency; the base currency when the server leaves it empty.
- RefToSite
Web page of the instrument, when configured.
- Sector
ViiSync extra: sector, when configured.
- SettlementPrice
Settlement price, when configured.
- Spread
The symbol's configured spread setting, in points.
- StopsLevel
ViiSync extra: stops level in points (same value as LimitPoints).
- TickSize
Minimal price change as configured; 0 = one point (MT5 semantics). GetTickSize(string) resolves the effective value.
- TickValue
Tick value in the account currency (at the conversion rate of the moment the catalog loaded; use GetTickValue(string, int) for a live figure).
- TradeMode
ViiSync extra: trade permission (full, long only, short only, close only, disabled).
- Type
Instrument class, e.g. "forex", "cfd".
- UpdateTime
When the symbol's specification last changed on the server (unix seconds, UTC); 0 from an engine that predates the stamp.
- UpperLimit
Upper price limit. ViiSync specs have no price band, so this is always 0.
- UseTimeLimits
ViiSync extra: true when the symbol has weekly sessions; false = open 24/7.
- VolumeLimit
ViiSync extra: volume limit, lots (0 = none).
- VolumeMax
ViiSync extra: maximum order volume, lots.
- VolumeMin
ViiSync extra: minimum order volume, lots.
- VolumeStep
ViiSync extra: volume step, lots.
- ask_tickvalue
Tick value at the ask, as last computed by GetAskTickValue(Quote).
- bid_tickvalue
Tick value at the bid, as last computed by GetTickValue(string, int) or GetBidTickValue(Quote).
Methods
- ToString()
"NAME (Description) digits contract size".