Package org.knowm.xchange.cryptonit2
Interface CryptonitAuthenticated
-
@Path("api") @Consumes("application/x-www-form-urlencoded") @Produces("application/json") public interface CryptonitAuthenticated- Author:
- yurivin see api spcification https://dev-dev.dyn.cryptonit.net/en/api
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancancelAllOrders(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce)booleancancelOrder(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, int orderId)CryptonitWithdrawalcryptoWithdrawal(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String currency, BigDecimal amount, String address, String password)CryptonitWithdrawalfiatWithdrawal(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String currency, BigDecimal amount, Integer method, String password, String transferDetails)CryptonitBalancegetBalance(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce)CryptonitOrderStatusResponsegetOrderStatus(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, long orderId)CryptonitUserTransaction[]getUserTransactions(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, long numberOfTransactions)CryptonitUserTransaction[]getUserTransactions(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, long numberOfTransactions, long offset, String sort)WithdrawalRequest[]getWithdrawalRequests(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce)
-
-
-
Method Detail
-
cancelOrder
@POST @Path("cancel_order/") boolean cancelOrder(@FormParam("key") String apiKey, @FormParam("signature") si.mazi.rescu.ParamsDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("id") int orderId) throws CryptonitException, IOException- Returns:
- true if order has been canceled.
- Throws:
CryptonitExceptionIOException
-
cancelAllOrders
@POST @Path("cancel_all_orders/") boolean cancelAllOrders(@FormParam("key") String apiKey, @FormParam("signature") si.mazi.rescu.ParamsDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws CryptonitException, IOException- Returns:
- true if order has been canceled.
- Throws:
CryptonitExceptionIOException
-
getBalance
@POST @Path("balance/") CryptonitBalance getBalance(@FormParam("key") String apiKey, @FormParam("signature") si.mazi.rescu.ParamsDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws CryptonitException, IOException- Throws:
CryptonitExceptionIOException
-
getUserTransactions
@POST @Path("user_transactions/") CryptonitUserTransaction[] getUserTransactions(@FormParam("key") String apiKey, @FormParam("signature") si.mazi.rescu.ParamsDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("limit") long numberOfTransactions) throws CryptonitException, IOException- Throws:
CryptonitExceptionIOException
-
getUserTransactions
@POST @Path("user_transactions/") CryptonitUserTransaction[] getUserTransactions(@FormParam("key") String apiKey, @FormParam("signature") si.mazi.rescu.ParamsDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("limit") long numberOfTransactions, @FormParam("offset") long offset, @FormParam("sort") String sort) throws CryptonitException, IOException- Throws:
CryptonitExceptionIOException
-
getWithdrawalRequests
@POST @Path("withdrawal_requests/") WithdrawalRequest[] getWithdrawalRequests(@FormParam("key") String apiKey, @FormParam("signature") si.mazi.rescu.ParamsDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws CryptonitException, IOException- Throws:
CryptonitExceptionIOException
-
getOrderStatus
@POST @Path("order_status/") CryptonitOrderStatusResponse getOrderStatus(@FormParam("key") String apiKey, @FormParam("signature") si.mazi.rescu.ParamsDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("id") long orderId) throws CryptonitException, IOException- Throws:
CryptonitExceptionIOException
-
cryptoWithdrawal
@POST @Path("crypto_withdrawal/") CryptonitWithdrawal cryptoWithdrawal(@FormParam("key") String apiKey, @FormParam("signature") si.mazi.rescu.ParamsDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("currency") String currency, @FormParam("amount") BigDecimal amount, @FormParam("address") String address, @FormParam("password") String password) throws CryptonitException, IOException- Throws:
CryptonitExceptionIOException
-
fiatWithdrawal
@POST @Path("fiat_withdrawal/") CryptonitWithdrawal fiatWithdrawal(@FormParam("key") String apiKey, @FormParam("signature") si.mazi.rescu.ParamsDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("currency") String currency, @FormParam("amount") BigDecimal amount, @FormParam("method") Integer method, @FormParam("password") String password, @FormParam("transferDetails") String transferDetails) throws CryptonitException, IOException- Throws:
CryptonitExceptionIOException
-
-