Interface BinanceAuthenticated

All Superinterfaces:
Binance

@Path("")
@Produces("application/json")
public interface BinanceAuthenticated
extends Binance
  • Field Details

  • Method Details

    • newOrder

      @POST @Path("api/v3/order") BinanceNewOrder newOrder​(@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
    • 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
    • cancelAllOpenOrders

      @DELETE @Path("api/v3/openOrders") List<BinanceCancelledOrder> cancelAllOpenOrders​(@QueryParam("symbol") String symbol, @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
    • openOrders

      @GET @Path("api/v3/openOrders") List<BinanceOrder> openOrders​(@QueryParam("symbol") String symbol, @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
    • allOrders

      @GET @Path("api/v3/allOrders") List<BinanceOrder> allOrders​(@QueryParam("symbol") String symbol, @QueryParam("orderId") Long orderId, @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
    • account

      @GET @Path("api/v3/account") BinanceAccountInformation account​(@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
    • withdraw

      @POST @Path("/sapi/v1/capital/withdraw/apply") WithdrawRequest withdraw​(@FormParam("coin") String coin, @FormParam("address") String address, @FormParam("addressTag") String addressTag, @FormParam("amount") BigDecimal amount, @FormParam("name") String name, @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
    • depositHistory

      @GET @Path("/sapi/v1/capital/deposit/hisrec") List<BinanceDeposit> depositHistory​(@QueryParam("coin") String coin, @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("/sapi/v1/capital/withdraw/history") List<BinanceWithdraw> withdrawHistory​(@QueryParam("coin") String coin, @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("/sapi/v1/asset/dribblet ") 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("/sapi/v1/sub-account/sub/transfer/history") List<TransferHistory> transferHistory​(@QueryParam("fromEmail") String fromEmail, @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
    • depositAddress

      @GET @Path("/sapi/v1/capital/deposit/address") DepositAddress depositAddress​(@QueryParam("coin") String coin, @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
    • assetDetail

      @GET @Path("/sapi/v1/asset/assetDetail") Map<String,​AssetDetail> assetDetail​(@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
    • startUserDataStream

      @POST @Path("/api/v3/userDataStream") BinanceListenKey startUserDataStream​(@HeaderParam("X-MBX-APIKEY") String apiKey) throws IOException, BinanceException
      Returns a listen key for websocket login.
      Parameters:
      apiKey - the api key
      Returns:
      Throws:
      BinanceException
      IOException
    • 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