Interface Huobi


@Path("/") @Produces("application/json") public interface Huobi
  • Method Details

    • getTicker

      @GET @Path("market/detail/merged") HuobiTickerResult getTicker(@QueryParam("symbol") String symbol) throws IOException
      Throws:
      IOException
    • getAllTickers

      @GET @Path("market/tickers") HuobiAllTickersResult getAllTickers() throws IOException
      Throws:
      IOException
    • getDepth

      @GET @Path("market/depth") HuobiDepthResult getDepth(@QueryParam("symbol") String symbol, @QueryParam("type") String type) throws IOException
      Throws:
      IOException
    • getTrades

      @GET @Path("market/history/trade") HuobiTradesResult getTrades(@QueryParam("symbol") String symbol, @QueryParam("size") int size) throws IOException
      Throws:
      IOException
    • getKlines

      @GET @Path("market/history/kline") HuobiKlinesResult getKlines(@QueryParam("symbol") String symbol, @QueryParam("period") String period, @QueryParam("size") int size) throws IOException
      Throws:
      IOException
    • getAssetPairs

      @GET @Path("v1/common/symbols") HuobiAssetPairsResult getAssetPairs() throws IOException
      Throws:
      IOException
    • getAssets

      @GET @Path("v1/common/currencys") HuobiAssetsResult getAssets() throws IOException
      Throws:
      IOException
    • getFeeRate

      @GET @Path("v1/fee/fee-rate/get") HuobiFeeRateResult getFeeRate(@QueryParam("symbols") String symbols, @QueryParam("AccessKeyId") String apiKey, @QueryParam("SignatureMethod") String signatureMethod, @QueryParam("SignatureVersion") int signatureVersion, @QueryParam("Timestamp") String nonce, @QueryParam("Signature") si.mazi.rescu.ParamsDigest signature) throws IOException
      Throws:
      IOException
    • getCurrencies

      @GET @Path("v2/reference/currencies") HuobiCurrenciesResult getCurrencies(@QueryParam("currency") String currency, @QueryParam("authorizedUser") boolean authorizedUser, @QueryParam("AccessKeyId") String apiKey, @QueryParam("SignatureMethod") String signatureMethod, @QueryParam("SignatureVersion") int signatureVersion, @QueryParam("Timestamp") String nonce, @QueryParam("Signature") si.mazi.rescu.ParamsDigest signature) throws IOException
      Throws:
      IOException
    • getTransactFeeRate

      @GET @Path("v2/reference/transact-fee-rate") HuobiTransactFeeRateResult getTransactFeeRate(@QueryParam("symbols") String symbols, @QueryParam("AccessKeyId") String apiKey, @QueryParam("SignatureMethod") String signatureMethod, @QueryParam("SignatureVersion") int signatureVersion, @QueryParam("Timestamp") String nonce, @QueryParam("Signature") si.mazi.rescu.ParamsDigest signature) throws IOException
      Throws:
      IOException
    • getDepositAddress

      @GET @Path("v1/dw/deposit-virtual/addresses") HuobiDepositAddressResult getDepositAddress(@QueryParam("currency") String currency, @QueryParam("AccessKeyId") String apiKey, @QueryParam("SignatureMethod") String signatureMethod, @QueryParam("SignatureVersion") int signatureVersion, @QueryParam("Timestamp") String nonce, @QueryParam("Signature") si.mazi.rescu.ParamsDigest signature) throws IOException
      Throws:
      IOException
    • getDepositAddressV2

      @GET @Path("v2/account/deposit/address") HuobiDepositAddressV2Result getDepositAddressV2(@QueryParam("currency") String currency, @QueryParam("AccessKeyId") String apiKey, @QueryParam("SignatureMethod") String signatureMethod, @QueryParam("SignatureVersion") int signatureVersion, @QueryParam("Timestamp") String nonce, @QueryParam("Signature") si.mazi.rescu.ParamsDigest signature) throws IOException
      Throws:
      IOException
    • getFundingHistory

      @GET @Path("v1/query/deposit-withdraw") HuobiFundingHistoryResult getFundingHistory(@QueryParam("currency") String currency, @QueryParam("type") String type, @QueryParam("from") String from, @QueryParam("size") String size, @QueryParam("AccessKeyId") String apiKey, @QueryParam("SignatureMethod") String signatureMethod, @QueryParam("SignatureVersion") int signatureVersion, @QueryParam("Timestamp") String nonce, @QueryParam("Signature") si.mazi.rescu.ParamsDigest signature) throws IOException
      Throws:
      IOException
    • getDepositAddressWithTag

      @GET @Path("v1/dw/deposit-virtual/sharedAddressWithTag") HuobiDepositAddressWithTagResult getDepositAddressWithTag(@QueryParam("currency") String currency, @QueryParam("AccessKeyId") String apiKey, @QueryParam("SignatureMethod") String signatureMethod, @QueryParam("SignatureVersion") int signatureVersion, @QueryParam("Timestamp") String nonce, @QueryParam("Signature") si.mazi.rescu.ParamsDigest signature) throws IOException
      Throws:
      IOException
    • createWithdraw

      @POST @Path("v1/dw/withdraw/api/create") @Consumes("application/json") HuobiCreateWithdrawResult createWithdraw(HuobiCreateWithdrawRequest body, @QueryParam("AccessKeyId") String apiKey, @QueryParam("SignatureMethod") String signatureMethod, @QueryParam("SignatureVersion") int signatureVersion, @QueryParam("Timestamp") String nonce, @QueryParam("Signature") si.mazi.rescu.ParamsDigest signature) throws IOException
      Throws:
      IOException
    • getWithdrawFeeRange

      @GET @Path("v1/dw/withdraw-virtual/fee-range") @Consumes("application/json") HuobiWithdrawFeeRangeResult getWithdrawFeeRange(@QueryParam("currency") String currency, @QueryParam("AccessKeyId") String apiKey, @QueryParam("SignatureMethod") String signatureMethod, @QueryParam("SignatureVersion") int signatureVersion, @QueryParam("Timestamp") String nonce, @QueryParam("Signature") si.mazi.rescu.ParamsDigest signature) throws IOException
      Throws:
      IOException
    • getAccount

      @GET @Path("v1/account/accounts") HuobiAccountResult getAccount(@QueryParam("AccessKeyId") String apiKey, @QueryParam("SignatureMethod") String signatureMethod, @QueryParam("SignatureVersion") int signatureVersion, @QueryParam("Timestamp") String nonce, @QueryParam("Signature") si.mazi.rescu.ParamsDigest signature) throws IOException
      Throws:
      IOException
    • getBalance

      @GET @Path("v1/account/accounts/{account-id}/balance") HuobiBalanceResult getBalance(@PathParam("account-id") String accountID, @QueryParam("AccessKeyId") String apiKey, @QueryParam("SignatureMethod") String signatureMethod, @QueryParam("SignatureVersion") int signatureVersion, @QueryParam("Timestamp") String nonce, @QueryParam("Signature") si.mazi.rescu.ParamsDigest signature) throws IOException
      Throws:
      IOException
    • getOpenOrders

      @GET @Path("v1/order/openOrders") HuobiOrdersResult getOpenOrders(@QueryParam("symbol") String symbol, @QueryParam("states") String states, @QueryParam("AccessKeyId") String apiKey, @QueryParam("SignatureMethod") String signatureMethod, @QueryParam("SignatureVersion") int signatureVersion, @QueryParam("Timestamp") String nonce, @QueryParam("Signature") si.mazi.rescu.ParamsDigest signature) throws IOException
      Throws:
      IOException
    • getOrders

      @GET @Path("v1/order/orders") HuobiOrdersResult getOrders(@QueryParam("symbol") String symbol, @QueryParam("states") String states, @QueryParam("start-time") Long startTime, @QueryParam("end-time") Long endTime, @QueryParam("start-date") String startDate, @QueryParam("end-date") String endDate, @QueryParam("from") String from, @QueryParam("direct") String direct, @QueryParam("AccessKeyId") String apiKey, @QueryParam("SignatureMethod") String signatureMethod, @QueryParam("SignatureVersion") int signatureVersion, @QueryParam("Timestamp") String nonce, @QueryParam("Signature") si.mazi.rescu.ParamsDigest signature) throws IOException
      Throws:
      IOException
    • getOrdersHistory

      @GET @Path("v1/order/history") HuobiOrdersResult getOrdersHistory(@QueryParam("symbol") String symbol, @QueryParam("start-time") Long startTime, @QueryParam("end-time") Long endTime, @QueryParam("direct") String direct, @QueryParam("size") Integer size, @QueryParam("AccessKeyId") String apiKey, @QueryParam("SignatureMethod") String signatureMethod, @QueryParam("SignatureVersion") int signatureVersion, @QueryParam("Timestamp") String nonce, @QueryParam("Signature") si.mazi.rescu.ParamsDigest signature) throws IOException
      Throws:
      IOException
    • getOrder

      @GET @Path("v1/order/orders/{order-id}") HuobiOrderInfoResult getOrder(@PathParam("order-id") String orderID, @QueryParam("AccessKeyId") String apiKey, @QueryParam("SignatureMethod") String signatureMethod, @QueryParam("SignatureVersion") int signatureVersion, @QueryParam("Timestamp") String nonce, @QueryParam("Signature") si.mazi.rescu.ParamsDigest signature) throws IOException
      Throws:
      IOException
    • getMatchResults

      @GET @Path("v1/order/matchresults") HuobiMatchesResult getMatchResults(@QueryParam("symbol") String symbol, @QueryParam("types") String types, @QueryParam("start-date") String startDate, @QueryParam("end-date") String endDate, @QueryParam("from") String from, @QueryParam("direct") String direct, @QueryParam("size") Integer size, @QueryParam("AccessKeyId") String apiKey, @QueryParam("SignatureMethod") String signatureMethod, @QueryParam("SignatureVersion") int signatureVersion, @QueryParam("Timestamp") String nonce, @QueryParam("Signature") si.mazi.rescu.ParamsDigest signature) throws IOException
      Throws:
      IOException
    • cancelOrder

      @POST @Path("v1/order/orders/{order-id}/submitcancel") HuobiCancelOrderResult cancelOrder(@PathParam("order-id") String orderID, @QueryParam("AccessKeyId") String apiKey, @QueryParam("SignatureMethod") String signatureMethod, @QueryParam("SignatureVersion") int signatureVersion, @QueryParam("Timestamp") String nonce, @QueryParam("Signature") si.mazi.rescu.ParamsDigest signature) throws IOException
      Throws:
      IOException
    • placeLimitOrder

      @POST @Path("v1/order/orders/place") @Consumes("application/json") HuobiOrderResult placeLimitOrder(HuobiCreateOrderRequest body, @QueryParam("AccessKeyId") String apiKey, @QueryParam("SignatureMethod") String signatureMethod, @QueryParam("SignatureVersion") int signatureVersion, @QueryParam("Timestamp") String nonce, @QueryParam("Signature") si.mazi.rescu.ParamsDigest signature) throws IOException
      Throws:
      IOException
    • placeMarketOrder

      @POST @Path("v1/order/orders/place") @Consumes("application/json") HuobiOrderResult placeMarketOrder(HuobiCreateOrderRequest body, @QueryParam("AccessKeyId") String apiKey, @QueryParam("SignatureMethod") String signatureMethod, @QueryParam("SignatureVersion") int signatureVersion, @QueryParam("Timestamp") String nonce, @QueryParam("Signature") si.mazi.rescu.ParamsDigest signature) throws IOException
      Throws:
      IOException