com.kucoin.sdk.rest.interfaces.retrofit.AccountAPIRetrofit 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.retrofit;
import com.kucoin.sdk.rest.request.AccountCreateRequest;
import com.kucoin.sdk.rest.request.AccountTransferRequest;
import com.kucoin.sdk.rest.response.AccountBalanceResponse;
import com.kucoin.sdk.rest.response.AccountBalancesResponse;
import com.kucoin.sdk.rest.response.AccountDetailResponse;
import com.kucoin.sdk.rest.response.AccountHoldsResponse;
import com.kucoin.sdk.rest.response.KucoinResponse;
import com.kucoin.sdk.rest.response.Pagination;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.Query;
import java.util.List;
import java.util.Map;
/**
* Created by chenshiwei on 2019/1/10.
*/
public interface AccountAPIRetrofit {
@GET("api/v1/accounts")
Call>> getAccountList(
@Query("currency") String currency, @Query("type") String type);
@GET("api/v1/accounts/{accountId}")
Call> getAccount(@Path("accountId") String accountId);
@POST("api/v1/accounts")
Call>> addAccount(@Body AccountCreateRequest request);
@GET("api/v1/accounts/{accountId}/ledgers")
Call>> getAccountDetail(
@Path("accountId") String accountId,
@Query("currentPage") int currentPage,
@Query("pageSize") int pageSize,
@Query("startAt") long startAt,
@Query("endAt") long endAt);
@GET("api/v1/accounts/{accountId}/holds")
Call>> getAccountHold(
@Path("accountId") String accountId,
@Query("currentPage") int currentPage,
@Query("pageSize") int pageSize);
@POST("api/v1/accounts/inner-transfer")
Call>> applyTransfer(
@Body AccountTransferRequest request);
}