Пример #1
0
 public GdaxWssApiClientTests()
 {
     _configuration = GdaxHelpers.GetGdaxConfiguration();
     _logger        = new LogToConsole();
     _api           = new GdaxWebSocketApi(_logger, _configuration.ApiKey,
                                           _configuration.ApiSecret, _configuration.PassPhrase, _configuration.WssEndpointUrl);
 }
        public GdaxRestApiClientTests()
        {
            var configuration = GdaxHelpers.GetGdaxConfiguration();

            _api = new GdaxRestApi(configuration.ApiKey, configuration.ApiSecret, configuration.PassPhrase,
                                   configuration.RestEndpointUrl, configuration.UserAgent);
        }
Пример #3
0
        public GdaxOrderBookTests()
        {
            _log = new LogToConsole();

            var settingsManager = GdaxHelpers.GetGdaxSettingsMenager();

            _gdaxConfiguration = settingsManager.CurrentValue;

            _orderBookHandler = new Mock <IHandler <OrderBook> >().Object;
        }
Пример #4
0
        public GdaxOrderBookTests()
        {
            _log = new LogToConsole();

            var settingsManager = GdaxHelpers.GetGdaxSettingsMenager();

            _gdaxConfiguration = settingsManager.CurrentValue;

            var orderBookEventsStorage = AzureTableStorage <OrderBookEventEntity> .Create(
                settingsManager.ConnectionString(i => _tableStorageEndpoint), _orderBookEventsTable, _log);

            var orderBookSnapshotStorage = AzureTableStorage <OrderBookSnapshotEntity> .Create(
                settingsManager.ConnectionString(i => _tableStorageEndpoint), _snapshotsTable, _log);

            var azureBlobStorage = AzureBlobStorage.Create(
                settingsManager.ConnectionString(i => _blobStorageEndpoint));

            _snapshotsRepository = new OrderBookSnapshotsRepository(orderBookSnapshotStorage, azureBlobStorage, _log);
            _eventsRepository    = new OrderBookEventsRepository(orderBookEventsStorage, _log);
            _orderBookHandler    = new Mock <IHandler <OrderBook> >().Object;
        }