Esempio n. 1
0
        //==========================================================
        public void GetOrderBook(Bittrex B, String Market, BittrexOrderBook.Type OrderBookType, Int32 Depth)
        {
            BittrexResult <BittrexOrderBook> BOB = B.GetOrderBook(Market, OrderBookType, Depth);

            if (GetIsResultValid(BOB))
            {
                Console.WriteLine(BOB.Result.ToString());
            }
        }
Esempio n. 2
0
        //==========================================================
        public static Boolean GetIsMarketValid(Bittrex B, String Market)
        {
            if (String.IsNullOrEmpty(Market) || Market.Length != 7)
            {
                return(false);
            }

            return(B.GetOrderBook(Market, BittrexOrderBook.Type.Buy, 1).Success);
        }
Esempio n. 3
0
        //==========================================================
        public void GetDepositAddress(Bittrex B, String Currency)
        {
            BittrexResult <BittrexAddress> BA = B.GetDepositAddress(Currency);

            if (GetIsResultValid(BA))
            {
                Console.WriteLine(BA.Result.ToString());
            }
        }
Esempio n. 4
0
        //==========================================================
        public void GetBalance(Bittrex B, String Currency)
        {
            BittrexResult <BittrexBalance> BB = B.GetBalance(Currency);

            if (GetIsResultValid(BB))
            {
                Console.WriteLine(BB.Result.ToString());
            }
        }
Esempio n. 5
0
        //==========================================================
        public void GetMarketSummary(Bittrex B, String Market)
        {
            BittrexResult <List <BittrexMarketSummary> > BMS = B.GetMarketSummary(Market);

            if (GetIsResultValid(BMS))
            {
                Console.WriteLine(BMS.Result[0].ToString());
            }
        }
Esempio n. 6
0
        //==========================================================
        public void GetTicker(Bittrex B, String Market)
        {
            BittrexResult <BittrexTicker> BT = B.GetTicker(Market);

            if (GetIsResultValid(BT))
            {
                Console.WriteLine(BT.Result.ToString());
            }
        }
Esempio n. 7
0
        //==========================================================
        public void GetCurrencies(Bittrex B)
        {
            BittrexResult <List <BittrexCurrency> > Currencies = B.GetCurrencies();

            if (GetIsResultValid(Currencies))
            {
                foreach (BittrexCurrency BC in Currencies.Result)
                {
                    Console.WriteLine(BC.ToString());
                }
            }
        }
Esempio n. 8
0
        //==========================================================
        public void GetMarkets(Bittrex B)
        {
            BittrexResult <List <BittrexMarket> > Markets = B.GetMarkets();

            if (GetIsResultValid(Markets))
            {
                foreach (BittrexMarket BM in Markets.Result)
                {
                    Console.WriteLine(BM.ToString());
                }
            }
        }
Esempio n. 9
0
        //==========================================================
        public void GetDepositHistory(Bittrex B, String Currency)
        {
            BittrexResult <List <BittrexDeposit> > Deposits = B.GetDepositHistory(Currency);

            if (GetIsResultValid(Deposits))
            {
                foreach (BittrexDeposit BD in Deposits.Result)
                {
                    Console.WriteLine(BD.ToString());
                }
            }
        }
Esempio n. 10
0
        //==========================================================
        public void GetWithdrawalHistory(Bittrex B, String Currency)
        {
            BittrexResult <List <BittrexWithdrawal> > Withdrawals = B.GetWithdrawalHistory(Currency);

            if (GetIsResultValid(Withdrawals))
            {
                foreach (BittrexWithdrawal BW in Withdrawals.Result)
                {
                    Console.WriteLine(BW.ToString());
                }
            }
        }
Esempio n. 11
0
        //==========================================================
        public void GetOrderHistory(Bittrex B, String Market)
        {
            BittrexResult <List <BittrexOrder1> > Orders = B.GetOrderHistory(Market);

            if (GetIsResultValid(Orders))
            {
                foreach (BittrexOrder1 BO1 in Orders.Result)
                {
                    Console.WriteLine(BO1.ToString());
                }
            }
        }
Esempio n. 12
0
        //==========================================================
        public void GetBalances(Bittrex B)
        {
            BittrexResult <List <BittrexBalance> > Balances = B.GetBalances();

            if (GetIsResultValid(Balances))
            {
                foreach (BittrexBalance BB in Balances.Result)
                {
                    Console.WriteLine(BB.ToString());
                }
            }
        }
Esempio n. 13
0
        //==========================================================
        public void GetMarketHistory(Bittrex B, String Market)
        {
            BittrexResult <List <BittrexTrade> > MarketHistory = B.GetMarketHistory(Market);

            if (GetIsResultValid(MarketHistory))
            {
                foreach (BittrexTrade BT in MarketHistory.Result)
                {
                    Console.WriteLine(BT.ToString());
                }
            }
        }
Esempio n. 14
0
        //==========================================================
        public void GetMarketSummaries(Bittrex B)
        {
            BittrexResult <List <BittrexMarketSummary> > MarketSummaries = B.GetMarketSummaries();

            if (GetIsResultValid(MarketSummaries))
            {
                foreach (BittrexMarketSummary BMS in MarketSummaries.Result)
                {
                    Console.WriteLine(BMS.ToString());
                }
            }
        }
Esempio n. 15
0
 //==========================================================
 public void Run(Bittrex B)
 {
     //TestGetMarkets( B );
     //TestGetCurrencies( B );
     //TestGetTicker( B, "ETH-ZEC" );
     //TestGetMarketSummaries( B );
     //TestGetMarketSummary( B, "ETH-ZEC" );
     //TestGetOrderBook( B, "ETH-ZEC", BittrexOrderBook.Type.Both, 5 );
     //TestGetMarketHistory( B, "ETH-ZEC" );
     //TestGetBalances( B );
     //TestGetBalance( B, "ZEC" );
     //TestGetBalance( B, "ETH" );
     //TestGetOpenOrders( B, "ETH-ZEC" );
     //TestGetOrderHistory( B, "ETH-ZEC" );
     //TestGetWithdrawalHistory( B, "ETH" );
     //TestGetDepositHistory( B, "ZEC" );
     //TestGetDepositAddress( B, "ZEC" );
     //TestGetDepositAddress( B, "ETH" );
 }