public CBaseASTSConnector(IDealingServerForASTSConnector dealingServer) : base(dealingServer) { _dealingServer = dealingServer; ReadConfASTSConnector(); _queueTransactions = new CMutualQueue <Action>(); }
public CASTSConnectorDouble(IDealingServerForASTSConnector dealingServer) : base(dealingServer) { _queueTransactions = new CBlockingQueue <Action>(); CUtil.ThreadStart(ProcessMainThread); CUtil.ThreadStart(ProcessDataThread); }
public static CBaseTable CreateTable(string name, IDealingServerForASTSConnector dealingServer) { if ("MARKETS" == name) { return(new CTableMarkets(name, dealingServer)); } else if ("TESYSTIME" == name) { return(new CTableSysTime(name, dealingServer, dealingServer.GUIBox)); } else if ("SECURITIES" == name) { return(new CTableSecurities(name, dealingServer, dealingServer.Instruments, dealingServer.StockExchId)); } else if ("ALL_TRADES" == name) { return(new CTableAll_Trades(name, dealingServer)); } else if ("ORDERS" == name) { return(new CTableOrders(name, dealingServer, dealingServer.UserOrderBoxInp)); } else if ("TRADES" == name) { return(new CTableTrades(name, dealingServer)); } else if ("EXT_ORDERBOOK" == name) { return(new CTableExt_OrderBook(name, dealingServer, dealingServer.StockBoxInp, dealingServer.Instruments)); } else if ("RM_HOLD" == name) { return(new CTableRm_Holds(name, dealingServer)); } else if ("TRADETIME" == name) { return(new CTableTradeTimes(name, dealingServer, dealingServer.SessionBoxInp)); } else if ("TRDTIMETYPES" == name) { return(new CTableTrdTimeTypes(name, dealingServer, dealingServer.SessionBoxInp)); } else if ("STATS" == name) { return(new CTable_Stats(name, dealingServer, dealingServer.SessionBoxInp)); } else if ("POSITIONS" == name) { return(new CTablePositions(name, dealingServer)); } else { throw new ApplicationException("CreateTable. Unknown table"); } //return new CBaseTable(name, _alarmer); }
public CASTSConnectorSingle(IDealingServerForASTSConnector dealingServer) : base(dealingServer) { IsConnectedToServer = false; CreateStates(); _state = StateDisconnected; _queueTransactions = new CMutualQueue <Action>(); _parRequestPeriod = _confASTSConnector.RequestPeriod; CUtil.ThreadStart(Process); }
public CASTSConnection(ConfASTSConnector confASTSConnector, IDealingServerForASTSConnector dealingServer, bool bIsDataRecievr, string logName = null) : base(dealingServer, logName) { //CLogger logger = new CLogger("ASTS"); //logger.Log("Test"); _dealingServer = dealingServer; _confConnector = confASTSConnector; _parameters = GetConfConnection(confASTSConnector); _isDataReciever = bIsDataRecievr; _snapshoter = new CSnapshoter(this, _alarmer); _dealingServer = dealingServer; InitSubscribedTableTypes(); string path = AppDomain.CurrentDomain.BaseDirectory + "mtesrl64.dll"; _module = Module.Load(path); }