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
Modifier and TypeMethodDescriptionbuy
(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, BigDecimal amount, BigDecimal price) boolean
cancelOrder
(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String orderId) getBalance
(String apiKey, BitsoDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) getBitcoinDepositAddress
(String apiKey, BitsoDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) getOpenOrders
(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) getUserTransactions
(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, long numberOfTransactions) getUserTransactions
(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, long numberOfTransactions, long offset, String sort) sell
(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, BigDecimal amount, BigDecimal price) withdrawBitcoin
(String apiKey, BitsoDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, BigDecimal amount, String address) withdrawToRipple
(String apiKey, BitsoDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, BigDecimal amount, String currency, String rippleAddress)
-
Method Details
-
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:
BitsoException
IOException
-
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:
BitsoException
IOException
-
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:
BitsoException
IOException
-
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:
BitsoException
IOException
-
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:
BitsoException
IOException
-
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:
BitsoException
IOException
-
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:
BitsoException
IOException
-
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:
BitsoException
IOException
-
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:
BitsoException
IOException
-
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:
BitsoException
IOException
-