Ejemplo n.º 1
0
        public decimal GetCurrentPrice(string baseCurrency, string market)
        {
            var ticker = client.GetTicker(new List <String> {
                "X" + market + "Z" + baseCurrency
            });

            return(decimal.Parse(ticker["price"].ToString()));
        }
Ejemplo n.º 2
0
 public KrakenService()
 {
     KrakenClient.KrakenClient kClient = new KrakenClient.KrakenClient();
     var tickerJson = kClient.GetTicker(new List <string> {
         "XXBTZEUR"
     });
     var    historyJson = kClient.GetRecentTrades("XXBTZEUR", 137589964200000000);
     Ticker ticker      = new Ticker(tickerJson.ToString());
 }