Package org.knowm.xchange.huobi
Interface Huobi
@Path("/")
@Produces("application/json")
public interface Huobi
-
Method Summary
Modifier and TypeMethodDescriptioncancelOrder
(String orderID, String apiKey, String signatureMethod, int signatureVersion, String nonce, si.mazi.rescu.ParamsDigest signature) createWithdraw
(HuobiCreateWithdrawRequest body, String apiKey, String signatureMethod, int signatureVersion, String nonce, si.mazi.rescu.ParamsDigest signature) getAccount
(String apiKey, String signatureMethod, int signatureVersion, String nonce, si.mazi.rescu.ParamsDigest signature) getBalance
(String accountID, String apiKey, String signatureMethod, int signatureVersion, String nonce, si.mazi.rescu.ParamsDigest signature) getCurrencies
(String currency, boolean authorizedUser, String apiKey, String signatureMethod, int signatureVersion, String nonce, si.mazi.rescu.ParamsDigest signature) getDepositAddress
(String currency, String apiKey, String signatureMethod, int signatureVersion, String nonce, si.mazi.rescu.ParamsDigest signature) getDepositAddressV2
(String currency, String apiKey, String signatureMethod, int signatureVersion, String nonce, si.mazi.rescu.ParamsDigest signature) getDepositAddressWithTag
(String currency, String apiKey, String signatureMethod, int signatureVersion, String nonce, si.mazi.rescu.ParamsDigest signature) getFeeRate
(String symbols, String apiKey, String signatureMethod, int signatureVersion, String nonce, si.mazi.rescu.ParamsDigest signature) getFundingHistory
(String currency, String type, String from, String size, String apiKey, String signatureMethod, int signatureVersion, String nonce, si.mazi.rescu.ParamsDigest signature) getMatchResults
(String symbol, String types, String startDate, String endDate, String from, String direct, Integer size, String apiKey, String signatureMethod, int signatureVersion, String nonce, si.mazi.rescu.ParamsDigest signature) getOpenOrders
(String symbol, String states, String apiKey, String signatureMethod, int signatureVersion, String nonce, si.mazi.rescu.ParamsDigest signature) getOrder
(String orderID, String apiKey, String signatureMethod, int signatureVersion, String nonce, si.mazi.rescu.ParamsDigest signature) getOrders
(String symbol, String states, Long startTime, Long endTime, String startDate, String endDate, String from, String direct, String apiKey, String signatureMethod, int signatureVersion, String nonce, si.mazi.rescu.ParamsDigest signature) getOrdersHistory
(String symbol, Long startTime, Long endTime, String direct, Integer size, String apiKey, String signatureMethod, int signatureVersion, String nonce, si.mazi.rescu.ParamsDigest signature) getTransactFeeRate
(String symbols, String apiKey, String signatureMethod, int signatureVersion, String nonce, si.mazi.rescu.ParamsDigest signature) getWithdrawFeeRange
(String currency, String apiKey, String signatureMethod, int signatureVersion, String nonce, si.mazi.rescu.ParamsDigest signature) placeLimitOrder
(HuobiCreateOrderRequest body, String apiKey, String signatureMethod, int signatureVersion, String nonce, si.mazi.rescu.ParamsDigest signature) placeMarketOrder
(HuobiCreateOrderRequest body, String apiKey, String signatureMethod, int signatureVersion, String nonce, si.mazi.rescu.ParamsDigest signature)
-
Method Details
-
getTicker
@GET @Path("market/detail/merged") HuobiTickerResult getTicker(@QueryParam("symbol") String symbol) throws IOException - Throws:
IOException
-
getAllTickers
- 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
- Throws:
IOException
-
getAssets
- 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
-