public void GetDeposits_Test() { var symbol = "BTC"; var history = _service.GetDepositHistory(symbol).Result; Assert.NotNull(history); }
/// <summary> /// Get deposit history /// </summary> /// <param name="symbol">Symbol of currency</param> /// <param name="startDate">Start date</param> /// <param name="endDate">End date</param> /// <param name="status">Deposit status</param> /// <param name="page">Page number</param> /// <param name="pageSize">Page size</param> /// <returns>Paged collection of Deposits</returns> public static async Task <PagedResponse <List <Deposit> > > GetDepositHistory(this IKuCoinDotNet service, string symbol = null, DateTime?startDate = null, DateTime?endDate = null, DepositStatus?status = null, int page = 0, int pageSize = 0) { var _dtHelper = new DateTimeHelper(); var startAt = startDate != null?_dtHelper.LocalToUnixTime((DateTime)startDate) : 0; var endAt = endDate != null?_dtHelper.LocalToUnixTime((DateTime)endDate) : 0; return(await service.GetDepositHistory(symbol, startAt, endAt, status, page, pageSize)); }
/// <summary> /// Get deposit history /// </summary> /// <param name="symbol">Symbol of currency</param> /// <param name="status">Deposit status</param> /// <param name="page">Page number</param> /// <param name="pageSize">Page size</param> /// <returns>Paged collection of Deposits</returns> public static async Task <PagedResponse <List <Deposit> > > GetDepositHistory(this IKuCoinDotNet service, string symbol, DepositStatus status, int page = 0, int pageSize = 0) { return(await service.GetDepositHistory(symbol : symbol, status : status, page : page, pageSize : pageSize)); }