Exemple #1
0
        public void GetLoanOrdersReturnsResponseTest()
        {
            var service  = new PoloniexService();
            var response = service.GetLoanOrders("BTC");

            response.Should().NotBeNull();
        }
Exemple #2
0
        public void GetTickerReturnsValidResponseTest()
        {
            var service  = new PoloniexService();
            var response = service.GetTicker();

            response.Should().NotBeNull();
        }
Exemple #3
0
        public void GetChartDataReturnsResponseTest()
        {
            var service  = new PoloniexService();
            var response = service.GetChartData("BTC_ETH", 1514764800, 1514851200, Entities.ChartDataPeriodEnum.TwoHours);

            response.Should().NotBeNull();
        }
 public PoloniexNewOrderCheckHandler(PoloniexService poloService, ILogger <PoloniexService> log, IMicroBus bus, PoloniexConfig config)
 {
     _poloService = poloService;
     _log         = log;
     _bus         = bus;
     _config      = config;
 }
Exemple #5
0
        public void GetOrderBookReturnsResponseTest()
        {
            var service  = new PoloniexService();
            var response = service.GetOrderBook("BTC_ETH", 10);

            response.Should().NotBeNull();
        }
Exemple #6
0
        public void GetTradeHistoryReturnsResponseTest()
        {
            var service  = new PoloniexService();
            var response = service.GetTradeHistory("BTC_ETH", 1514764800, 1514851200);

            response.Should().NotBeNull();
        }
Exemple #7
0
        public void Get24HourVolumeReturnsResponseTest()
        {
            var service  = new PoloniexService();
            var response = service.Get24HourVolume();

            response.Should().NotBeNull();
        }
Exemple #8
0
        public void GetCurrenciesReturnsResponseTest()
        {
            var service  = new PoloniexService();
            var response = service.GetCurrencies();

            response.Should().NotBeNull();
        }
 public PoloniexBagAndDustHandler(IMicroBus bus, PoloniexService poloService, DatabaseService databaseService, BagConfig bagConfig, DustConfig dustConfig)
 {
     _bus             = bus;
     _poloService     = poloService;
     _databaseService = databaseService;
     _bagConfig       = bagConfig;
     _dustConfig      = dustConfig;
 }
 public PoloniexDepositWithdrawalHandler(
     PoloniexService poloniexService,
     PoloniexConfig config,
     GeneralConfig generalConfig,
     IMicroBus bus)
 {
     _poloniexService = poloniexService;
     _config          = config;
     _generalConfig   = generalConfig;
     _bus             = bus;
 }
 public PoloniexDepositWithdrawalHandler(
     PoloniexService poloniexService,
     PoloniexConfig config,
     DatabaseService databaseService,
     PriceService priceService,
     IMicroBus bus)
 {
     _poloniexService = poloniexService;
     _config          = config;
     _databaseService = databaseService;
     _priceService    = priceService;
     _bus             = bus;
 }
 public PoloniexBagAndDustHandler(
     IMicroBus bus,
     PoloniexService poloService,
     PoloniexConfig config,
     DatabaseService databaseService,
     GeneralConfig generalConfig)
 {
     _bus             = bus;
     _poloService     = poloService;
     _config          = config;
     _databaseService = databaseService;
     _generalConfig   = generalConfig;
 }
Exemple #13
0
 public PoloniexBagAndDustHandler(
     IMicroBus bus,
     PoloniexService poloService,
     DatabaseService databaseService,
     BagConfig bagConfig,
     DustConfig dustConfig,
     LowBtcConfig lowBtcConfig,
     PriceService priceService,
     GeneralConfig generalConfig)
 {
     _bus             = bus;
     _poloService     = poloService;
     _databaseService = databaseService;
     _bagConfig       = bagConfig;
     _dustConfig      = dustConfig;
     _lowBtcConfig    = lowBtcConfig;
     _priceService    = priceService;
     _generalConfig   = generalConfig;
 }
 public PriceService(BittrexService bittrexService, PoloniexService poloniexService)
 {
     _bittrexService  = bittrexService;
     _poloniexService = poloniexService;
 }
 public PoloniexBalanceCheckHandler(PoloniexService poloniexService, PoloniexConfig config, IMicroBus bus)
 {
     _poloniexService = poloniexService;
     _config          = config;
     _bus             = bus;
 }
 public PoloniexResetAllTradesHandler(PoloniexService poloniexService, DatabaseService databaseService, IMicroBus bus)
 {
     _poloniexService = poloniexService;
     _databaseService = databaseService;
     _bus             = bus;
 }
Exemple #17
0
 public PoloniexBalanceCheckHandler(PoloniexService poloniexService)
 {
     _poloniexService = poloniexService;
 }
Exemple #18
0
 public PoloniexNewOrderCheckHandler(PoloniexService poloService, ILogger <PoloniexService> log, IMicroBus bus)
 {
     _poloService = poloService;
     _log         = log;
     _bus         = bus;
 }