public ExchangeBuilder(IBinanceRepository binanceRepo, IGdaxRepository gdaxRepo, IKuCoinRepository kuRepo) { _bianceRepo = binanceRepo; _gdaxRepo = gdaxRepo; _kuRepo = kuRepo; _helper = new Helper(); _dtHelper = new DateTimeHelper(); }
public ExchangeBuilder() { _bianceRepo = new BinanceRepository(); _gdaxRepo = new GdaxRepository(); _kuRepo = new KuCoinRepository(); _helper = new Helper(); _dtHelper = new DateTimeHelper(); }
public KuCoinRepositoryTests() { IFileRepository _fileRepo = new FileRepository.FileRepository(); if (_fileRepo.FileExists(configPath)) { _exchangeApi = _fileRepo.GetDataFromFile <ApiInformation>(configPath); } if (_exchangeApi != null || !string.IsNullOrEmpty(apiKey)) { _repo = new KuCoinRepository(_exchangeApi.apiKey, _exchangeApi.apiSecret); } else { _repo = new KuCoinRepository(); } }
/// <summary> /// Constructor - with authentication /// </summary> /// <param name="configPath">Path to config file</param> public KuCoinApiClient(string configPath) { KuCoinRepository = new KuCoinRepository(configPath); }
/// <summary> /// Constructor, with authorization /// </summary> /// <param name="apiKey">Api key</param> /// <param name="apiSecret">Api secret</param> public KuCoinApiClient(string apiKey, string apiSecret) { KuCoinRepository = new KuCoinRepository(apiKey, apiSecret); }
/// <summary> /// Constructor, no authorization /// </summary> public KuCoinApiClient() { KuCoinRepository = new KuCoinRepository(); }