Package org.knowm.xchange.cobinhood
Interface CobinhoodAuthenticated
- All Superinterfaces:
Cobinhood
@Path("v1")
@Produces("application/json")
public interface CobinhoodAuthenticated
extends Cobinhood
-
Field Summary
Fields Modifier and Type Field Description static StringHEADER_AUTHstatic StringHEADER_NONCE -
Method Summary
Modifier and Type Method Description CobinhoodResponse<Void>cancelOrder(String apiKey, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String orderId)CobinhoodResponse<CobinhoodOrders>getAllOrders(String apiKey, String pair, Integer limit)CobinhoodResponse<CobinhoodCoinBalances>getBalances(String apiKey)CobinhoodResponse<CobinhoodOrder.Container>placeOrder(String apiKey, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, CobinhoodPlaceOrderRequest placeOrderRequest)Places a limit order.Methods inherited from interface org.knowm.xchange.cobinhood.Cobinhood
currencies, orders, tick, tick, trades, tradingPairs
-
Field Details
-
HEADER_AUTH
- See Also:
- Constant Field Values
-
HEADER_NONCE
- See Also:
- Constant Field Values
-
-
Method Details
-
getBalances
@GET @Path("wallet/balances") CobinhoodResponse<CobinhoodCoinBalances> getBalances(@HeaderParam("authorization") String apiKey) throws IOException, CobinhoodException- Throws:
IOExceptionCobinhoodException
-
getAllOrders
@GET @Path("trading/orders") CobinhoodResponse<CobinhoodOrders> getAllOrders(@HeaderParam("authorization") String apiKey, @QueryParam("trading_pair_id") String pair, @QueryParam("limit") Integer limit) -
placeOrder
@POST @Path("trading/orders") @Consumes("application/json") CobinhoodResponse<CobinhoodOrder.Container> placeOrder(@HeaderParam("authorization") String apiKey, @HeaderParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, CobinhoodPlaceOrderRequest placeOrderRequest) throws IOException, CobinhoodExceptionPlaces a limit order.- Throws:
IOExceptionCobinhoodException
-
cancelOrder
@DELETE @Path("trading/orders/{order_id}") CobinhoodResponse<Void> cancelOrder(@HeaderParam("authorization") String apiKey, @HeaderParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @PathParam("order_id") String orderId)
-