Interface KrakenAuthenticated

All Superinterfaces:
Kraken

@Path("0")
@Produces("application/json")
public interface KrakenAuthenticated
extends Kraken
  • 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, @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, @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 trades
      includeTrades - 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