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); } }
public MtGoxExchange(IDataStore _dataStore) { mtGoxExchangeAPI = new CCXSharp.MtGox.MtGoxExchange(); dataStore = _dataStore; }
public MtGoxExchange(IDataStore _dataStore) { mtGoxExchangeAPI = new CCXSharp.MtGox.MtGoxExchange(); dataStore = _dataStore; }