@Override
	public void setCurrent(
			Dictionary<String, Dictionary<String, Dictionary<String, String>>> cur) {
		for(String name: names){
			if(past_N_ticks.get(name)!=null){
				if(past_N_ticks.get(name).size()>=n){
					past_N_ticks.get(name).remove(past_N_ticks.get(name).size()-1);
				}
			}

			if(past_M_ticks.get(name)!=null){
				if(past_M_ticks.get(name).size()>=m){
					past_M_ticks.get(name).remove(past_M_ticks.get(name).size()-1);
				}
			}
			
			if(cur!=null && cur.get("PRICE") !=null && cur.get("PRICE").get(name)!=null){
				
				past_N_ticks.get(name).add(0, Double.parseDouble(cur.get("PRICE").get(name).get("AVERAGE"))); //GET current price
				past_M_ticks.get(name).add(0, Double.parseDouble(cur.get("PRICE").get(name).get("AVERAGE"))); //GET current price

				
				//overwrite current 
				current.get(name).put("MAX", Double.parseDouble(cur.get("PRICE").get(name).get("MAX")));
				current.get(name).put("MIN", Double.parseDouble(cur.get("PRICE").get(name).get("MIN")));
				current.get(name).put("AVERAGE", Double.parseDouble(cur.get("PRICE").get(name).get("AVERAGE")));
			} 
		}
		
	}