コード例 #1
0
 public KucoinBuyExecuteMarketRule(
     IKucoinClient kucoinClient,
     IPushOverNotificationService pushOverNotificationService)
 {
     _kucoinClient = kucoinClient;
     _pushOverNotificationService = pushOverNotificationService;
 }
コード例 #2
0
 /// <summary>
 /// Create a new order book instance
 /// </summary>
 /// <param name="symbol">The symbol the order book is for</param>
 /// <param name="options">The options for the order book</param>
 public KucoinSpotSymbolOrderBook(string symbol, KucoinOrderBookOptions?options = null) : base(symbol, options ?? new KucoinOrderBookOptions())
 {
     Levels       = options?.Limit;
     socketClient = options?.SocketClient ?? new KucoinSocketClient();
     restClient   = options?.RestClient ?? new KucoinClient();
     _restOwner   = options?.RestClient == null;
     _socketOwner = options?.SocketClient == null;
 }
コード例 #3
0
 public KucoinModeProductionRule(
     IMarketService marketService,
     IPushOverNotificationService pushOverNotificationService,
     IKucoinClient kucoinClient)
 {
     _marketService = marketService;
     _pushOverNotificationService = pushOverNotificationService;
     _kucoinClient = kucoinClient;
 }
コード例 #4
0
 public SwitchExchangeForProductionRule(
     IMarketService marketService,
     Exchange exchange,
     IBinanceClient binanceClient,
     IKucoinClient kucoinClient,
     IPushOverNotificationService pushOverNotificationService)
 {
     _marketService = marketService;
     _exchange      = exchange;
     _binanceClient = binanceClient;
     _kucoinClient  = kucoinClient;
     _pushOverNotificationService = pushOverNotificationService;
 }
コード例 #5
0
 public SwitchExchangeForSymbolRule(
     Exchange exchange,
     IBinanceClient binanceClient,
     IKucoinClient kucoinClient,
     IBinanceTickerService binanceTickerService,
     IKucoinTickerService kucoinTickerService)
 {
     _exchange             = exchange;
     _binanceClient        = binanceClient;
     _kucoinClient         = kucoinClient;
     _binanceTickerService = binanceTickerService;
     _kucoinTickerService  = kucoinTickerService;
 }
コード例 #6
0
 public BuyDeepSellHighJob(
     IBinanceClient binanceClient,
     IKucoinClient kucoinClient,
     IStorageService storageService,
     IMarketService marketService,
     IConfigurationService schedulerService,
     IPushOverNotificationService pushOverNotificationService,
     IBinanceTickerService binanceTickerService,
     IKucoinTickerService kucoinTickerService)
 {
     _binanceClient               = binanceClient;
     _kucoinClient                = kucoinClient;
     _storageService              = storageService;
     _marketService               = marketService;
     _schedulerService            = schedulerService;
     _pushOverNotificationService = pushOverNotificationService;
     _binanceTickerService        = binanceTickerService;
     _kucoinTickerService         = kucoinTickerService;
 }
コード例 #7
0
 public KucoinSymbolSequenceRule(
     IKucoinClient kucoinClient)
 {
     _kucoinClient = kucoinClient;
 }
コード例 #8
0
 public KucoinTickerService(
     IKucoinClient kucoinClient)
 {
     _kucoinClient = kucoinClient;
 }
コード例 #9
0
 public KucoinAccountExchangeRule(
     IKucoinClient kucoinClient)
 {
     _kucoinClient = kucoinClient;
 }