Package org.knowm.xchange.coinjar
Interface CoinjarTrading
@Produces("application/json")
@Path("/")
public interface CoinjarTrading
-
Method Summary
Modifier and TypeMethodDescriptioncancelOrder
(String authHeader, String id) getAccounts
(String authHeader) getAllOrders
(String authHeader, Integer cursor) getOpenOrders
(String authHeader, Integer cursor) placeOrder
(String authHeader, CoinjarOrderRequest request)
-
Method Details
-
getProducts
- Throws:
CoinjarException
IOException
-
getAccounts
@GET @Path("/accounts") List<CoinjarAccount> getAccounts(@HeaderParam("Authorization") String authHeader) throws CoinjarException, IOException - Throws:
CoinjarException
IOException
-
placeOrder
@POST @Path("/orders") @Consumes("application/json") CoinjarOrder placeOrder(@HeaderParam("Authorization") String authHeader, CoinjarOrderRequest request) throws CoinjarException, IOException - Throws:
CoinjarException
IOException
-
getOpenOrders
@GET @Path("/orders") List<CoinjarOrder> getOpenOrders(@HeaderParam("Authorization") String authHeader, @QueryParam("cursor") Integer cursor) throws CoinjarException, IOException - Throws:
CoinjarException
IOException
-
getAllOrders
@GET @Path("/orders/all") List<CoinjarOrder> getAllOrders(@HeaderParam("Authorization") String authHeader, @QueryParam("cursor") Integer cursor) throws CoinjarException, IOException - Throws:
CoinjarException
IOException
-
getOrder
@GET @Path("/orders/{id}") CoinjarOrder getOrder(@HeaderParam("Authorization") String authHeader, @PathParam("id") String id) throws CoinjarException, IOException - Throws:
CoinjarException
IOException
-
getFills
@GET @Path("/fills") CoinjarFills getFills(@HeaderParam("Authorization") String authHeader, @QueryParam("cursor") String cursor, @QueryParam("product_id") String productId, @QueryParam("oid") String oid) throws CoinjarException, IOException - Throws:
CoinjarException
IOException
-
cancelOrder
@DELETE @Path("/orders/{id}") CoinjarOrder cancelOrder(@HeaderParam("Authorization") String authHeader, @PathParam("id") String id) throws CoinjarException, IOException - Throws:
CoinjarException
IOException
-