예제 #1
0
        private static void GetTicker()
        {
            DtoTicker ticker = violinBtce.GetTicker(Pair.eur_usd);

            Console.WriteLine(ticker.ToString());
            Console.ReadLine();
        }
예제 #2
0
        public void GetTicker(string key, string secret, Pair pair, bool keyAndSecretAreSpecified)
        {
            // Pre requirements
            SetKeyAndSecretSpecificationRequirement(key, secret, keyAndSecretAreSpecified);

            // Arrange
            ViolinBtce violinBtce = keyAndSecretAreSpecified ? new ViolinBtce(key, secret) : new ViolinBtce();

            // Act
            DtoTicker result = violinBtce.GetTicker(pair);

            // Assert
            Assert.Greater(result.Sell, 0);
            Assert.Greater(result.Buy, 0);
        }