package org.knowm.xchange.independentreserve; import java.io.IOException; import javax.ws.rs.Consumes; import javax.ws.rs.POST; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import org.knowm.xchange.independentreserve.dto.IndependentReserveHttpStatusException; import org.knowm.xchange.independentreserve.dto.account.IndependentReserveBalance; import org.knowm.xchange.independentreserve.dto.auth.AuthAggregate; import org.knowm.xchange.independentreserve.dto.trade.IndependentReserveCancelOrderRequest; import org.knowm.xchange.independentreserve.dto.trade.IndependentReserveCancelOrderResponse; import org.knowm.xchange.independentreserve.dto.trade.IndependentReserveOpenOrderRequest; import org.knowm.xchange.independentreserve.dto.trade.IndependentReserveOpenOrdersResponse; import org.knowm.xchange.independentreserve.dto.trade.IndependentReservePlaceLimitOrderRequest; import org.knowm.xchange.independentreserve.dto.trade.IndependentReservePlaceLimitOrderResponse; import org.knowm.xchange.independentreserve.dto.trade.IndependentReserveTradeHistoryRequest; import org.knowm.xchange.independentreserve.dto.trade.IndependentReserveTradeHistoryResponse; import org.knowm.xchange.independentreserve.dto.trade.IndependentReserveTransactionsRequest; import org.knowm.xchange.independentreserve.dto.trade.IndependentReserveTransactionsResponse; /** * Author: Kamil Zbikowski Date: 4/10/15 */ @Path("Private") @Produces(MediaType.APPLICATION_JSON) public interface IndependentReserveAuthenticated { @POST @Path("GetAccounts") @Consumes(MediaType.APPLICATION_JSON) public IndependentReserveBalance getBalance(AuthAggregate authAggregate) throws IndependentReserveHttpStatusException, IOException; @POST @Path("GetOpenOrders") @Consumes(MediaType.APPLICATION_JSON) public IndependentReserveOpenOrdersResponse getOpenOrders(IndependentReserveOpenOrderRequest independentReserveOpenOrderRequest) throws IndependentReserveHttpStatusException, IOException; @POST @Path("GetTrades") @Consumes(MediaType.APPLICATION_JSON) public IndependentReserveTradeHistoryResponse getTradeHistory(IndependentReserveTradeHistoryRequest independentReserveTradeHistoryRequest) throws IndependentReserveHttpStatusException, IOException; @POST @Path("PlaceLimitOrder") @Consumes(MediaType.APPLICATION_JSON) public IndependentReservePlaceLimitOrderResponse placeLimitOrder(IndependentReservePlaceLimitOrderRequest independentReservePlaceLimitOrderRequest) throws IndependentReserveHttpStatusException, IOException; @POST @Path("CancelOrder") @Consumes(MediaType.APPLICATION_JSON) public IndependentReserveCancelOrderResponse cancelOrder(IndependentReserveCancelOrderRequest independentReserveCancelOrderRequest) throws IndependentReserveHttpStatusException, IOException; @POST @Path("GetTransactions") @Consumes(MediaType.APPLICATION_JSON) public IndependentReserveTransactionsResponse getTransactions(IndependentReserveTransactionsRequest independentReserveTransactionsRequest) throws IndependentReserveHttpStatusException, IOException; }