public TradersManager(ICryptoApi cryptoApi, IClusterClient clusterClient, IHubNotifier hubNotifier, IPushManager pushManager) { _cryptoApi = cryptoApi; _clusterClient = clusterClient; _hubNotifier = hubNotifier; _pushManager = pushManager; }
public CoinTrader(ICryptoApi cryptoApi, IClusterClient orleansClient, IHubNotifier hubNotifier, IPushManager pushManager) { _cryptoApi = cryptoApi; _orleansClient = orleansClient; _hubNotifier = hubNotifier; _pushManager = pushManager; _taskCompletionSource = new TaskCompletionSource <Budget>(); }
public CoinTrader(ICryptoApi cryptoApi) { _cryptoApi = cryptoApi; _taskCompletionSource = new TaskCompletionSource <Budget>(); PriceUpdated = new Subject <Ticker>(); OrderUpdated = new Subject <CryptoOrder>(); TradeUpdated = new Subject <Trade>(); }
public CryptoHostedService(IOptions <EnvironmentConfig> options, IPushManager pushManager, ICryptoApi cryptoApi, IClusterClient clusterClient, IHubContext <ApplicationHub> hubContext, ITradersManager tradersManager) { _options = options; _pushManager = pushManager; _cryptoApi = cryptoApi; _clusterClient = clusterClient; _tradersManager = tradersManager; _hubNotifier = new HubNotifier(hubContext); _cryptoApi.Initialize(options.Value.BittrexApiKey, options.Value.BittrexApiSecret, options.Value.TestMode, true); }
public OrdersController(ICryptoApi cryptoApi, IOptions <EnvironmentConfig> options) { _cryptoApi = cryptoApi; _cryptoApi.Initialize(options.Value.BittrexApiKey, options.Value.BittrexApiSecret, options.Value.TestMode); }
public TradersController(IOptions <EnvironmentConfig> options, IClusterClient clusterClient, ICryptoApi cryptoApi, ITradersManager tradersManager) { _clusterClient = clusterClient; _tradersManager = tradersManager; }
public WalletController(ICryptoApi cryptoApi, IOptions <EnvironmentConfig> options, IPushManager pushManager) { _cryptoApi = cryptoApi; _pushManager = pushManager; _cryptoApi.Initialize(options.Value.BittrexApiKey, options.Value.BittrexApiSecret, options.Value.TestMode); }
public BackTester(ICryptoApi cryptoApi) { _cryptoApi = cryptoApi; }