コード例 #1
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);
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: wishhhmaster/CoinTNet
        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);
        }
コード例 #3
0
ファイル: BtceWrapper.cs プロジェクト: BradleyDHobbs/CoinTNet
 /// <summary>
 /// Cancels an order
 /// </summary>
 /// <param name="orderId">The Id of the order to cancel</param>
 /// <returns>true if the order was cancelled</returns>
 public CallResult <bool> CancelOrder(long orderId)
 {
     return(CallProxy(() => _proxy.CancelOrder((int)orderId),
                      o => true));
 }