Package org.knowm.xchange.kucoin.service
Interface DepositAPI
@Path("/api")
@Produces("application/json")
public interface DepositAPI
-
Method Summary
Modifier and TypeMethodDescriptioncreateDepositAddress
(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String apiPassphrase, String currency, String chain) getDepositAddress
(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String apiPassphrase, String currency, String chain) getDepositAddresses
(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String apiPassphrase, String currency) getDepositList
(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String apiPassphrase, String currency, String status, Long startAt, Long endAt, Integer currentPage, Integer pageSize) Get Deposit List.
-
Method Details
-
getDepositList
@GET @Path("/v1/deposits") KucoinResponse<Pagination<DepositResponse>> getDepositList(@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("currentPage") Integer currentPage, @QueryParam("pageSize") Integer pageSize) throws IOException Get Deposit List.- Parameters:
currency
- string [optional] Currencystatus
- string [optional] Status. Available value: ROCESSING, 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.currentPage
- The page to select.pageSize
- The page size.- Returns:
- A page of orders.
- Throws:
IOException
-
createDepositAddress
@POST @Path("/v1/deposit-addresses") KucoinResponse<DepositAddressResponse> createDepositAddress(@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("chain") String chain) throws IOException - Throws:
IOException
-
getDepositAddress
@GET @Path("/v1/deposit-addresses") KucoinResponse<DepositAddressResponse> getDepositAddress(@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("chain") String chain) throws IOException - Throws:
IOException
-
getDepositAddresses
@GET @Path("/v2/deposit-addresses") KucoinResponse<List<DepositAddressResponse>> getDepositAddresses(@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) throws IOException - Throws:
IOException
-