Esempio n. 1
0
        public void The_Bitfinex_Url_Should_Be_Correct()
        {
            var excpected = "https://api.bitfinex.com/v2/candles/trade:{{timespan}}:t{{symbol}}/last";
            var actual    = new BitfinexDataReader().TemplateURL;

            Assert.Equal(excpected, actual);
        }
Esempio n. 2
0
        public void The_Bitfinex_URL_Should_Be(string symbolName, CandleTimespan timespan, string expected)
        {
            var actual = new BitfinexDataReader().GetUrlFrom(new Symbol()
            {
                Name = symbolName
            }, timespan);

            Assert.Equal(expected, actual);
        }
Esempio n. 3
0
        public void The_Bitfinex_Volume_Value_To_Response_Should_Be(decimal expected, string response)
        {
            var actual = new BitfinexDataReader().GetCandleFrom(response);

            Assert.Equal(expected, actual.Vol);
        }