private static void callOrderBook(){
    	try {
			Vector<Vector<Double>> array = OrderBookAPI.HttpGetOrderBook();
			int n = array.get(0).size();
			
			DefaultTableXYDataset dataset = new DefaultTableXYDataset();
	        XYSeries data = new XYSeries("Bids", true, false);
            for(int i=0; i<n; i++){
            	if(array.get(0).get(i)<1000 && array.get(1).get(i)<10000)
            	data.add(array.get(0).get(i),array.get(1).get(i));
            }
            
            //
            int n1 = array.get(2).size();
	        XYSeries data1 = new XYSeries("Asks", true, false);
            for(int i=0; i<n1; i++){
            	if(array.get(2).get(i)<1000 && array.get(3).get(i)<10000)
            	data1.add(array.get(2).get(i),array.get(3).get(i));
            }
            //
            
            dataset.addSeries(data);
            dataset.addSeries(data1);
            /*JFreeChart chart = ChartFactory.createScatterPlot(
                    "Order Book",                  // chart title
                    "Price/USD",                      // x axis label
                    "Value",                      // y axis label
                    dataset,                  // data
                    PlotOrientation.VERTICAL,
                    true,                     // include legend
                    true,                     // tooltips
                    false                     // urls
                );
            
            XYPlot plot = (XYPlot) chart.getPlot();
            XYLineAndShapeRenderer renderer = new XYLineAndShapeRenderer();
            renderer.setSeriesLinesVisible(0, true);
            plot.setRenderer(renderer);
            plot.setDomainCrosshairVisible(true);
			plot.setRangeCrosshairVisible(true);
            */
             
            JFreeChart chart = ChartFactory.createStackedXYAreaChart(
                    "Order Book", "Price/USD", "Value", dataset, PlotOrientation.VERTICAL, true, true, false);

            StackedXYAreaRenderer render = new StackedXYAreaRenderer();
            render.setSeriesPaint(0, Color.YELLOW);
            render.setSeriesPaint(1, Color.BLUE);
            XYPlot plot = (XYPlot) chart.getPlot();
            plot.setRenderer(render);
            plot.setSeriesRenderingOrder(SeriesRenderingOrder.FORWARD);
            /*plot.setForegroundAlpha(0.5f);
            NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
            rangeAxis.setNumberFormatOverride(new DecimalFormat("#,###.#"));
            rangeAxis.setAutoRange(true);*/
            
			ChartPanel chartPanel = new ChartPanel(chart);
            // clear previews display, update with new display
            int componentCount = contentPane.getComponentCount();
            if(componentCount > 1){
            	contentPane.remove(1);
            }
            contentPane.add(chartPanel, BorderLayout.CENTER);
            contentPane.revalidate();
    	} catch (Exception e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}
    }