protected override Symbol CreateSymbol(string symbolCode) { Symbol symbol; if (symbols.TryGetValue(symbolCode, out symbol)) { return(symbol); } var result = new SymbolImpl <TAccount>(symbolCode, (TAccount)(object)this); var symbolInfo = BrokerInfoUtils.GetSymbolInfo(BrokerName, symbolCode); result.LoadSymbolInfo(symbolInfo); return(result); }
public CTraderSymbol(string symbolCode, CTraderAccount account) : base(symbolCode, account) { var symbolInfo = BrokerInfoUtils.GetSymbolInfo(account.Template.BrokerName, symbolCode); this.LoadSymbolInfo(symbolInfo); }