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); }
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); }
public ActiveOrdersModel ActiveOrders(string pair) { var btceApiResponseModel = _httpClient.SendPostRequestToTradeApi <ActiveOrdersBtceResponseModel>(ArgsDictionaryService.ActiveOrdersArgsDictionary(pair)); var activeOrdersModel = BtceModelsConverter.ConvertToActiveOrdersModel(btceApiResponseModel); return(activeOrdersModel); }
public CancelOrderModel CancelOrder(int orderId) { var btceApiResponseModel = _httpClient.SendPostRequestToTradeApi <CancelOrderBtceResponseModel>(ArgsDictionaryService.CancelOrderDictionary(orderId)); var cancelOrderModel = BtceModelsConverter.ConvertToCancelOrderModel(btceApiResponseModel); return(cancelOrderModel); }
public GetInfoModel GetInfo() { var btceApiResponseModel = _httpClient.SendPostRequestToTradeApi <GetInfoBtceResponseModel>(ArgsDictionaryService.GetInfoArgsDictionary()); var getInfoModel = BtceModelsConverter.ConvertToGetInfoModel(btceApiResponseModel); return(getInfoModel); }