Package org.knowm.xchange.bitbay
Interface BitbayAuthenticated
@Path("/Trading/tradingApi.php")
@Consumes("application/x-www-form-urlencoded")
@Produces("application/json")
public interface BitbayAuthenticated
- Author:
- Z. Dolezal
-
Method Summary
Modifier and TypeMethodDescriptioncancel
(String apiKey, si.mazi.rescu.ParamsDigest sign, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, long id) cancel - removes offer from the stock market Input: id : id used to recognize offer; you get it from trade method outputhistory
(String apiKey, si.mazi.rescu.ParamsDigest sign, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String currency, int limit) info
(String apiKey, si.mazi.rescu.ParamsDigest sign, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp) info - returns information about account balancesorders
(String apiKey, si.mazi.rescu.ParamsDigest sign, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp) orders - list of all your offers Input: (optional) limit : number of rows to show; if no specified, returns latest 50 orderstrade
(String apiKey, si.mazi.rescu.ParamsDigest sign, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String type, String currency, BigDecimal amount, String paymentCurrency, BigDecimal rate) trade - places offer at the stock market Input: type : offer type bid/buy or ask/sell currency : shortcut of main currency for offer (e.g.transactions
(String apiKey, si.mazi.rescu.ParamsDigest sign, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String market) transfer
(String apiKey, si.mazi.rescu.ParamsDigest sign, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String currency, String quantity, String address) withdraw
(String apiKey, si.mazi.rescu.ParamsDigest sign, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String currency, String quantity, String account, String express, String bicOrSwift)
-
Method Details
-
info
@POST @FormParam("method") BitbayAccountInfoResponse info(@HeaderParam("API-Key") String apiKey, @HeaderParam("API-Hash") si.mazi.rescu.ParamsDigest sign, @FormParam("moment") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp) throws IOException info - returns information about account balances- Throws:
IOException
-
trade
@POST @FormParam("method") BitbayTradeResponse trade(@HeaderParam("API-Key") String apiKey, @HeaderParam("API-Hash") si.mazi.rescu.ParamsDigest sign, @FormParam("moment") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @FormParam("type") String type, @FormParam("currency") String currency, @FormParam("amount") BigDecimal amount, @FormParam("payment_currency") String paymentCurrency, @FormParam("rate") BigDecimal rate) throws IOException trade - places offer at the stock market Input: type : offer type bid/buy or ask/sell currency : shortcut of main currency for offer (e.g. “BTC”) amount : quantity of main currency payment_currency : shortcut of currency used to pay for offer (e.g. “PLN”) rate : rate for offer- Throws:
IOException
-
cancel
@POST @FormParam("method") BitbayCancelResponse cancel(@HeaderParam("API-Key") String apiKey, @HeaderParam("API-Hash") si.mazi.rescu.ParamsDigest sign, @FormParam("moment") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @FormParam("id") long id) throws IOException cancel - removes offer from the stock market Input: id : id used to recognize offer; you get it from trade method output- Throws:
IOException
-
orders
@POST @FormParam("method") List<BitbayOrder> orders(@HeaderParam("API-Key") String apiKey, @HeaderParam("API-Hash") si.mazi.rescu.ParamsDigest sign, @FormParam("moment") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp) throws IOException orders - list of all your offers Input: (optional) limit : number of rows to show; if no specified, returns latest 50 orders- Throws:
IOException
-
transfer
@POST @FormParam("method") BitbayBaseResponse transfer(@HeaderParam("API-Key") String apiKey, @HeaderParam("API-Hash") si.mazi.rescu.ParamsDigest sign, @FormParam("moment") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @FormParam("currency") String currency, @FormParam("quantity") String quantity, @FormParam("address") String address) -
withdraw
@POST @FormParam("method") BitbayBaseResponse withdraw(@HeaderParam("API-Key") String apiKey, @HeaderParam("API-Hash") si.mazi.rescu.ParamsDigest sign, @FormParam("moment") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @FormParam("currency") String currency, @FormParam("quantity") String quantity, @FormParam("account") String account, @FormParam("express") String express, @FormParam("bic") String bicOrSwift) -
history
-
transactions
-