Interface GlobitexAuthenticated

  • All Superinterfaces:
    Globitex

    @Path("/api/1/")
    @Produces("application/json")
    public interface GlobitexAuthenticated
    extends Globitex
    • Method Detail

      • getAccounts

        @GET
        @Path("payment/accounts")
        GlobitexAccounts getAccounts​(@HeaderParam("X-API-Key")
                                     String apiKey,
                                     @HeaderParam("X-Nonce")
                                     si.mazi.rescu.SynchronizedValueFactory<Long> nonce,
                                     @HeaderParam("X-Signature")
                                     si.mazi.rescu.ParamsDigest signature)
                              throws IOException
        Throws:
        IOException
      • getTradeHistory

        @GET
        @Path("trading/trades")
        GlobitexUserTrades getTradeHistory​(@HeaderParam("X-API-Key")
                                           String apiKey,
                                           @HeaderParam("X-Nonce")
                                           si.mazi.rescu.SynchronizedValueFactory<Long> nonce,
                                           @HeaderParam("X-Signature")
                                           si.mazi.rescu.ParamsDigest signature,
                                           @QueryParam("by")
                                           String sortBy,
                                           @QueryParam("startIndex")
                                           int startIndex,
                                           @QueryParam("maxResults")
                                           int limit,
                                           @QueryParam("symbols")
                                           String currencies,
                                           @QueryParam("account")
                                           String account)
                                    throws IOException
        Throws:
        IOException
      • getActiveOrders

        @GET
        @Path("trading/orders/active")
        GlobitexActiveOrders getActiveOrders​(@HeaderParam("X-API-Key")
                                             String apiKey,
                                             @HeaderParam("X-Nonce")
                                             si.mazi.rescu.SynchronizedValueFactory<Long> nonce,
                                             @HeaderParam("X-Signature")
                                             si.mazi.rescu.ParamsDigest signature,
                                             @QueryParam("symbol")
                                             String symbol,
                                             @QueryParam("clientOrderId")
                                             String clientOrderId,
                                             @QueryParam("account")
                                             String account)
                                      throws IOException
        Throws:
        IOException
      • placeNewOrder

        @POST
        @Path("trading/new_order")
        GlobitexExecutionReport placeNewOrder​(@HeaderParam("X-API-Key")
                                              String apiKey,
                                              @HeaderParam("X-Nonce")
                                              si.mazi.rescu.SynchronizedValueFactory<Long> nonce,
                                              @HeaderParam("X-Signature")
                                              si.mazi.rescu.ParamsDigest signature,
                                              @FormParam("account")
                                              String account,
                                              @FormParam("symbol")
                                              String symbol,
                                              @FormParam("side")
                                              String side,
                                              @FormParam("price")
                                              String price,
                                              @FormParam("quantity")
                                              String quantity)
                                       throws IOException
        Throws:
        IOException
      • cancelOrder

        @POST
        @Path("trading/cancel_order")
        GlobitexExecutionReport cancelOrder​(@HeaderParam("X-API-Key")
                                            String apiKey,
                                            @HeaderParam("X-Nonce")
                                            si.mazi.rescu.SynchronizedValueFactory<Long> nonce,
                                            @HeaderParam("X-Signature")
                                            si.mazi.rescu.ParamsDigest signature,
                                            @FormParam("clientOrderId")
                                            String clientOrderId)
                                     throws IOException
        Throws:
        IOException