public Orders getOrders(String symbol){
		symbol = symbol.trim();
		
		HashMap<String,String> var = new HashMap<String,String>();
		String result = apiCall(CMD.ORDERS,var);
		JSONObject jsonOrders = new JSONObject(result);
		String status = jsonOrders.getString(STATUS);
		//check if request was successful
		if(!status.equals(OK)) return null;
		
		Orders orders = new Orders();
		JSONArray ordersArray = new JSONArray();
		/* 
		 * try to get the array, but if there is no outstanding orders,
		 * there won't be an JSONArray object, so an exception will be thrown
		 */
		try{
			ordersArray = jsonOrders.getJSONArray("orders");
		}catch(JSONException e){}
		
		for(int i =0; i<ordersArray.length();i++){
			JSONObject order = ordersArray.getJSONObject(i);
			String sym = order.getString("symbol");
			
			//Check if symbol match or is the wildcard, if not in either case, move to next order
			if(!sym.equals(symbol) && !symbol.equals("*")) continue;
			
			String typeStr = order.getString("type");
			TYPE type = null;
			if(typeStr.equals("bid")){
				type=TYPE.BID;
			} else if(typeStr.equals("ask")){
				type=TYPE.ASK;
			} else {
				//not expecting this to happen so should just return null
				return null;
			}
			String id = order.getString("id");
			String date = order.getString("dt");

			double price = order.getDouble("price");
			long quantity = order.getLong("quantity");
			long filled = order.getLong("filled");
			
			orders.addOrder(type, id, date, sym, price, quantity, filled);
		}
		
		return orders;
	}