Beispiel #1
0
        static void Main(string[] args)
        {
            var ticker      = BtceApi.GetTicker(BtcePair.btc_usd);
            var trades      = BtceApi.GetTrades(BtcePair.btc_usd);
            var btcusdDepth = BtceApi.GetDepth(BtcePair.usd_rur);
            var fee         = BtceApi.GetFee(BtcePair.usd_rur);

            var btceApi      = new BtceApi("API_KEY", "API_SECRET");
            var info         = btceApi.GetInfo();
            var transHistory = btceApi.GetTransHistory();
            var tradeHistory = btceApi.GetTradeHistory(count: 20);
            var orderList    = btceApi.GetOrderList();
            var tradeAnswer  = btceApi.Trade(BtcePair.btc_usd, TradeType.Sell, 20, 0.1m);
            var cancelAnswer = btceApi.CancelOrder(tradeAnswer.OrderId);
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            var ticker      = BtceApi.GetTicker(BtcePair.BtcUsd);
            var trades      = BtceApi.GetTrades(BtcePair.BtcUsd);
            var btcusdDepth = BtceApi.GetDepth(BtcePair.UsdRur);
            var fee         = BtceApi.GetFee(BtcePair.UsdRur);

            var btceApi      = new BtceApi("YOUR-API-KEY", "your_secret_key");
            var info         = btceApi.GetInfo();
            var transHistory = btceApi.GetTransHistory();
            var tradeHistory = btceApi.GetTradeHistory(count: 20);
            var orderList    = btceApi.GetOrderList();
            var tradeAnswer  = btceApi.Trade(BtcePair.BtcUsd, TradeType.Sell, 20, 0.1m);
            var cancelAnswer = btceApi.CancelOrder(tradeAnswer.OrderId);
        }