All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kucoin.sdk.rest.interfaces.DepositAPI Maven / Gradle / Ivy

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;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy