Package org.knowm.xchange.coinjar
Interface CoinjarTrading
@Produces("application/json")
@Path("/")
public interface CoinjarTrading
-
Method Summary
Modifier and Type Method Description CoinjarOrder
cancelOrder(String authHeader, String id)
List<CoinjarAccount>
getAccounts(String authHeader)
List<CoinjarOrder>
getAllOrders(String authHeader, Integer cursor)
CoinjarFills
getFills(String authHeader, String cursor, String productId, String oid)
List<CoinjarOrder>
getOpenOrders(String authHeader, Integer cursor)
CoinjarOrder
getOrder(String authHeader, String id)
List<CoinjarProduct>
getProducts()
CoinjarOrder
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
-