com.kucoin.sdk.rest.interfaces.DepositAPI 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.response.DepositAddressResponse;
import com.kucoin.sdk.rest.response.DepositResponse;
import com.kucoin.sdk.rest.response.Pagination;
import java.io.IOException;
/**
* Created by chenshiwei on 2019/1/9.
*/
public interface DepositAPI {
/**
* Create deposit address of currency for deposit. You can just create one deposit address.
*
* @param currency the code of the currency
* @return Details of a deposit address.
*/
DepositAddressResponse createDepositAddress(String currency) throws IOException;
/**
* Get deposit address of currency for deposit.
* If return data is null , you may need create a deposit address first.
*
* @param currency the code of the currency
* @return Details of a deposit address.
*/
DepositAddressResponse getDepositAddress(String currency) throws IOException;
/**
* Get deposit page list.
*
* @param currency Currency
* @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 status Status. Available value: PROCESSING, SUCCESS, and FAILURE
* @param currentPage
* @param pageSize
* @return A page of deposits.
*/
Pagination getDepositPageList(String currency, long startAt, long endAt,
String status, int currentPage,int pageSize) throws IOException;
}