예제 #1
0
        public TransactionsHistoryModel TransactionsHistory(int?from, int?count, int?fromId, int?endId, string order, string since, string end)
        {
            var btceApiResponseModel     = _httpClient.SendPostRequestToTradeApi <TransactionsHistoryBtceResponseModel>(ArgsDictionaryService.TransactionsHistoryDictionary(from, count, fromId, endId, order, since, end));
            var transactionsHistoryModel = BtceModelsConverter.ConvertToTransactionsHistoryModel(btceApiResponseModel);

            return(transactionsHistoryModel);
        }
예제 #2
0
        public TradeModel Trade(string pair, string type, double rate, double amount)
        {
            var btceApiResponseModel = _httpClient.SendPostRequestToTradeApi <TradeBtceResponseModel>(ArgsDictionaryService.TradeDictionary(pair, type, rate, amount));
            var tradeModel           = BtceModelsConverter.ConvertToTradeModel(btceApiResponseModel);

            return(tradeModel);
        }
예제 #3
0
        public ActiveOrdersModel ActiveOrders(string pair)
        {
            var btceApiResponseModel = _httpClient.SendPostRequestToTradeApi <ActiveOrdersBtceResponseModel>(ArgsDictionaryService.ActiveOrdersArgsDictionary(pair));
            var activeOrdersModel    = BtceModelsConverter.ConvertToActiveOrdersModel(btceApiResponseModel);

            return(activeOrdersModel);
        }
예제 #4
0
        public CancelOrderModel CancelOrder(int orderId)
        {
            var btceApiResponseModel = _httpClient.SendPostRequestToTradeApi <CancelOrderBtceResponseModel>(ArgsDictionaryService.CancelOrderDictionary(orderId));
            var cancelOrderModel     = BtceModelsConverter.ConvertToCancelOrderModel(btceApiResponseModel);

            return(cancelOrderModel);
        }
예제 #5
0
        public GetInfoModel GetInfo()
        {
            var btceApiResponseModel = _httpClient.SendPostRequestToTradeApi <GetInfoBtceResponseModel>(ArgsDictionaryService.GetInfoArgsDictionary());
            var getInfoModel         = BtceModelsConverter.ConvertToGetInfoModel(btceApiResponseModel);

            return(getInfoModel);
        }