Exemplo n.º 1
0
        public frmMain()
        {
            InitializeComponent();

            try
            {
                _connDB.Open();

                exchangeConnection = new MtGoxExchange();
                //Mediator.Instance.RegisterHandler<MtGoxTicker>("MtGoxTicker", SetTicker);
                //            Mediator.Instance.RegisterHandler<Trade>("Trade", UpdateTradeChartDelegate);
                //            Mediator.Instance.RegisterHandler<DepthUpdate>("DepthUpdate", UpdateDepthChartDelegate);
                exchangeConnection.GoxTickerHandlers += exchangeConnection_GoxTickerHandlers;
                exchangeConnection.GoxDepthHandlers  += exchangeConnection_GoxDepthHandlers;
                //            exchangeConnection.GoxDepthStringHandlers += exchangeConnection_GoxDepthStringHandlers;
            }
            catch (Exception ex)
            {
                Logger.Logger.LogException(ex);
            }
        }
Exemplo n.º 2
0
 public MtGoxExchange(IDataStore _dataStore)
 {
     mtGoxExchangeAPI = new CCXSharp.MtGox.MtGoxExchange();
     dataStore = _dataStore;
 }
Exemplo n.º 3
0
 public MtGoxExchange(IDataStore _dataStore)
 {
     mtGoxExchangeAPI = new CCXSharp.MtGox.MtGoxExchange();
     dataStore        = _dataStore;
 }