public static synchronized void printBidAskListToConsole(ShareKhanBidAskLists skBaList) {
    BidAskLists bseLists = skBaList.getBseList();
    Iterator<Bet> it = bseLists.getBidsIterator();
    System.out.println("BID-ASK List for scrip - " + skBaList.getScrip());
    System.out.println("BSE TimeStamp - " + skBaList.getBseTimeStamp());
    System.out.println("BSE Bids");
    while (it.hasNext()) {
      Bet bet = it.next();
      System.out.println(bet.getOrderCount() + " " + bet.getQuantity() + " " + bet.getPrice());
    }

    it = bseLists.getAsksIterator();
    System.out.println("BSE Asks");
    while (it.hasNext()) {
      Bet bet = it.next();
      System.out.println(bet.getOrderCount() + " " + bet.getQuantity() + " " + bet.getPrice());
    }

    System.out.println("NSE TimeStamp - " + skBaList.getNseTimeStamp());
    BidAskLists nseLists = skBaList.getNseList();
    it = nseLists.getBidsIterator();
    System.out.println("NSE Bids");
    while (it.hasNext()) {
      Bet bet = it.next();
      System.out.println(bet.getOrderCount() + " " + bet.getQuantity() + " " + bet.getPrice());
    }

    it = nseLists.getAsksIterator();
    System.out.println("NSE Asks");
    while (it.hasNext()) {
      Bet bet = it.next();
      System.out.println(bet.getOrderCount() + " " + bet.getQuantity() + " " + bet.getPrice());
    }
  }
  public static void printShareKhanBidAskLists(ShareKhanBidAskLists bidAskLists) throws Exception {
    BidAskLists bseLists = bidAskLists.getBseList();
    Iterator<Bet> it = bseLists.getBidsIterator();
    System.out.println("BSE Bids");
    while (it.hasNext()) {
      Bet bet = it.next();
      System.out.println(bet.getOrderCount() + " " + bet.getQuantity() + " " + bet.getPrice());
    }

    it = bseLists.getAsksIterator();
    System.out.println("BSE Asks");
    while (it.hasNext()) {
      Bet bet = it.next();
      System.out.println(bet.getOrderCount() + " " + bet.getQuantity() + " " + bet.getPrice());
    }

    BidAskLists nseLists = bidAskLists.getNseList();
    it = nseLists.getBidsIterator();
    System.out.println("NSE Bids");
    while (it.hasNext()) {
      Bet bet = it.next();
      System.out.println(bet.getOrderCount() + " " + bet.getQuantity() + " " + bet.getPrice());
    }

    it = nseLists.getAsksIterator();
    System.out.println("NSE Asks");
    while (it.hasNext()) {
      Bet bet = it.next();
      System.out.println(bet.getOrderCount() + " " + bet.getQuantity() + " " + bet.getPrice());
    }
  }