Package org.knowm.xchange.hitbtc.v2
Interface HitbtcAuthenticated
- All Superinterfaces:
Hitbtc
Version 2 of HitBtc API. See https://api.hitbtc.com/api/2/explore/
-
Method Summary
Modifier and TypeMethodDescriptioncancelAllOrders(String symbol) cancelSingleOrder(String clientOrderId) getHistorialTradesByOrder(String orderId) Tradding & Order APIs ***********************getHitbtcDepositAddress(String currency) getHitbtcOrder(String symbol, String clientOrderId) Get an old order.Get historical ordersgetHitbtcTrades(String symbol, String sort, String sortBy, String from, String till, Integer limit, long offset) Trading History APIs *****************************Account APIs *****************************postHitbtcNewOrder(String clientOrderId, String symbol, String side, BigDecimal price, BigDecimal quantity, HitbtcOrderType type, HitbtcTimeInForce timeInForce) transactions(String currency, String sort, String by, String from, String till, Integer limit, Integer offset) transferToTrading(BigDecimal amount, String currency, String type) updateHitbtcOrder(String clientOrderId, BigDecimal quantity, String requestClientId, BigDecimal price) Methods inherited from interface org.knowm.xchange.hitbtc.v2.Hitbtc
getCurrencies, getCurrency, getHitbtcOHLC, getHitbtcOHLC, getHitbtcOHLC, getHitbtcOHLC, getHitbtcTickers, getOrderBook, getSymbols, getTicker, getTickers, getTrades, getTrades
-
Method Details
-
getMainBalance
@GET @Path("account/balance") List<HitbtcBalance> getMainBalance() throws IOException, HitbtcExceptionAccount APIs *****************************- Throws:
IOExceptionHitbtcException
-
getHitbtcDepositAddress
@GET @Path("account/crypto/address/{currency}") HitbtcAddress getHitbtcDepositAddress(@PathParam("currency") String currency) throws IOException, HitbtcException - Throws:
IOExceptionHitbtcException
-
transactions
@GET @Path("account/transactions") List<HitbtcTransaction> transactions(@QueryParam("currency") String currency, @QueryParam("sort") String sort, @QueryParam("by") String by, @QueryParam("from") String from, @QueryParam("till") String till, @QueryParam("limit") Integer limit, @QueryParam("offset") Integer offset) throws HitbtcException, si.mazi.rescu.HttpStatusIOException - Throws:
HitbtcExceptionsi.mazi.rescu.HttpStatusIOException
-
transferToTrading
@POST @Path("account/transfer") HitbtcInternalTransferResponse transferToTrading(@FormParam("amount") BigDecimal amount, @FormParam("currency") String currency, @FormParam("type") String type) throws IOException, HitbtcException - Throws:
IOExceptionHitbtcException
-
payout
@POST @Path("account/crypto/withdraw") Map payout(@FormParam("amount") BigDecimal amount, @FormParam("currency") String currency, @FormParam("address") String address, @FormParam("paymentId") String paymentId, @FormParam("includeFee") Boolean includeFee) throws HitbtcException, si.mazi.rescu.HttpStatusIOException - Throws:
HitbtcExceptionsi.mazi.rescu.HttpStatusIOException
-
getHitbtcActiveOrders
Tradding & Order APIs ***********************- Throws:
IOExceptionHitbtcException
-
postHitbtcNewOrder
@POST @Path("order") @Consumes("application/x-www-form-urlencoded") HitbtcOrder postHitbtcNewOrder(@FormParam("clientOrderId") String clientOrderId, @FormParam("symbol") String symbol, @FormParam("side") String side, @FormParam("price") BigDecimal price, @FormParam("quantity") BigDecimal quantity, @FormParam("type") HitbtcOrderType type, @FormParam("timeInForce") HitbtcTimeInForce timeInForce) throws IOException, HitbtcException - Throws:
IOExceptionHitbtcException
-
updateHitbtcOrder
@PATCH @Path("order/{clientOrderId}") @Consumes("application/x-www-form-urlencoded") HitbtcOrder updateHitbtcOrder(@PathParam("clientOrderId") String clientOrderId, @FormParam("quantity") BigDecimal quantity, @FormParam("requestClientId") String requestClientId, @FormParam("price") BigDecimal price) throws IOException, HitbtcException - Throws:
IOExceptionHitbtcException
-
cancelAllOrders
@DELETE @Path("order") @Consumes("application/x-www-form-urlencoded") List<HitbtcOrder> cancelAllOrders(@FormParam("symbol") String symbol) throws IOException, HitbtcException - Throws:
IOExceptionHitbtcException
-
cancelSingleOrder
@DELETE @Path("order/{clientOrderId}") HitbtcOrder cancelSingleOrder(@PathParam("clientOrderId") String clientOrderId) throws IOException, HitbtcException - Throws:
IOExceptionHitbtcException
-
getTradingBalance
@GET @Path("trading/balance") List<HitbtcBalance> getTradingBalance() throws IOException, HitbtcException- Throws:
IOExceptionHitbtcException
-
getHitbtcTrades
@GET @Path("history/trades") List<HitbtcOwnTrade> getHitbtcTrades(@QueryParam("symbol") String symbol, @QueryParam("sort") String sort, @QueryParam("by") String sortBy, @QueryParam("from") String from, @QueryParam("till") String till, @QueryParam("limit") Integer limit, @QueryParam("offset") long offset) throws IOException, HitbtcException Trading History APIs *****************************- Throws:
IOExceptionHitbtcException
-
getHitbtcRecentOrders
@GET @Path("history/order") List<HitbtcOrder> getHitbtcRecentOrders() throws IOException, HitbtcExceptionGet historical orders- Returns:
- Throws:
IOExceptionHitbtcException
-
getHitbtcOrder
@GET @Path("history/order") List<HitbtcOrder> getHitbtcOrder(@QueryParam("symbol") String symbol, @QueryParam("clientOrderId") String clientOrderId) throws IOException, HitbtcException Get an old order. The returning collection contains, at most, 1 element.- Parameters:
symbol- symbolclientOrderId- client order id- Returns:
- list of orders
- Throws:
IOException- throw in case IO problemsHitbtcException- throw in case internal HITBTC problems
-
getHistorialTradesByOrder
@GET @Path("/history/order/{id}/trades") List<HitbtcOwnTrade> getHistorialTradesByOrder(@PathParam("id") String orderId) throws IOException, HitbtcException - Throws:
IOExceptionHitbtcException
-