public IList <BitfinexHistoryResponse> GetHistory(string currency, string since, string until, int limit, string wallet) { var historyPost = new BitfinexHistoryPost(); historyPost.Request = HistoryRequestUrl; historyPost.Nonce = Common.UnixTimeStampUtc().ToString(); historyPost.Currency = currency; historyPost.Since = since; historyPost.Until = until; historyPost.Limit = limit; historyPost.Wallet = wallet; var client = GetRestClient(historyPost.Request); var response = GetRestResponse(client, historyPost); var historyResponseObj = JsonConvert.DeserializeObject <IList <BitfinexHistoryResponse> >(response.Content); HistoryMsg(historyResponseObj); Logger.Log.InfoFormat("History:"); foreach (var history in historyResponseObj) { Logger.Log.InfoFormat("{0}", history); } return(historyResponseObj); }
public IList <BitfinexHistoryResponse> GetHistory(string currency, string since, string until, int limit, string wallet) { var historyPost = new BitfinexHistoryPost { Request = HistoryRequestUrl, Nonce = Common.UnixTimeStampUtc().ToString(CultureInfo.InvariantCulture), Currency = currency, Since = since, Until = until, Limit = limit, Wallet = wallet }; var response = GetRestResponse(historyPost); var historyResponseObj = JsonConvert.DeserializeObject <IList <BitfinexHistoryResponse> >(response); Log.Info("History:"); foreach (var history in historyResponseObj) { Log.Info("{0}", history); } return(historyResponseObj); }