Esempio n. 1
0
        public void TestSell()
        {
            ExchangeKraken kr  = new ExchangeKraken();
            var            xtz = kr.NormalizeSymbolName("XTZEUR");
            var            btc = kr.NormalizeSymbolName("BTCEUR");
            var            xrp = kr.NormalizeSymbolName("XRPEUR");

            kr.Sell(xtz, 2.18, 50, null, true);
            kr.Sell(btc, 10000, 40, null, true);
            kr.Sell(xrp, 0.40, 10, null, true);
        }
Esempio n. 2
0
        public void TestBuy()
        {
            ExchangeKraken kr  = new ExchangeKraken();
            var            xtz = kr.NormalizeSymbolName("XTZEUR");
            var            btc = kr.NormalizeSymbolName("BTCEUR");
            var            xrp = kr.NormalizeSymbolName("XRPEUR");

            kr.Buy(xtz, 2.13, 50, null, true);
            kr.Buy(btc, 8800, 40, null, true);
            kr.Buy(xrp, 0.20, 10, null, true);
        }
Esempio n. 3
0
        public void TestLatestTrade()
        {
            ExchangeKraken kr  = new ExchangeKraken();
            var            xtz = kr.NormalizeSymbolName("XRPEUR");
            var            tr  = kr.LatestTrade(xtz);

            var xrp = kr.NormalizeSymbolName("XRPEUR");

            tr = kr.LatestTrade(xrp);

            var btc = kr.NormalizeSymbolName("BTCEUR");

            tr = kr.LatestTrade(btc);
        }
Esempio n. 4
0
 public void TestRecentTrade()
 {
     ExchangeKraken kr  = new ExchangeKraken();
     var            xtz = kr.NormalizeSymbolName("BTCEUR");
     var            tr  = kr.TradesHistory(xtz, DateTime.Now.AddMonths(-2));
 }