Exemplo n.º 1
0
        public RuntimeDataSessionInformation GetSymbolSessionRuntimeInformation(Symbol symbol)
        {
            RuntimeDataSessionInformation information = _dataSourceStub.GetSymbolSessionInformation(symbol);

            if (information == null)
            {
                // It is also possible to have a symbol not in the initial BATS list.
                return(new RuntimeDataSessionInformation(new DataSessionInfo(Guid.NewGuid(), "Historical Data " + symbol.Name, symbol, 1000, 4), Period));
            }
            else
            {
                return(information);
            }
        }
Exemplo n.º 2
0
 public RuntimeDataSessionInformation GetSymbolSessionRuntimeInformation(Symbol symbol)
 {
     return(_dataStub.GetSymbolSessionInformation(symbol));
 }