Interface BitbayAuthenticated


  • @Path("/Trading/tradingApi.php")
    @Consumes("application/x-www-form-urlencoded")
    @Produces("application/json")
    public interface BitbayAuthenticated
    Author:
    Z. Dolezal
    • Method Detail

      • 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

        @POST
        @FormParam("method")
        List<Map> history​(@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("limit")
                          int limit)
      • transactions

        @POST
        @FormParam("method")
        List<Map> transactions​(@HeaderParam("API-Key")
                               String apiKey,
                               @HeaderParam("API-Hash")
                               si.mazi.rescu.ParamsDigest sign,
                               @FormParam("moment")
                               si.mazi.rescu.SynchronizedValueFactory<Long> timestamp,
                               @FormParam("market")
                               String market)