code: public boolean cancelAllOrders(String type, CurrencyPair currencyPair) throws IOException {
  
      GateioBaseResponse cancelAllOrdersResult =
          bter.cancelAllOrders(type, formatCurrencyPair(currencyPair), apiKey, signatureCreator);
  
      return handleResponse(cancelAllOrdersResult).isResult();
    }
docs: Cancels all orders. See https://gate.io/api2.
  
  @param type order type(0:sell,1:buy,-1:all)
  @param currencyPair currency pair
  @return
  @throws IOException