Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public CTraderSymbol(string symbolCode, CTraderAccount account) : base(symbolCode, account)
        {
            var symbolInfo = BrokerInfoUtils.GetSymbolInfo(account.Template.BrokerName, symbolCode);

            this.LoadSymbolInfo(symbolInfo);
        }