public IndependentReserveOpenOrdersResponse getIndependentReserveOpenOrders(
      String primaryCurrency, String secondaryCurrency, int pageIndex) throws IOException {
    if (pageIndex <= 0) {
      throw new IllegalArgumentException("Page number in IndependentReserve should be positive.");
    }
    Long nonce = exchange.getNonceFactory().createValue();
    String apiKey = exchange.getExchangeSpecification().getApiKey();
    IndependentReserveOpenOrderRequest independentReserveOpenOrderRequest =
        new IndependentReserveOpenOrderRequest(
            apiKey, nonce, primaryCurrency, secondaryCurrency, pageIndex, TRADE_HISTORY_PAGE_SIZE);

    independentReserveOpenOrderRequest.setSignature(
        signatureCreator.digestParamsToString(
            ExchangeEndpoint.GET_OPEN_ORDERS,
            nonce,
            independentReserveOpenOrderRequest.getParameters()));

    IndependentReserveOpenOrdersResponse openOrders =
        independentReserveAuthenticated.getOpenOrders(independentReserveOpenOrderRequest);

    return openOrders;
  }
public IndependentReserveOpenOrdersResponse getIndependentReserveOpenOrders ( String primaryCurrency , String secondaryCurrency , int pageIndex ) throws IOException { if ( pageIndex <= 0 ) { throw new IllegalArgumentException ( "Page number in IndependentReserve should be positive." ) ; } Long nonce = exchange . getNonceFactory ( ) . createValue ( ) ; String apiKey = exchange . getExchangeSpecification ( ) . getApiKey ( ) ; IndependentReserveOpenOrderRequest independentReserveOpenOrderRequest = new IndependentReserveOpenOrderRequest ( apiKey , nonce , primaryCurrency , secondaryCurrency , pageIndex , TRADE_HISTORY_PAGE_SIZE ) ; independentReserveOpenOrderRequest . setSignature ( signatureCreator . digestParamsToString ( ExchangeEndpoint . GET_OPEN_ORDERS , nonce , independentReserveOpenOrderRequest . getParameters ( ) ) ) ; IndependentReserveOpenOrdersResponse openOrders = independentReserveAuthenticated . getOpenOrders ( independentReserveOpenOrderRequest ) ; return openOrders ; }
@param primaryCurrency - optional primary currency code
@param secondaryCurrency - optional secondary currency code
@param pageIndex - The page index. Must be greater or equal to 1
@return
@throws IOException