com.kucoin.sdk.rest.interfaces.WithdrawalAPI Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kucoin-java-sdk Show documentation
Show all versions of kucoin-java-sdk Show documentation
Fixed fork of the official Kucoin SDK
The newest version!
/**
* Copyright 2019 Mek Global Limited.
*/
package com.kucoin.sdk.rest.interfaces;
import com.kucoin.sdk.rest.request.WithdrawApplyRequest;
import com.kucoin.sdk.rest.response.Pagination;
import com.kucoin.sdk.rest.response.WithdrawApplyResponse;
import com.kucoin.sdk.rest.response.WithdrawQuotaResponse;
import com.kucoin.sdk.rest.response.WithdrawResponse;
import java.io.IOException;
/**
* Created by chenshiwei on 2019/1/9.
*/
public interface WithdrawalAPI {
/**
* get withdrawal quotas
*
* @param currency currency. e.g. BTC
* @return The withdrawal quotas.
*/
WithdrawQuotaResponse getWithdrawQuotas(String currency) throws IOException;
/**
* apply withdraw
*
* @param request
* @return A response containing the withdrawal id.
*/
WithdrawApplyResponse applyWithdraw(WithdrawApplyRequest request) throws IOException;
/**
* Only withdrawals in processing status could be cancelled.
*
* @param withdrawalId unique identity for withdrawal order
*/
void cancelWithdraw(String withdrawalId) throws IOException;
/**
* check withdrawals list
*
* @param currency Currency code
* @param status Status. Available value: PROCESSING, WALLET_PROCESSING, SUCCESS, and FAILURE
* @param startAt Start time. unix timestamp calculated in milliseconds, the creation time queried shall posterior to the start time.
* @param endAt End time. unix timestamp calculated in milliseconds, the creation time queried shall prior to the end time.
* @param currentPage
* @param pageSize
* @return A page of withdrawals.
*/
Pagination getWithdrawList(String currency, String status, long startAt,
long endAt, int currentPage, int pageSize) throws IOException;
}