Esempio n. 1
0
        public async Task GetTradeBalanceForAsset()
        {
            var configRepo = new ConfigRepository(new List <IExchangeConfig>().ToArray());
            var config     = await configRepo.Get();

            var repo         = new KrakenRepository(config);
            var tradebalance = await repo.CallPrivate <Dictionary <string, decimal> >("TradeBalance", new Dictionary <string, string>(){ { "asset", "ETH" } });

            Assert.That(tradebalance, Is.Not.Null);
        }
Esempio n. 2
0
        public async Task GetBalance()
        {
            var result = await _krakenRepository.CallPrivate <Dictionary <string, decimal> >("Balance");

            Assert.That(result, Is.Not.Null);
        }