Package org.knowm.xchange.kucoin.service
Interface WithdrawalAPI
@Path("/api/v1/withdrawals")
@Produces("application/json")
public interface WithdrawalAPI
-
Method Summary
Modifier and Type Method Description KucoinResponse<ApplyWithdrawResponse>
applyWithdraw(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String apiPassphrase, ApplyWithdrawApiRequest req)
Apply withdraw.KucoinResponse<Pagination<WithdrawalResponse>>
getWithdrawalsList(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String apiPassphrase, String currency, String status, Long startAt, Long endAt, Integer pageSize, Integer currentPage)
Get Withdrawals List.
-
Method Details
-
applyWithdraw
@POST @Consumes("application/json") KucoinResponse<ApplyWithdrawResponse> applyWithdraw(@HeaderParam("KC-API-KEY") String apiKey, @HeaderParam("KC-API-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("KC-API-TIMESTAMP") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @HeaderParam("KC-API-PASSPHRASE") String apiPassphrase, ApplyWithdrawApiRequest req) throws IOExceptionApply withdraw.- Parameters:
req
- creation request- Throws:
IOException
-
getWithdrawalsList
@GET KucoinResponse<Pagination<WithdrawalResponse>> getWithdrawalsList(@HeaderParam("KC-API-KEY") String apiKey, @HeaderParam("KC-API-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("KC-API-TIMESTAMP") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @HeaderParam("KC-API-PASSPHRASE") String apiPassphrase, @QueryParam("currency") String currency, @QueryParam("status") String status, @QueryParam("startAt") Long startAt, @QueryParam("endAt") Long endAt, @QueryParam("pageSize") Integer pageSize, @QueryParam("currentPage") Integer currentPage) throws IOExceptionGet Withdrawals List.- Parameters:
currency
- string [optional] Currency codestatus
- string [optional] Status. Available value: PROCESSING, WALLET_PROCESSING, SUCCESS, and FAILUREstartAt
- long [optional] Start time. Unix timestamp calculated in milliseconds will return only items which were created after the start time.endAt
- long [optional] End time. Unix timestamp calculated in milliseconds will return only items which were created before the end time.pageSize
- The page size.currentPage
- The page to select.- Returns:
- A page of orders.
- Throws:
IOException
-