Package org.knowm.xchange.bitso
Interface BitsoAuthenticated
-
@Path("v2") @Consumes("application/x-www-form-urlencoded") @Produces("application/json") public interface BitsoAuthenticated- Author:
- Benedikt Bünz See https://www.bitso.net/api/ for up-to-date docs., Piotr Ładyżyński
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BitsoOrderbuy(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, BigDecimal amount, BigDecimal price)booleancancelOrder(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String orderId)BitsoBalancegetBalance(String apiKey, BitsoDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce)BitsoDepositAddressgetBitcoinDepositAddress(String apiKey, BitsoDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce)BitsoOrder[]getOpenOrders(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce)BitsoUserTransaction[]getUserTransactions(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, long numberOfTransactions)BitsoUserTransaction[]getUserTransactions(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, long numberOfTransactions, long offset, String sort)BitsoOrdersell(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, BigDecimal amount, BigDecimal price)StringwithdrawBitcoin(String apiKey, BitsoDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, BigDecimal amount, String address)StringwithdrawToRipple(String apiKey, BitsoDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, BigDecimal amount, String currency, String rippleAddress)
-
-
-
Method Detail
-
getOpenOrders
@POST @Path("open_orders/") BitsoOrder[] getOpenOrders(@FormParam("key") String apiKey, @FormParam("signature") si.mazi.rescu.ParamsDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws BitsoException, IOException- Throws:
BitsoExceptionIOException
-
buy
@POST @Path("buy/") BitsoOrder buy(@FormParam("key") String apiKey, @FormParam("signature") si.mazi.rescu.ParamsDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("amount") BigDecimal amount, @FormParam("price") BigDecimal price) throws BitsoException, IOException- Throws:
BitsoExceptionIOException
-
sell
@POST @Path("sell/") BitsoOrder sell(@FormParam("key") String apiKey, @FormParam("signature") si.mazi.rescu.ParamsDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("amount") BigDecimal amount, @FormParam("price") BigDecimal price) throws BitsoException, IOException- Throws:
BitsoExceptionIOException
-
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") String orderId) throws BitsoException, IOException- Returns:
- true if order has been canceled.
- Throws:
BitsoExceptionIOException
-
getUserTransactions
@POST @Path("user_transactions/") BitsoUserTransaction[] 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 BitsoException, IOException- Throws:
BitsoExceptionIOException
-
getUserTransactions
@POST @Path("user_transactions/") BitsoUserTransaction[] 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 BitsoException, IOException- Throws:
BitsoExceptionIOException
-
getBalance
@POST @Path("balance/") BitsoBalance getBalance(@FormParam("key") String apiKey, @FormParam("signature") BitsoDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws BitsoException, IOException- Throws:
BitsoExceptionIOException
-
getBitcoinDepositAddress
@POST @Path("bitcoin_deposit_address/") BitsoDepositAddress getBitcoinDepositAddress(@FormParam("key") String apiKey, @FormParam("signature") BitsoDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws BitsoException, IOException- Throws:
BitsoExceptionIOException
-
withdrawBitcoin
@POST @Path("bitcoin_withdrawal/") String withdrawBitcoin(@FormParam("key") String apiKey, @FormParam("signature") BitsoDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("amount") BigDecimal amount, @FormParam("address") String address) throws BitsoException, IOException- Throws:
BitsoExceptionIOException
-
withdrawToRipple
@POST @Path("ripple_withdrawal/") String withdrawToRipple(@FormParam("key") String apiKey, @FormParam("signature") BitsoDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("amount") BigDecimal amount, @FormParam("currency") String currency, @FormParam("address") String rippleAddress) throws BitsoException, IOException- Throws:
BitsoExceptionIOException
-
-