code: public List<Order> getOrders() throws KiteException, JSONException, IOException {
          String url = routes.get("orders");
          JSONObject response = new KiteRequestHandler(proxy).getRequest(url, apiKey, accessToken);
          return Arrays.asList(gson.fromJson(String.valueOf(response.get("data")), Order[].class));
      }
docs: Fetches collection of orders from the orderbook.
  @return List of orders.
  @throws KiteException is thrown for all Kite trade related errors.
  @throws JSONException is thrown when there is exception while parsing response.
  @throws IOException is thrown when there is connection error.