Interface BinanceAuthenticated

  • All Superinterfaces:
    Binance

    @Path("")
    @Produces("application/json")
    public interface BinanceAuthenticated
    extends Binance
    • Method Detail

      • testNewOrder

        @POST
        @Path("api/v3/order/test")
        Object testNewOrder​(@FormParam("symbol")
                            String symbol,
                            @FormParam("side")
                            OrderSide side,
                            @FormParam("type")
                            OrderType type,
                            @FormParam("timeInForce")
                            TimeInForce timeInForce,
                            @FormParam("quantity")
                            BigDecimal quantity,
                            @FormParam("price")
                            BigDecimal price,
                            @FormParam("newClientOrderId")
                            String newClientOrderId,
                            @FormParam("stopPrice")
                            BigDecimal stopPrice,
                            @FormParam("icebergQty")
                            BigDecimal icebergQty,
                            @FormParam("recvWindow")
                            Long recvWindow,
                            @FormParam("timestamp")
                            si.mazi.rescu.SynchronizedValueFactory<Long> timestamp,
                            @HeaderParam("X-MBX-APIKEY")
                            String apiKey,
                            @QueryParam("signature")
                            si.mazi.rescu.ParamsDigest signature)
                     throws IOException,
                            BinanceException
        Throws:
        IOException
        BinanceException
      • orderStatus

        @GET
        @Path("api/v3/order")
        BinanceOrder orderStatus​(@QueryParam("symbol")
                                 String symbol,
                                 @QueryParam("orderId")
                                 long orderId,
                                 @QueryParam("origClientOrderId")
                                 String origClientOrderId,
                                 @QueryParam("recvWindow")
                                 Long recvWindow,
                                 @QueryParam("timestamp")
                                 si.mazi.rescu.SynchronizedValueFactory<Long> timestamp,
                                 @HeaderParam("X-MBX-APIKEY")
                                 String apiKey,
                                 @QueryParam("signature")
                                 si.mazi.rescu.ParamsDigest signature)
                          throws IOException,
                                 BinanceException
        Throws:
        IOException
        BinanceException
      • cancelOrder

        @DELETE
        @Path("api/v3/order")
        BinanceCancelledOrder cancelOrder​(@QueryParam("symbol")
                                          String symbol,
                                          @QueryParam("orderId")
                                          long orderId,
                                          @QueryParam("origClientOrderId")
                                          String origClientOrderId,
                                          @QueryParam("newClientOrderId")
                                          String newClientOrderId,
                                          @QueryParam("recvWindow")
                                          Long recvWindow,
                                          @QueryParam("timestamp")
                                          si.mazi.rescu.SynchronizedValueFactory<Long> timestamp,
                                          @HeaderParam("X-MBX-APIKEY")
                                          String apiKey,
                                          @QueryParam("signature")
                                          si.mazi.rescu.ParamsDigest signature)
                                   throws IOException,
                                          BinanceException
        Throws:
        IOException
        BinanceException
      • myTrades

        @GET
        @Path("api/v3/myTrades")
        List<BinanceTrade> myTrades​(@QueryParam("symbol")
                                    String symbol,
                                    @QueryParam("limit")
                                    Integer limit,
                                    @QueryParam("startTime")
                                    Long startTime,
                                    @QueryParam("endTime")
                                    Long endTime,
                                    @QueryParam("fromId")
                                    Long fromId,
                                    @QueryParam("recvWindow")
                                    Long recvWindow,
                                    @QueryParam("timestamp")
                                    si.mazi.rescu.SynchronizedValueFactory<Long> timestamp,
                                    @HeaderParam("X-MBX-APIKEY")
                                    String apiKey,
                                    @QueryParam("signature")
                                    si.mazi.rescu.ParamsDigest signature)
                             throws IOException,
                                    BinanceException
        Throws:
        IOException
        BinanceException
      • depositHistory

        @GET
        @Path("wapi/v3/depositHistory.html")
        DepositList depositHistory​(@QueryParam("asset")
                                   String asset,
                                   @QueryParam("startTime")
                                   Long startTime,
                                   @QueryParam("endTime")
                                   Long endTime,
                                   @QueryParam("recvWindow")
                                   Long recvWindow,
                                   @QueryParam("timestamp")
                                   si.mazi.rescu.SynchronizedValueFactory<Long> timestamp,
                                   @HeaderParam("X-MBX-APIKEY")
                                   String apiKey,
                                   @QueryParam("signature")
                                   si.mazi.rescu.ParamsDigest signature)
                            throws IOException,
                                   BinanceException
        Throws:
        IOException
        BinanceException
      • withdrawHistory

        @GET
        @Path("wapi/v3/withdrawHistory.html")
        WithdrawList withdrawHistory​(@QueryParam("asset")
                                     String asset,
                                     @QueryParam("startTime")
                                     Long startTime,
                                     @QueryParam("endTime")
                                     Long endTime,
                                     @QueryParam("recvWindow")
                                     Long recvWindow,
                                     @QueryParam("timestamp")
                                     si.mazi.rescu.SynchronizedValueFactory<Long> timestamp,
                                     @HeaderParam("X-MBX-APIKEY")
                                     String apiKey,
                                     @QueryParam("signature")
                                     si.mazi.rescu.ParamsDigest signature)
                              throws IOException,
                                     BinanceException
        Throws:
        IOException
        BinanceException
      • userAssetDribbletLog

        @GET
        @Path("/wapi/v3/userAssetDribbletLog.html")
        AssetDribbletLogResponse userAssetDribbletLog​(@QueryParam("recvWindow")
                                                      Long recvWindow,
                                                      @QueryParam("timestamp")
                                                      si.mazi.rescu.SynchronizedValueFactory<Long> timestamp,
                                                      @HeaderParam("X-MBX-APIKEY")
                                                      String apiKey,
                                                      @QueryParam("signature")
                                                      si.mazi.rescu.ParamsDigest signature)
                                               throws IOException,
                                                      BinanceException
        Fetch small amounts of assets exchanged BNB records.
        Parameters:
        recvWindow - optional
        timestamp -
        apiKey -
        signature -
        Returns:
        Throws:
        IOException
        BinanceException
      • assetDividend

        @GET
        @Path("/sapi/v1/asset/assetDividend")
        AssetDividendResponse assetDividend​(@QueryParam("asset")
                                            String asset,
                                            @QueryParam("startTime")
                                            Long startTime,
                                            @QueryParam("endTime")
                                            Long endTime,
                                            @QueryParam("recvWindow")
                                            Long recvWindow,
                                            @QueryParam("timestamp")
                                            si.mazi.rescu.SynchronizedValueFactory<Long> timestamp,
                                            @HeaderParam("X-MBX-APIKEY")
                                            String apiKey,
                                            @QueryParam("signature")
                                            si.mazi.rescu.ParamsDigest signature)
                                     throws IOException,
                                            BinanceException
        Fetch small amounts of assets exchanged BNB records.
        Parameters:
        asset - optional
        startTime - optional
        endTime - optional
        recvWindow - optional
        timestamp -
        apiKey -
        signature -
        Returns:
        Throws:
        IOException
        BinanceException
      • transferHistory

        @GET
        @Path("/wapi/v3/sub-account/transfer/history.html")
        TransferHistoryResponse transferHistory​(@QueryParam("email")
                                                String email,
                                                @QueryParam("startTime")
                                                Long startTime,
                                                @QueryParam("endTime")
                                                Long endTime,
                                                @QueryParam("page")
                                                Integer page,
                                                @QueryParam("limit")
                                                Integer limit,
                                                @QueryParam("recvWindow")
                                                Long recvWindow,
                                                @QueryParam("timestamp")
                                                si.mazi.rescu.SynchronizedValueFactory<Long> timestamp,
                                                @HeaderParam("X-MBX-APIKEY")
                                                String apiKey,
                                                @QueryParam("signature")
                                                si.mazi.rescu.ParamsDigest signature)
                                         throws IOException,
                                                BinanceException
        Throws:
        IOException
        BinanceException
      • transferSubUserHistory

        @GET
        @Path("/sapi/v1/sub-account/transfer/subUserHistory")
        List<TransferSubUserHistory> transferSubUserHistory​(@QueryParam("asset")
                                                            String asset,
                                                            @QueryParam("type")
                                                            Integer type,
                                                            @QueryParam("startTime")
                                                            Long startTime,
                                                            @QueryParam("endTime")
                                                            Long endTime,
                                                            @QueryParam("limit")
                                                            Integer limit,
                                                            @QueryParam("recvWindow")
                                                            Long recvWindow,
                                                            @QueryParam("timestamp")
                                                            si.mazi.rescu.SynchronizedValueFactory<Long> timestamp,
                                                            @HeaderParam("X-MBX-APIKEY")
                                                            String apiKey,
                                                            @QueryParam("signature")
                                                            si.mazi.rescu.ParamsDigest signature)
                                                     throws IOException,
                                                            BinanceException
        Throws:
        IOException
        BinanceException
      • keepAliveUserDataStream

        @PUT
        @Path("/api/v3/userDataStream?listenKey={listenKey}")
        Map<?,​?> keepAliveUserDataStream​(@HeaderParam("X-MBX-APIKEY")
                                               String apiKey,
                                               @PathParam("listenKey")
                                               String listenKey)
                                        throws IOException,
                                               BinanceException
        Keeps the authenticated websocket session alive.
        Parameters:
        apiKey - the api key
        listenKey - the api secret
        Returns:
        Throws:
        BinanceException
        IOException
      • closeUserDataStream

        @DELETE
        @Path("/api/v3/userDataStream?listenKey={listenKey}")
        Map<?,​?> closeUserDataStream​(@HeaderParam("X-MBX-APIKEY")
                                           String apiKey,
                                           @PathParam("listenKey")
                                           String listenKey)
                                    throws IOException,
                                           BinanceException
        Closes the websocket authenticated connection.
        Parameters:
        apiKey - the api key
        listenKey - the api secret
        Returns:
        Throws:
        BinanceException
        IOException