Interface BTCTurkAuthenticated

  • All Superinterfaces:
    BTCTurk

    @Path("api/")
    @Produces("application/json")
    public interface BTCTurkAuthenticated
    extends BTCTurk
    Author:
    mertguner
    • Method Detail

      • getBalance

        @GET
        @Path("balance/")
        BTCTurkAccountBalance getBalance​(@HeaderParam("X-PCK")
                                         String apiKey,
                                         @HeaderParam("X-Stamp")
                                         si.mazi.rescu.SynchronizedValueFactory<Long> stamp,
                                         @HeaderParam("X-Signature")
                                         si.mazi.rescu.ParamsDigest signature)
                                  throws IOException
        Get the authenticated account's balance.
        Parameters:
        apiKey -
        stamp -
        signature -
        Returns:
        An object of type AccountBalance. Null if account balance cannot be retreived.
        Throws:
        IOException
        See Also:
        BTCTurkAccountBalance
      • getUserTransactions

        @GET
        @Path("userTransactions/")
        List<BTCTurkUserTransactions> getUserTransactions​(@QueryParam("offset")
                                                          int offset,
                                                          @QueryParam("limit")
                                                          int limit,
                                                          @QueryParam("sort")
                                                          String sort,
                                                          @HeaderParam("X-PCK")
                                                          String apiKey,
                                                          @HeaderParam("X-Stamp")
                                                          si.mazi.rescu.SynchronizedValueFactory<Long> stamp,
                                                          @HeaderParam("X-Signature")
                                                          si.mazi.rescu.ParamsDigest signature)
                                                   throws IOException
        Get the authenticated account's latest transactions. Includes all balance changes. Buys, sells, deposits, withdrawals and fees.
        Parameters:
        offset -
        limit -
        sort -
        apiKey -
        stamp -
        signature -
        Returns:
        A list of object type UserTransOutput. Null if user tranasctions cannot be retreived.
        Throws:
        IOException
        See Also:
        BTCTurkUserTransactions
      • getOpenOrders

        @GET
        @Path("openOrders/")
        List<BTCTurkOpenOrders> getOpenOrders​(@QueryParam("pairSymbol")
                                              String pairSymbol,
                                              @HeaderParam("X-PCK")
                                              String apiKey,
                                              @HeaderParam("X-Stamp")
                                              si.mazi.rescu.SynchronizedValueFactory<Long> stamp,
                                              @HeaderParam("X-Signature")
                                              si.mazi.rescu.ParamsDigest signature)
                                       throws IOException
        Get all open orders of the user.
        Parameters:
        pairSymbol -
        apiKey -
        stamp -
        signature -
        Returns:
        Users open orders listed. Null if there was an error.
        Throws:
        IOException
        See Also:
        BTCTurkOpenOrders
      • setOrder

        @POST
        @Path("exchange/")
        BTCTurkExchangeResult setOrder​(@FormParam("Price")
                                       String Price,
                                       @FormParam("PricePrecision")
                                       String PricePrecision,
                                       @FormParam("Amount")
                                       String Amount,
                                       @FormParam("AmountPrecision")
                                       String AmountPrecision,
                                       @FormParam("OrderType")
                                       int OrderType,
                                       @FormParam("OrderMethod")
                                       int OrderMethod,
                                       @FormParam("PairSymbol")
                                       String PairSymbol,
                                       @FormParam("DenominatorPrecision")
                                       int DenominatorPrecision,
                                       @FormParam("Total")
                                       String Total,
                                       @FormParam("TotalPrecision")
                                       String TotalPrecision,
                                       @FormParam("TriggerPrice")
                                       String TriggerPrice,
                                       @FormParam("TriggerPricePrecision")
                                       String TriggerPricePrecision,
                                       @HeaderParam("X-PCK")
                                       String apiKey,
                                       @HeaderParam("X-Stamp")
                                       si.mazi.rescu.SynchronizedValueFactory<Long> stamp,
                                       @HeaderParam("X-Signature")
                                       si.mazi.rescu.ParamsDigest signature)
                                throws IOException
        Submits given Order. Requires authentication.
        Returns:
        True if Order is submitted successfully, false if it was not.
        Throws:
        IOException
        See Also:
        BTCTurkExchangeResult
      • setCancelOrder

        @POST
        @Path("cancelOrder/")
        BTCTurkCancelOrderResult setCancelOrder​(@FormParam("id")
                                                String id,
                                                @HeaderParam("X-PCK")
                                                String apiKey,
                                                @HeaderParam("X-Stamp")
                                                si.mazi.rescu.SynchronizedValueFactory<Long> stamp,
                                                @HeaderParam("X-Signature")
                                                si.mazi.rescu.ParamsDigest signature)
                                         throws IOException
        Cancels order with given OrderId
        Parameters:
        id - in BTCTurkCancelOrderRequest
        apiKey -
        stamp -
        signature -
        Returns:
        True if order was cancelled, false otherwise
        Throws:
        IOException
        See Also:
        BTCTurkCancelOrderResult
      • getDepositRequest

        @GET
        @Path("DepositMoney/")
        BTCTurkDepositRequestResult getDepositRequest​(@HeaderParam("X-PCK")
                                                      String apiKey,
                                                      @HeaderParam("X-Stamp")
                                                      si.mazi.rescu.SynchronizedValueFactory<Long> stamp,
                                                      @HeaderParam("X-Signature")
                                                      si.mazi.rescu.ParamsDigest signature)
                                               throws IOException
        Deprecated.
        by BtcTurk
        Get the deposit money info
        Parameters:
        apiKey -
        stamp -
        signature -
        Returns:
        The deposit money. Null if there was an error
        Throws:
        IOException
        See Also:
        BTCTurkDepositRequestResult
      • setDepositRequest

        @POST
        @Path("DepositMoney/")
        BTCTurkDepositRequestResult setDepositRequest​(@FormParam("amount")
                                                      String amount,
                                                      @FormParam("amount_precision")
                                                      String amountPrecision,
                                                      @HeaderParam("X-PCK")
                                                      String apiKey,
                                                      @HeaderParam("X-Stamp")
                                                      si.mazi.rescu.SynchronizedValueFactory<Long> stamp,
                                                      @HeaderParam("X-Signature")
                                                      si.mazi.rescu.ParamsDigest signature)
                                               throws IOException
        Deprecated.
        by BtcTurk
        Send the deposit money request, and return the deposit money request info.
        Parameters:
        amount - in BTCTurkDepositRequest
        amountPrecision - in BTCTurkDepositRequest
        apiKey -
        stamp -
        signature -
        Returns:
        If a request is already, return the deposit money info. Null if there was an error
        Throws:
        IOException
        See Also:
        BTCTurkDepositRequestResult
      • cancelDepositRequest

        @DELETE
        @Path("DepositMoney/CancelOperation/")
        Boolean cancelDepositRequest​(@QueryParam("balanceRequestId")
                                     String balanceRequestId,
                                     @HeaderParam("X-PCK")
                                     String apiKey,
                                     @HeaderParam("X-Stamp")
                                     si.mazi.rescu.SynchronizedValueFactory<Long> stamp,
                                     @HeaderParam("X-Signature")
                                     si.mazi.rescu.ParamsDigest signature)
                              throws IOException
        Deprecated.
        by BtcTurk
        Cancel money requests Deposit with given RequestId.
        Parameters:
        balanceRequestId -
        apiKey -
        stamp -
        signature -
        Returns:
        True if request was cancelled, false otherwise
        Throws:
        IOException
        See Also:
        Boolean
      • getWithdrawalRequest

        @GET
        @Path("WithdrawalMoney/")
        BTCTurkWithdrawalRequestInfo getWithdrawalRequest​(@HeaderParam("X-PCK")
                                                          String apiKey,
                                                          @HeaderParam("X-Stamp")
                                                          si.mazi.rescu.SynchronizedValueFactory<Long> stamp,
                                                          @HeaderParam("X-Signature")
                                                          si.mazi.rescu.ParamsDigest signature)
                                                   throws IOException
        Deprecated.
        by BtcTurk
        Get the withdrawal money info
        Parameters:
        apiKey -
        stamp -
        signature -
        Returns:
        The withdrawal money. Null if there was an error
        Throws:
        IOException
        See Also:
        BTCTurkWithdrawalRequestInfo
      • setWithdrawalRequest

        @POST
        @Path("WithdrawalMoney/")
        BTCTurkWithdrawalRequestInfo setWithdrawalRequest​(@FormParam("iban")
                                                          String Iban,
                                                          @FormParam("friendly_name")
                                                          String FriendlyName,
                                                          @FormParam("friendly_name_save")
                                                          Boolean FriendlyNameSave,
                                                          @FormParam("amount")
                                                          String Amount,
                                                          @FormParam("amount_precision")
                                                          String AmountPrecision,
                                                          @FormParam("has_balance_request")
                                                          Boolean HasBalanceRequest,
                                                          @FormParam("balance_request_id")
                                                          String BalanceRequestId,
                                                          @FormParam("bank_id")
                                                          String BankId,
                                                          @FormParam("bank_name")
                                                          String BankName,
                                                          @FormParam("first_name")
                                                          String FirstName,
                                                          @FormParam("last_name")
                                                          String LastName,
                                                          @HeaderParam("X-PCK")
                                                          String apiKey,
                                                          @HeaderParam("X-Stamp")
                                                          si.mazi.rescu.SynchronizedValueFactory<Long> stamp,
                                                          @HeaderParam("X-Signature")
                                                          si.mazi.rescu.ParamsDigest signature)
                                                   throws IOException
        Deprecated.
        by BtcTurk
        Send the withdrawal money request, and return the withdrawal money request info.
        Parameters:
        Iban - in BTCTurkWithdrawalRequest
        FriendlyName - in BTCTurkWithdrawalRequest
        FriendlyNameSave - in BTCTurkWithdrawalRequest
        Amount - in BTCTurkWithdrawalRequest
        AmountPrecision - in BTCTurkWithdrawalRequest
        HasBalanceRequest - in BTCTurkWithdrawalRequest
        BalanceRequestId - in BTCTurkWithdrawalRequest
        BankId - in BTCTurkWithdrawalRequest
        BankName - in BTCTurkWithdrawalRequest
        FirstName - in BTCTurkWithdrawalRequest
        LastName - in BTCTurkWithdrawalRequest
        apiKey -
        stamp -
        signature -
        Returns:
        If a request is already, return the withdrawal money info. Null if there was an error
        Throws:
        IOException
        See Also:
        BTCTurkWithdrawalRequestInfo
      • cancelWithdrawalRequest

        @DELETE
        @Path("WithdrawalMoney/CancelOperation/")
        Boolean cancelWithdrawalRequest​(@QueryParam("balanceRequestId")
                                        String balanceRequestId,
                                        @HeaderParam("X-PCK")
                                        String apiKey,
                                        @HeaderParam("X-Stamp")
                                        si.mazi.rescu.SynchronizedValueFactory<Long> stamp,
                                        @HeaderParam("X-Signature")
                                        si.mazi.rescu.ParamsDigest signature)
                                 throws IOException
        Deprecated.
        by BtcTurk
        Cancel money requests Withdrawal with given RequestId
        Parameters:
        balanceRequestId -
        apiKey -
        stamp -
        signature -
        Returns:
        True if request was cancelled, false otherwise
        Throws:
        IOException
        See Also:
        Boolean