コード例 #1
0
        public CCryptoDealingServer()
            : base("CryptoDealingServer")
        {
            _componentFactory = new CComponentFactory(this);

            StockExchId = CodesStockExch._04_CryptoBitfinex;

            IsPossibleEmptyInstrCancellOrders = true;
            IsAddTraderOnlineAllowed          = true;


            _numOfStepsForMarketOrder = 500;
        }
コード例 #2
0
        public CPlaza2Connector() : base("Plaza2Connector")
        {
            _componentFactory = new CComponentFactory(_logger);


            //note. not possible to create in base class
            //Messenger = new CMessenger();


            StockExchId = CodesStockExch._01_MoexFORTS;

            UseRealServer = CUtil.GetEnvVariableBool("USE_REAL_PLAZA2_SERVER");



            Sounder = new CSounder();



            LogServer = new CLogServer();

            //  Instruments = new CListInstruments();

            //TO DO read last revisions from file


            ReadDataFromFiles();

            (new System.Threading.Thread(ThreadDumpLastDataToFiles)).Start();

            (new Task(TaskRoundtripTime)).Start();


            //CreateGUIEvents();



            //StartGateIfNeed();
            OpenCgate();

            // (new System.Threading.Thread(ThreadResourcesAnalyzer)).Start();


            // string tmp = CUtil.GetTemp();

            IsPossibleEmptyInstrCancellOrders = true;
            IsPossibleNativeCancellOrdByInstr = true;
        }
コード例 #3
0
        public CASTSDealingServer(/*IAlarmable alarmer*/) : base(/*alarmer*/ "ASTSDealingServer")
        {
            _componentFactory = new CComponentFactory(_logger);

            //StockExchId = CodesStockExch._02_MoexSPOT;
            //   StockExchId = GlobalConfig.StockExchId;



            Sounder = new CSounder();

            // force for ASTS. It's work. I Don't know why
            GUIBox.IsOnlineUserOrderLogDelayed = true;
            //for ASTS no need wait
            //IsOnlineUserDeals = true;
        }