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

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

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

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

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

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

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

            response.Should().NotBeNull();
        }
コード例 #9
0
 public PoloniexBagAndDustHandler(IMicroBus bus, PoloniexService poloService, DatabaseService databaseService, BagConfig bagConfig, DustConfig dustConfig)
 {
     _bus             = bus;
     _poloService     = poloService;
     _databaseService = databaseService;
     _bagConfig       = bagConfig;
     _dustConfig      = dustConfig;
 }
コード例 #10
0
 public PoloniexDepositWithdrawalHandler(
     PoloniexService poloniexService,
     PoloniexConfig config,
     GeneralConfig generalConfig,
     IMicroBus bus)
 {
     _poloniexService = poloniexService;
     _config          = config;
     _generalConfig   = generalConfig;
     _bus             = bus;
 }
コード例 #11
0
 public PoloniexDepositWithdrawalHandler(
     PoloniexService poloniexService,
     PoloniexConfig config,
     DatabaseService databaseService,
     PriceService priceService,
     IMicroBus bus)
 {
     _poloniexService = poloniexService;
     _config          = config;
     _databaseService = databaseService;
     _priceService    = priceService;
     _bus             = bus;
 }
コード例 #12
0
 public PoloniexBagAndDustHandler(
     IMicroBus bus,
     PoloniexService poloService,
     PoloniexConfig config,
     DatabaseService databaseService,
     GeneralConfig generalConfig)
 {
     _bus             = bus;
     _poloService     = poloService;
     _config          = config;
     _databaseService = databaseService;
     _generalConfig   = generalConfig;
 }
コード例 #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;
 }
コード例 #14
0
 public PriceService(BittrexService bittrexService, PoloniexService poloniexService)
 {
     _bittrexService  = bittrexService;
     _poloniexService = poloniexService;
 }
コード例 #15
0
 public PoloniexBalanceCheckHandler(PoloniexService poloniexService, PoloniexConfig config, IMicroBus bus)
 {
     _poloniexService = poloniexService;
     _config          = config;
     _bus             = bus;
 }
コード例 #16
0
 public PoloniexResetAllTradesHandler(PoloniexService poloniexService, DatabaseService databaseService, IMicroBus bus)
 {
     _poloniexService = poloniexService;
     _databaseService = databaseService;
     _bus             = bus;
 }
コード例 #17
0
 public PoloniexBalanceCheckHandler(PoloniexService poloniexService)
 {
     _poloniexService = poloniexService;
 }
コード例 #18
0
 public PoloniexNewOrderCheckHandler(PoloniexService poloService, ILogger <PoloniexService> log, IMicroBus bus)
 {
     _poloService = poloService;
     _log         = log;
     _bus         = bus;
 }