private static void GetTicker() { DtoTicker ticker = violinBtce.GetTicker(Pair.eur_usd); Console.WriteLine(ticker.ToString()); Console.ReadLine(); }
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); }