Package org.knowm.xchange.btcturk
Interface BTCTurkAuthenticated
- All Superinterfaces:
BTCTurk
- Author:
- mertguner
-
Method Summary
Modifier and TypeMethodDescriptioncancelDepositRequest
(String balanceRequestId, String apiKey, si.mazi.rescu.SynchronizedValueFactory<Long> stamp, si.mazi.rescu.ParamsDigest signature) Deprecated.by BtcTurkcancelWithdrawalRequest
(String balanceRequestId, String apiKey, si.mazi.rescu.SynchronizedValueFactory<Long> stamp, si.mazi.rescu.ParamsDigest signature) Deprecated.by BtcTurkgetBalance
(String apiKey, si.mazi.rescu.SynchronizedValueFactory<Long> stamp, si.mazi.rescu.ParamsDigest signature) Get the authenticated account's balance.getDepositRequest
(String apiKey, si.mazi.rescu.SynchronizedValueFactory<Long> stamp, si.mazi.rescu.ParamsDigest signature) Deprecated.by BtcTurkgetOpenOrders
(String pairSymbol, String apiKey, si.mazi.rescu.SynchronizedValueFactory<Long> stamp, si.mazi.rescu.ParamsDigest signature) Get all open orders of the user.getUserTransactions
(int offset, int limit, String sort, String apiKey, si.mazi.rescu.SynchronizedValueFactory<Long> stamp, si.mazi.rescu.ParamsDigest signature) Get the authenticated account's latest transactions.getWithdrawalRequest
(String apiKey, si.mazi.rescu.SynchronizedValueFactory<Long> stamp, si.mazi.rescu.ParamsDigest signature) Deprecated.by BtcTurksetCancelOrder
(String id, String apiKey, si.mazi.rescu.SynchronizedValueFactory<Long> stamp, si.mazi.rescu.ParamsDigest signature) Cancels order with given OrderIdsetDepositRequest
(String amount, String amountPrecision, String apiKey, si.mazi.rescu.SynchronizedValueFactory<Long> stamp, si.mazi.rescu.ParamsDigest signature) Deprecated.by BtcTurksetOrder
(String Price, String PricePrecision, String Amount, String AmountPrecision, int OrderType, int OrderMethod, String PairSymbol, int DenominatorPrecision, String Total, String TotalPrecision, String TriggerPrice, String TriggerPricePrecision, String apiKey, si.mazi.rescu.SynchronizedValueFactory<Long> stamp, si.mazi.rescu.ParamsDigest signature) Submits given Order.setWithdrawalRequest
(String Iban, String FriendlyName, Boolean FriendlyNameSave, String Amount, String AmountPrecision, Boolean HasBalanceRequest, String BalanceRequestId, String BankId, String BankName, String FirstName, String LastName, String apiKey, si.mazi.rescu.SynchronizedValueFactory<Long> stamp, si.mazi.rescu.ParamsDigest signature) Deprecated.by BtcTurk
-
Method Details
-
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:
-
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:
-
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:
-
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:
-
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 BTCTurkCancelOrderRequestapiKey
-stamp
-signature
-- Returns:
- True if order was cancelled, false otherwise
- Throws:
IOException
- See Also:
-
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 BtcTurkGet the deposit money info- Parameters:
apiKey
-stamp
-signature
-- Returns:
- The deposit money. Null if there was an error
- Throws:
IOException
- See Also:
-
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 BtcTurkSend the deposit money request, and return the deposit money request info.- Parameters:
amount
- in BTCTurkDepositRequestamountPrecision
- in BTCTurkDepositRequestapiKey
-stamp
-signature
-- Returns:
- If a request is already, return the deposit money info. Null if there was an error
- Throws:
IOException
- See Also:
-
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 BtcTurkCancel money requests Deposit with given RequestId.- Parameters:
balanceRequestId
-apiKey
-stamp
-signature
-- Returns:
- True if request was cancelled, false otherwise
- Throws:
IOException
- See Also:
-
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 BtcTurkGet the withdrawal money info- Parameters:
apiKey
-stamp
-signature
-- Returns:
- The withdrawal money. Null if there was an error
- Throws:
IOException
- See Also:
-
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 BtcTurkSend the withdrawal money request, and return the withdrawal money request info.- Parameters:
Iban
- in BTCTurkWithdrawalRequestFriendlyName
- in BTCTurkWithdrawalRequestFriendlyNameSave
- in BTCTurkWithdrawalRequestAmount
- in BTCTurkWithdrawalRequestAmountPrecision
- in BTCTurkWithdrawalRequestHasBalanceRequest
- in BTCTurkWithdrawalRequestBalanceRequestId
- in BTCTurkWithdrawalRequestBankId
- in BTCTurkWithdrawalRequestBankName
- in BTCTurkWithdrawalRequestFirstName
- in BTCTurkWithdrawalRequestLastName
- in BTCTurkWithdrawalRequestapiKey
-stamp
-signature
-- Returns:
- If a request is already, return the withdrawal money info. Null if there was an error
- Throws:
IOException
- See Also:
-
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 BtcTurkCancel money requests Withdrawal with given RequestId- Parameters:
balanceRequestId
-apiKey
-stamp
-signature
-- Returns:
- True if request was cancelled, false otherwise
- Throws:
IOException
- See Also:
-