コード例 #1
0
        public void GetWithdrawals_Test()
        {
            var symbol  = "BTC";
            var history = _service.GetWithdrawalHistory(symbol).Result;

            Assert.NotNull(history);
        }
コード例 #2
0
        /// <summary>
        /// Get withdrawal history
        /// </summary>
        /// <param name="symbol">Symbol of currency</param>
        /// <param name="startDate">Start date</param>
        /// <param name="endDate">End date</param>
        /// <param name="status">Withdrawal status</param>
        /// <param name="page">Page number</param>
        /// <param name="pageSize">Page size</param>
        /// <returns>Paged collection of withdrawals</returns>
        public static async Task <PagedResponse <List <Withdrawal> > > GetWithdrawalHistory(this IKuCoinDotNet service, string symbol = null, DateTime?startDate = null, DateTime?endDate = null, WithdrawalStatus?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.GetWithdrawalHistory(symbol, startAt, endAt, status, page, pageSize));
        }
コード例 #3
0
 /// <summary>
 /// Get withdrawal history
 /// </summary>
 /// <param name="symbol">Symbol of currency</param>
 /// <param name="status">Withdrawal status</param>
 /// <param name="page">Page number</param>
 /// <param name="pageSize">Page size</param>
 /// <returns>Paged collection of withdrawals</returns>
 public static async Task <PagedResponse <List <Withdrawal> > > GetWithdrawalHistory(this IKuCoinDotNet service, string symbol, DepositStatus status, int page = 0, int pageSize = 0)
 {
     return(await service.GetWithdrawalHistory(symbol : symbol, status : status, page : page, pageSize : pageSize));
 }