Package org.knowm.xchange.kraken
Interface KrakenAuthenticated
- All Superinterfaces:
Kraken
-
Method Summary
Modifier and TypeMethodDescriptionaddOrder
(String pair, String type, String ordertype, String price, String secondaryPrice, String volume, String leverage, String positionTxId, String orderFlags, String startTime, String expireTime, String userRefId, Map<String, String> closeOrder, String timeInForce, String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) addOrderValidateOnly
(String pair, String type, String ordertype, String price, String secondaryPrice, String volume, String leverage, String positionTxId, String orderFlags, String startTime, String expireTime, String userRefId, boolean validateOnly, Map<String, String> closeOrder, String timeInForce, String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) balance
(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) cancelOrder
(String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String transactionId) closedOrders
(boolean includeTrades, String userReferenceId, String start, String end, String offset, String closeTime, String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) getDepositAddresses
(String assetPairs, String assets, String method, Boolean newAddress, String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) getDepositMethods
(String assetPairs, String assets, String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) getDepositStatus
(String assetPairs, String assets, String method, String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) getWebsocketToken
(String assetClass, String asset, String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) getWithdrawInfo
(String assetPairs, String assets, String key, BigDecimal amount, String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) getWithdrawStatus
(String assetPairs, String assets, String method, String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) ledgers
(String assetClass, String assets, String ledgerType, String start, String end, Long offset, String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) openOrders
(boolean includeTrades, String userReferenceId, String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) openPositions
(String transactionIds, boolean doCalcs, String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) queryLedgers
(String ledgerIds, String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) queryOrders
(boolean includeTrades, String userReferenceId, String transactionIds, String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) queryTrades
(boolean includeTrades, String transactionIds, String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) tradeBalance
(String assetClass, String asset, String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) tradeHistory
(String type, boolean includeTrades, String start, String end, Long offset, String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) Get trades historytradeVolume
(String assetPairs, String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) withdraw
(String assetPairs, String assets, String key, BigDecimal amount, String apiKey, si.mazi.rescu.ParamsDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) Methods inherited from interface org.knowm.xchange.kraken.Kraken
getAssetPairs, getAssets, getDepth, getOHLC, getServerTime, getSpread, getTicker, getTrades, getTrades
-
Method Details
-
balance
@POST @Path("private/Balance") @Consumes("application/x-www-form-urlencoded") KrakenBalanceResult balance(@HeaderParam("API-Key") String apiKey, @HeaderParam("API-Sign") si.mazi.rescu.ParamsDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws IOException - Throws:
IOException
-
getWebsocketToken
@POST @Path("private/GetWebSocketsToken") @Consumes("application/x-www-form-urlencoded") KrakenWebsocketTokenResult getWebsocketToken(@FormParam("validity") String assetClass, @FormParam("permissions") String asset, @HeaderParam("API-Key") String apiKey, @HeaderParam("API-Sign") si.mazi.rescu.ParamsDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws IOException - Throws:
IOException
-
tradeBalance
@POST @Path("private/TradeBalance") @Consumes("application/x-www-form-urlencoded") KrakenTradeBalanceInfoResult tradeBalance(@FormParam("aclass") String assetClass, @FormParam("asset") String asset, @HeaderParam("API-Key") String apiKey, @HeaderParam("API-Sign") si.mazi.rescu.ParamsDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws IOException - Throws:
IOException
-
ledgers
@POST @Path("private/Ledgers") @Consumes("application/x-www-form-urlencoded") KrakenLedgerResult ledgers(@FormParam("aclass") String assetClass, @FormParam("asset") String assets, @FormParam("type") String ledgerType, @FormParam("start") String start, @FormParam("end") String end, @FormParam("ofs") Long offset, @HeaderParam("API-Key") String apiKey, @HeaderParam("API-Sign") si.mazi.rescu.ParamsDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws IOException - Throws:
IOException
-
queryLedgers
@POST @Path("private/QueryLedgers") @Consumes("application/x-www-form-urlencoded") KrakenQueryLedgerResult queryLedgers(@FormParam("id") String ledgerIds, @HeaderParam("API-Key") String apiKey, @HeaderParam("API-Sign") si.mazi.rescu.ParamsDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws IOException - Throws:
IOException
-
addOrder
@POST @Path("private/AddOrder") @Consumes("application/x-www-form-urlencoded") KrakenOrderResult addOrder(@FormParam("pair") String pair, @FormParam("type") String type, @FormParam("ordertype") String ordertype, @FormParam("price") String price, @FormParam("price2") String secondaryPrice, @FormParam("volume") String volume, @FormParam("leverage") String leverage, @FormParam("position") String positionTxId, @FormParam("oflags") String orderFlags, @FormParam("starttm") String startTime, @FormParam("expiretm") String expireTime, @FormParam("userref") String userRefId, @FormParam("close") Map<String, String> closeOrder, @FormParam("timeinforce") String timeInForce, @HeaderParam("API-Key") String apiKey, @HeaderParam("API-Sign") si.mazi.rescu.ParamsDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws IOException- Throws:
IOException
-
addOrderValidateOnly
@POST @Path("private/AddOrder") @Consumes("application/x-www-form-urlencoded") KrakenOrderResult addOrderValidateOnly(@FormParam("pair") String pair, @FormParam("type") String type, @FormParam("ordertype") String ordertype, @FormParam("price") String price, @FormParam("price2") String secondaryPrice, @FormParam("volume") String volume, @FormParam("leverage") String leverage, @FormParam("position") String positionTxId, @FormParam("oflags") String orderFlags, @FormParam("starttm") String startTime, @FormParam("expiretm") String expireTime, @FormParam("userref") String userRefId, @FormParam("validate") boolean validateOnly, @FormParam("close") Map<String, String> closeOrder, @FormParam("timeinforce") String timeInForce, @HeaderParam("API-Key") String apiKey, @HeaderParam("API-Sign") si.mazi.rescu.ParamsDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws IOException- Throws:
IOException
-
cancelOrder
@POST @Path("private/CancelOrder") @Consumes("application/x-www-form-urlencoded") KrakenCancelOrderResult cancelOrder(@HeaderParam("API-Key") String apiKey, @HeaderParam("API-Sign") si.mazi.rescu.ParamsDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("txid") String transactionId) throws IOException - Throws:
IOException
-
openOrders
@POST @Path("private/OpenOrders") @Consumes("application/x-www-form-urlencoded") KrakenOpenOrdersResult openOrders(@FormParam("trades") boolean includeTrades, @FormParam("userref") String userReferenceId, @HeaderParam("API-Key") String apiKey, @HeaderParam("API-Sign") si.mazi.rescu.ParamsDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws IOException - Throws:
IOException
-
closedOrders
@POST @Path("private/ClosedOrders") @Consumes("application/x-www-form-urlencoded") KrakenClosedOrdersResult closedOrders(@FormParam("trades") boolean includeTrades, @FormParam("userref") String userReferenceId, @FormParam("start") String start, @FormParam("end") String end, @FormParam("ofs") String offset, @FormParam("closetime") String closeTime, @HeaderParam("API-Key") String apiKey, @HeaderParam("API-Sign") si.mazi.rescu.ParamsDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws IOException - Throws:
IOException
-
queryOrders
@POST @Path("private/QueryOrders") @Consumes("application/x-www-form-urlencoded") KrakenQueryOrderResult queryOrders(@FormParam("trades") boolean includeTrades, @FormParam("userref") String userReferenceId, @FormParam("txid") String transactionIds, @HeaderParam("API-Key") String apiKey, @HeaderParam("API-Sign") si.mazi.rescu.ParamsDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws IOException - Throws:
IOException
-
tradeHistory
@POST @Path("private/TradesHistory") @Consumes("application/x-www-form-urlencoded") KrakenTradeHistoryResult tradeHistory(@FormParam("type") String type, @FormParam("trades") boolean includeTrades, @FormParam("start") String start, @FormParam("end") String end, @FormParam("ofs") Long offset, @HeaderParam("API-Key") String apiKey, @HeaderParam("API-Sign") si.mazi.rescu.ParamsDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws IOException Get trades history- Parameters:
type
- ype = type of trade (optional) all = all types (default) any position = any position (open or closed) closed position = positions that have been closed closing position = any trade closing all or part of a position no position = non-positional tradesincludeTrades
- whether or not to include trades related to position in output (optional. default = false)start
- starting unix timestamp or trade tx id of results (optional. exclusive)end
- ending unix timestamp or trade tx id of results (optional. inclusive)offset
- result offset- Throws:
IOException
-
queryTrades
@POST @Path("private/QueryTrades") @Consumes("application/x-www-form-urlencoded") KrakenQueryTradeResult queryTrades(@FormParam("trades") boolean includeTrades, @FormParam("txid") String transactionIds, @HeaderParam("API-Key") String apiKey, @HeaderParam("API-Sign") si.mazi.rescu.ParamsDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws IOException - Throws:
IOException
-
openPositions
@POST @Path("private/OpenPositions") @Consumes("application/x-www-form-urlencoded") KrakenOpenPositionsResult openPositions(@FormParam("txid") String transactionIds, @FormParam("docalcs") boolean doCalcs, @HeaderParam("API-Key") String apiKey, @HeaderParam("API-Sign") si.mazi.rescu.ParamsDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws IOException - Throws:
IOException
-
tradeVolume
@POST @Path("private/TradeVolume") @Consumes("application/x-www-form-urlencoded") KrakenTradeVolumeResult tradeVolume(@FormParam("pair") String assetPairs, @HeaderParam("API-Key") String apiKey, @HeaderParam("API-Sign") si.mazi.rescu.ParamsDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws IOException - Throws:
IOException
-
getDepositAddresses
@POST @Path("private/DepositAddresses") @Consumes("application/x-www-form-urlencoded") KrakenDepositAddressResult getDepositAddresses(@FormParam("aclass") String assetPairs, @FormParam("asset") String assets, @FormParam("method") String method, @FormParam("new") Boolean newAddress, @HeaderParam("API-Key") String apiKey, @HeaderParam("API-Sign") si.mazi.rescu.ParamsDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws IOException - Throws:
IOException
-
getDepositMethods
@POST @Path("private/DepositMethods") @Consumes("application/x-www-form-urlencoded") KrakenDepositMethodsResults getDepositMethods(@FormParam("aclass") String assetPairs, @FormParam("asset") String assets, @HeaderParam("API-Key") String apiKey, @HeaderParam("API-Sign") si.mazi.rescu.ParamsDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws IOException - Throws:
IOException
-
getWithdrawInfo
@POST @Path("private/WithdrawInfo") @Consumes("application/x-www-form-urlencoded") WithdrawInfoResult getWithdrawInfo(@FormParam("aclass") String assetPairs, @FormParam("asset") String assets, @FormParam("key") String key, @FormParam("amount") BigDecimal amount, @HeaderParam("API-Key") String apiKey, @HeaderParam("API-Sign") si.mazi.rescu.ParamsDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws IOException - Throws:
IOException
-
withdraw
@POST @Path("private/Withdraw") @Consumes("application/x-www-form-urlencoded") WithdrawResult withdraw(@FormParam("aclass") String assetPairs, @FormParam("asset") String assets, @FormParam("key") String key, @FormParam("amount") BigDecimal amount, @HeaderParam("API-Key") String apiKey, @HeaderParam("API-Sign") si.mazi.rescu.ParamsDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws IOException - Throws:
IOException
-
getDepositStatus
@POST @Path("private/DepositStatus") @Consumes("application/x-www-form-urlencoded") DepositStatusResult getDepositStatus(@FormParam("aclass") String assetPairs, @FormParam("asset") String assets, @FormParam("method") String method, @HeaderParam("API-Key") String apiKey, @HeaderParam("API-Sign") si.mazi.rescu.ParamsDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws IOException - Throws:
IOException
-
getWithdrawStatus
@POST @Path("private/WithdrawStatus") @Consumes("application/x-www-form-urlencoded") WithdrawStatusResult getWithdrawStatus(@FormParam("aclass") String assetPairs, @FormParam("asset") String assets, @FormParam("method") String method, @HeaderParam("API-Key") String apiKey, @HeaderParam("API-Sign") si.mazi.rescu.ParamsDigest signer, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws IOException - Throws:
IOException
-